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
c5bc9ba5
Commit
c5bc9ba5
authored
Jul 06, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效考核模块(指标修改条件优化)
parent
cc590084
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
performance/Performance.Services/AssessNewService.cs
+3
-3
No files found.
performance/Performance.Services/AssessNewService.cs
View file @
c5bc9ba5
...
...
@@ -105,7 +105,7 @@ public ApiResponse CategoryUpdate(UpdateAssessCategoryRequest request, int useri
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
any
=
perforPerAssessCategoryRepository
.
GetEntity
(
w
=>
w
.
Id
==
request
.
CategoryId
);
if
(
any
==
null
)
throw
new
PerformanceException
(
"
当前操作错误,
请刷新后重试"
);
throw
new
PerformanceException
(
"
暂无数据,
请刷新后重试"
);
any
.
AllotId
=
request
.
AllotId
;
any
.
AssessName
=
request
.
Category
;
any
.
UpdateBy
=
userid
;
...
...
@@ -122,7 +122,7 @@ public ApiResponse CategoryDelete(BatchAssessCategoryRequest request)
throw
new
PerformanceException
(
"请先删除类别下的方案"
);
var
any
=
perforPerAssessCategoryRepository
.
GetEntities
(
w
=>
request
.
CategoryId
.
Contains
(
w
.
Id
));
if
(
any
==
null
)
throw
new
PerformanceException
(
"
当前操作错误
,请刷新后重试"
);
throw
new
PerformanceException
(
"
暂无数据
,请刷新后重试"
);
if
(
perforPerAssessCategoryRepository
.
RemoveRange
(
any
.
ToArray
()))
return
new
ApiResponse
(
ResponseType
.
OK
,
"删除成功"
);
else
return
new
ApiResponse
(
ResponseType
.
Fail
,
"删除失败"
);
...
...
@@ -513,7 +513,7 @@ public ApiResponse<UpdateAssessSchemeItemsRequest> SchemeItemsUpdate(UpdateAsses
if
(
cofAccounting
==
null
)
throw
new
PerformanceException
(
"当前的核算组别或者核算单元错误"
);
var
categoryData
=
perforPerAssessSchemeItemsRepository
.
GetEntities
();
var
temp
=
categoryData
.
FirstOrDefault
(
w
=>
w
.
SchemeId
==
request
.
SchemeId
&&
w
.
ItemName2
==
request
.
ItemName2
);
var
temp
=
categoryData
.
FirstOrDefault
(
w
=>
w
.
SchemeId
==
request
.
SchemeId
&&
w
.
ItemName2
==
request
.
ItemName2
&&
w
.
Id
!=
request
.
SchemeItemsId
);
if
(
temp
!=
null
)
throw
new
PerformanceException
(
"当前指标已存在"
);
var
any
=
perforPerAssessSchemeItemsRepository
.
GetEntity
(
w
=>
w
.
AllotId
==
request
.
AllotId
&&
w
.
Id
==
request
.
SchemeItemsId
);
...
...
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