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
8b109903
Commit
8b109903
authored
Apr 01, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务全院绩效发放表增加人员类别以及花名册中的人员科室
parent
5072a65a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
performance/Performance.Api/Controllers/ComputeController.cs
+4
-2
performance/Performance.Services/ComputeService.cs
+4
-0
No files found.
performance/Performance.Api/Controllers/ComputeController.cs
View file @
8b109903
...
...
@@ -294,10 +294,12 @@ public ApiResponse AllComputeByPM([FromBody] ComputerRequest request)
if
(
list
==
null
||
!
list
.
Any
())
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
list
);
var
result
=
list
.
GroupBy
(
t
=>
new
{
t
.
EmployeeName
,
t
.
JobNumber
}).
Select
(
t
=>
new
ComputeResponse
var
result
=
list
.
GroupBy
(
t
=>
new
{
t
.
AccountingUnit
,
t
.
UnitType
,
t
.
EmployeeName
,
t
.
JobNumber
}).
Select
(
t
=>
new
ComputeResponse
{
EmployeeName
=
t
.
Key
.
EmployeeName
,
JobNumber
=
t
.
Key
.
JobNumber
,
EmployeeName
=
t
.
Key
.
EmployeeName
,
AccountingUnit
=
t
.
Key
.
AccountingUnit
,
UnitType
=
t
.
Key
.
UnitType
,
PerforSumFee
=
t
.
Sum
(
s
=>
s
.
PerforSumFee
),
PerforManagementFee
=
t
.
Sum
(
s
=>
s
.
PerforManagementFee
),
AdjustLaterOtherFee
=
t
.
Sum
(
s
=>
s
.
AdjustLaterOtherFee
),
...
...
performance/Performance.Services/ComputeService.cs
View file @
8b109903
...
...
@@ -749,6 +749,10 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
item
.
ReservedRatio
=
empDic
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
ReservedRatio
??
0
;
item
.
ReservedRatioFee
=
Math
.
Round
(
real
*
(
item
.
ReservedRatio
??
0
),
2
,
MidpointRounding
.
AwayFromZero
);
item
.
RealGiveFee
=
Math
.
Round
(
item
.
ShouldGiveFee
-
(
item
.
ReservedRatioFee
??
0
)
??
0
,
2
,
MidpointRounding
.
AwayFromZero
);
// 人员信息使用人员字典中数据
item
.
AccountingUnit
=
empDic
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
AccountingUnit
??
""
;
item
.
UnitType
=
empDic
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
UnitType
??
""
;
item
.
EmployeeName
=
empDic
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
==
item
.
JobNumber
)?.
DoctorName
??
""
;
}
}
...
...
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