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
36cc5a31
Commit
36cc5a31
authored
Feb 11, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/二次分配提交撤回' into develop
parents
a97c9350
df395b3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
2 deletions
+40
-2
performance/Performance.Api/Controllers/SecondAllotController.cs
+17
-2
performance/Performance.Services/SecondAllotService.cs
+23
-0
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
36cc5a31
...
@@ -833,9 +833,9 @@ public ApiResponse RedistributionSubmit([FromBody] SecondComputeDto request)
...
@@ -833,9 +833,9 @@ public ApiResponse RedistributionSubmit([FromBody] SecondComputeDto request)
}
}
return
new
ApiResponse
(
ResponseType
.
Fail
,
"提交失败"
);
return
new
ApiResponse
(
ResponseType
.
Fail
,
"提交失败"
);
}
}
catch
(
PerformanceException
ex
)
catch
(
PerformanceException
)
{
{
throw
ex
;
throw
;
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
@@ -843,6 +843,21 @@ public ApiResponse RedistributionSubmit([FromBody] SecondComputeDto request)
...
@@ -843,6 +843,21 @@ public ApiResponse RedistributionSubmit([FromBody] SecondComputeDto request)
return
new
ApiResponse
(
ResponseType
.
Fail
,
"提交失败"
);
return
new
ApiResponse
(
ResponseType
.
Fail
,
"提交失败"
);
}
}
}
}
/// <summary>
/// 二次绩效撤回提交
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/redistribution/rollback/{secondId}"
)]
[
HttpPost
]
public
ApiResponse
RedistributionRollback
(
int
secondId
)
{
var
result
=
secondAllotService
.
RollbackSubmit
(
secondId
);
if
(
result
)
return
new
ApiResponse
(
ResponseType
.
OK
,
"提交成功"
);
return
new
ApiResponse
(
ResponseType
.
Fail
,
"提交失败"
);
}
/// <summary>
/// <summary>
/// 二次分配人员字典带出
/// 二次分配人员字典带出
/// </summary>
/// </summary>
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
36cc5a31
...
@@ -1656,6 +1656,29 @@ bool VerifySubmissioAmount(decimal? leftAmount, decimal? rightAmount)
...
@@ -1656,6 +1656,29 @@ bool VerifySubmissioAmount(decimal? leftAmount, decimal? rightAmount)
}
}
/// <summary>
/// <summary>
/// 二次绩效撤回提交
/// </summary>
/// <param name="secondId"></param>
/// <returns></returns>
/// <exception cref="PerformanceException"></exception>
public
bool
RollbackSubmit
(
int
secondId
)
{
var
second
=
agsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondId
);
if
(
second
==
null
)
throw
new
PerformanceException
(
"二次分配记录不存在,请确认后重试"
);
if
(
second
.
Status
!=
2
)
throw
new
PerformanceException
(
"该绩效未提交至审核,请确认后重试"
);
second
.
UseTempId
=
null
;
second
.
Status
=
1
;
second
.
NursingDeptStatus
=
1
;
second
.
SubmitType
=
null
;
second
.
SubmitTime
=
null
;
return
agsecondallotRepository
.
Update
(
second
);
}
/// <summary>
/// 审核
/// 审核
/// </summary>
/// </summary>
/// <param name="userId">用户ID</param>
/// <param name="userId">用户ID</param>
...
...
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