Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
9ab1441b
Commit
9ab1441b
authored
Feb 22, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医院其他绩效类型和不公示医院其他绩效类型修改(修改条件)
parent
78877750
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
performance/Performance.Services/EmployeeService.cs
+6
-6
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
9ab1441b
...
...
@@ -941,7 +941,7 @@ public ApiResponse<List<per_apr_amount_type>> GetAprTypeList(int allotId)
public
ApiResponse
<
AprTypeRequest
>
InsertAprType
(
int
createUser
,
AprTypeRequest
request
)
{
if
(
string
.
IsNullOrEmpty
(
request
.
PerforType
.
Trim
())
||
request
.
AllotId
<=
0
)
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"输入参数不能
填空或者小于1
"
);
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"输入参数不能
为空!
"
);
var
tepm
=
perAprAmountTypeRepository
.
GetEntity
(
t
=>
t
.
AllotId
==
request
.
AllotId
&&
t
.
PerforType
==
request
.
PerforType
);
if
(
tepm
!=
null
)
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"已存在该类型"
);
...
...
@@ -959,8 +959,8 @@ public ApiResponse<AprTypeRequest> InsertAprType(int createUser, AprTypeRequest
public
ApiResponse
<
AprTypeRequest
>
UpdateAprType
(
int
typeId
,
AprTypeRequest
request
)
{
if
(
string
.
IsNullOrEmpty
(
request
.
PerforType
.
Trim
())
||
request
.
AllotId
<=
0
)
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"输入参数不能
填空或者小于1
"
);
var
tepm
=
perAprAmountTypeRepository
.
GetEntity
(
t
=>
t
.
AllotId
==
request
.
AllotId
&&
t
.
PerforType
==
request
.
PerforType
);
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"输入参数不能
为空!
"
);
var
tepm
=
perAprAmountTypeRepository
.
GetEntity
(
t
=>
t
.
Id
!=
t
.
Id
&&
t
.
AllotId
==
request
.
AllotId
&&
t
.
PerforType
==
request
.
PerforType
);
if
(
tepm
!=
null
)
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"已存在该类型"
);
var
res
=
perAprAmountTypeRepository
.
GetEntity
(
t
=>
t
.
Id
==
typeId
);
...
...
@@ -1478,7 +1478,7 @@ public ApiResponse<List<per_apr_amount_hide_type>> GetAprTypeListHide(int allotI
public
ApiResponse
<
AprTypeRequest
>
InsertAprTypeHide
(
int
createUser
,
AprTypeRequest
request
)
{
if
(
string
.
IsNullOrEmpty
(
request
.
PerforType
.
Trim
())
||
request
.
AllotId
<=
0
)
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"输入参数不能
填空或者小于1
"
);
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"输入参数不能
为空!
"
);
var
tepm
=
perAprAmountTypeHIdeRepository
.
GetEntity
(
t
=>
t
.
AllotId
==
request
.
AllotId
&&
t
.
PerforType
==
request
.
PerforType
);
if
(
tepm
!=
null
)
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"已存在该类型"
);
...
...
@@ -1496,8 +1496,8 @@ public ApiResponse<AprTypeRequest> InsertAprTypeHide(int createUser, AprTypeRequ
public
ApiResponse
<
AprTypeRequest
>
UpdateAprTypeHide
(
int
typeId
,
AprTypeRequest
request
)
{
if
(
string
.
IsNullOrEmpty
(
request
.
PerforType
.
Trim
())
||
request
.
AllotId
<=
0
)
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"输入参数不能
填空或者小于1
"
);
var
tepm
=
perAprAmountTypeHIdeRepository
.
GetEntity
(
t
=>
t
.
AllotId
==
request
.
AllotId
&&
t
.
PerforType
==
request
.
PerforType
);
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"输入参数不能
为空!
"
);
var
tepm
=
perAprAmountTypeHIdeRepository
.
GetEntity
(
t
=>
t
.
Id
!=
t
.
Id
&&
t
.
AllotId
==
request
.
AllotId
&&
t
.
PerforType
==
request
.
PerforType
);
if
(
tepm
!=
null
)
return
new
ApiResponse
<
AprTypeRequest
>(
ResponseType
.
ParameterError
,
"已存在该类型"
);
var
res
=
perAprAmountTypeHIdeRepository
.
GetEntity
(
t
=>
t
.
Id
==
typeId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment