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
895b76e1
Commit
895b76e1
authored
Dec 09, 2021
by
纪旭 韦
Browse files
Options
Browse Files
Download
Plain Diff
汇总接口返回值增加了id
parents
9507bf30
cadad92f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
performance/Performance.DtoModels/Response/GatherResponse.cs
+1
-0
performance/Performance.Services/EmployeeService.cs
+3
-1
No files found.
performance/Performance.DtoModels/Response/GatherResponse.cs
View file @
895b76e1
...
@@ -41,6 +41,7 @@ public class GatherRequest
...
@@ -41,6 +41,7 @@ public class GatherRequest
public
class
GatherTotalRequest
public
class
GatherTotalRequest
{
{
public
int
ID
{
get
;
set
;
}
public
string
Department
{
get
;
set
;
}
public
string
Department
{
get
;
set
;
}
public
string
Source
{
get
;
set
;
}
public
string
Source
{
get
;
set
;
}
public
decimal
Fee
{
get
;
set
;
}
public
decimal
Fee
{
get
;
set
;
}
...
...
performance/Performance.Services/EmployeeService.cs
View file @
895b76e1
...
@@ -1332,8 +1332,9 @@ public GatherResponse GetGatherTotal(int allotId, PersonParamsRequest request)
...
@@ -1332,8 +1332,9 @@ public GatherResponse GetGatherTotal(int allotId, PersonParamsRequest request)
var
datas
=
exresultgatherRepository
.
GetEntities
(
exp
);
var
datas
=
exresultgatherRepository
.
GetEntities
(
exp
);
var
result
=
datas
.
GroupBy
(
a
=>
new
{
a
.
Department
,
a
.
Source
}).
Select
(
t
=>
new
var
result
=
datas
.
GroupBy
(
a
=>
new
{
a
.
AllotId
,
a
.
Department
,
a
.
Source
}).
Select
(
t
=>
new
{
{
ID
=
t
.
Key
.
AllotId
,
Department
=
t
.
Key
.
Department
,
Department
=
t
.
Key
.
Department
,
Source
=
t
.
Key
.
Source
.
Split
(
' '
)[
1
],
Source
=
t
.
Key
.
Source
.
Split
(
' '
)[
1
],
Fee
=
t
.
Sum
(
a
=>
a
.
Fee
)
Fee
=
t
.
Sum
(
a
=>
a
.
Fee
)
...
@@ -1346,6 +1347,7 @@ public GatherResponse GetGatherTotal(int allotId, PersonParamsRequest request)
...
@@ -1346,6 +1347,7 @@ public GatherResponse GetGatherTotal(int allotId, PersonParamsRequest request)
{
{
GatherTotalRequest
gatherTotalRequest
=
new
GatherTotalRequest
()
GatherTotalRequest
gatherTotalRequest
=
new
GatherTotalRequest
()
{
{
ID
=
item
.
ID
,
Department
=
item
.
Department
,
Department
=
item
.
Department
,
Source
=
item
.
Source
,
Source
=
item
.
Source
,
Fee
=
item
.
Fee
Fee
=
item
.
Fee
...
...
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