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
f4bf0f8b
Commit
f4bf0f8b
authored
Feb 23, 2023
by
ryun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/其他绩效类别' into release/v23.2.19高县版
parents
9c3ea258
9ab1441b
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 @
f4bf0f8b
...
...
@@ -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