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
41accef4
Commit
41accef4
authored
Apr 11, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清除二次绩效数据代码调整
parent
b875151f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
performance/Performance.Api/Controllers/AgainAllotController.cs
+1
-1
performance/Performance.Services/AgainAllotService.cs
+1
-1
performance/Performance.Services/ConfigService.cs
+2
-2
performance/Performance.Services/EmployeeService.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/AgainAllotController.cs
View file @
41accef4
...
...
@@ -107,7 +107,7 @@ public ApiResponse Import([FromForm] IFormCollection form)
if
(!
againAllotService
.
Update
(
allot
,
againid
))
return
new
ApiResponse
(
ResponseType
.
Fail
,
$"
{
file
.
FileName
}
上传成功,修改状态失败"
);
configService
.
ClearAgain
(
a
llot
.
ID
);
configService
.
ClearAgain
(
a
gainid
);
configService
.
CopyAgain
(
allot
.
ID
);
}
...
...
performance/Performance.Services/AgainAllotService.cs
View file @
41accef4
...
...
@@ -74,7 +74,7 @@ public bool Generate(AgainAllotRequest request, UserIdentity user)
perforPeragainallotRepository
.
Update
(
againAllot
,
p
=>
{
p
.
States
=
2
;
});
//清理二次绩效无用数据
configService
.
ClearAgain
(
againAllot
.
AllotID
.
Value
);
configService
.
ClearAgain
(
againAllot
.
ID
);
try
{
#
region
基础信息
...
...
performance/Performance.Services/ConfigService.cs
View file @
41accef4
...
...
@@ -400,13 +400,13 @@ public bool AgainDelete(CofAgainRequest request)
#
endregion
/// <summary>
/// 清
楚
二次绩效中无效数据
/// 清
除
二次绩效中无效数据
/// </summary>
/// <param name="againId"></param>
public
void
ClearAgain
(
int
againId
)
{
var
count
=
_directorRepository
.
DelAgain
(
againId
);
logdbug
.
Add
(
againId
,
"清
楚
二次绩效中无效数据"
,
$"受影响行数:
{
count
}
"
);
logdbug
.
Add
(
againId
,
"清
除
二次绩效中无效数据"
,
$"受影响行数:
{
count
}
"
);
}
#
region
CopyAgain
...
...
performance/Performance.Services/EmployeeService.cs
View file @
41accef4
...
...
@@ -98,7 +98,7 @@ public bool Delete(EmployeeRequest request)
{
var
employee
=
perforImemployeeRepository
.
GetEntity
(
t
=>
t
.
ID
==
request
.
ID
);
if
(
null
==
employee
)
throw
new
PerformanceException
(
$"ID不存在 :
{
request
.
ID
}
"
);
throw
new
PerformanceException
(
"该人员不存在
"
);
return
perforImemployeeRepository
.
Remove
(
employee
);
}
...
...
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