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
73bd5cd5
Commit
73bd5cd5
authored
Dec 03, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务发放表隐藏来源、职称、调节系数
parent
2b7fd3a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
performance/Performance.Api/Controllers/ComputeController.cs
+1
-4
No files found.
performance/Performance.Api/Controllers/ComputeController.cs
View file @
73bd5cd5
...
...
@@ -289,20 +289,17 @@ 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
.
Source
,
t
.
EmployeeName
,
t
.
JobNumber
}).
Select
(
t
=>
new
ComputeResponse
var
result
=
list
.
GroupBy
(
t
=>
new
{
t
.
EmployeeName
,
t
.
JobNumber
}).
Select
(
t
=>
new
ComputeResponse
{
Source
=
t
.
Key
.
Source
,
EmployeeName
=
t
.
Key
.
EmployeeName
,
JobNumber
=
t
.
Key
.
JobNumber
,
PerforSumFee
=
t
.
Sum
(
s
=>
s
.
PerforSumFee
),
PerforManagementFee
=
t
.
Sum
(
s
=>
s
.
PerforManagementFee
),
Adjust
=
t
.
FirstOrDefault
()?.
Adjust
??
0
,
AdjustLaterOtherFee
=
t
.
Sum
(
s
=>
s
.
AdjustLaterOtherFee
),
ShouldGiveFee
=
t
.
Sum
(
s
=>
s
.
ShouldGiveFee
),
OthePerfor
=
t
.
Sum
(
s
=>
s
.
OthePerfor
),
NightWorkPerfor
=
t
.
Sum
(
s
=>
s
.
NightWorkPerfor
),
RealGiveFee
=
t
.
Sum
(
s
=>
s
.
RealGiveFee
),
JobTitle
=
t
.
FirstOrDefault
(
f
=>
!
string
.
IsNullOrEmpty
(
f
.
JobTitle
))?.
JobTitle
//ReservedRatio = t.Sum(s => s.ReservedRatio),
//ReservedRatioFee = t.Sum(s => s.ReservedRatioFee),
});
...
...
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