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
6daa579f
Commit
6daa579f
authored
Mar 30, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v20201230yubei' into v2020morge-graphql
parents
09af90ea
dd75a307
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+4
-3
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
6daa579f
...
...
@@ -140,7 +140,7 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
List
<
res_specialunit
>
resDataList
=
new
List
<
res_specialunit
>();
var
groupSpeList
=
dataList
.
GroupBy
(
t
=>
t
.
AccountingUnit
).
Select
(
t
=>
new
{
AccountingUnit
=
t
.
Key
,
Number
=
t
.
Max
(
p
=>
p
.
Number
)
,
});
var
groupSpeList
=
dataList
.
GroupBy
(
t
=>
t
.
AccountingUnit
).
Select
(
t
=>
new
{
AccountingUnit
=
t
.
Key
,
Number
=
t
.
OrderBy
(
w
=>
w
.
RowNumber
).
FirstOrDefault
().
Number
,
});
var
empolyeeList
=
perforImemployeeclinicRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
&&
t
.
UnitType
==
UnitType
.
特殊核算组
.
ToString
());
List
<
ComputeEmployee
>
computeEmployees
=
Mapper
.
Map
<
List
<
ComputeEmployee
>>(
empolyeeList
);
...
...
@@ -214,11 +214,12 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
AdjustLaterOtherFee
=
dept
?.
AdjustLaterOtherFee
??
0
,
NightShiftWorkPerforFee
=
nightShift
,
};
res
.
PerforTotal
=
(
sumValue
??
0
)
+
res
.
AssessBeforeOtherFee
;
res
.
ResultsTotalFee
=
Math
.
Round
((
sumValue
*
(
dept
?.
BasicFactor
??
1
m
))
??
0
);
res
.
PerforTotal
=
res
.
ResultsTotalFee
+
res
.
AssessBeforeOtherFee
;
res
.
GiveFee
=
Math
.
Round
((
res
.
PerforTotal
*
res
.
ScoringAverage
+
res
.
MedicineExtra
+
res
.
MaterialsExtra
+
res
.
Punishment
+
res
.
AssessLaterOtherFee
)
??
0
);
res
.
RealGiveFee
=
Math
.
Round
(
res
.
GiveFee
*
res
.
Adjust
+
res
.
AdjustLaterOtherFee
??
0
);
res
.
Avg
=
Math
.
Round
((
res
.
Number
!=
0
?
res
.
PerforTotal
/
res
.
Number
:
null
)
??
0
);
res
.
ResultsTotalFee
=
Math
.
Round
(
sumValue
??
0
);
resDataList
.
Add
(
res
);
}
...
...
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