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
9021d490
Commit
9021d490
authored
Jun 21, 2024
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
录入审核(添加合计)
parent
6be8cabb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+5
-0
performance/Performance.DtoModels/Response/GatherResponse.cs
+4
-0
performance/Performance.Services/EmployeeService.cs
+8
-2
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
9021d490
...
@@ -4806,6 +4806,11 @@
...
@@ -4806,6 +4806,11 @@
汇总
汇总
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.GatherInfo.Total"
>
<summary>
合计
</summary>
</member>
<member
name=
"P:Performance.DtoModels.Gather.UserId"
>
<member
name=
"P:Performance.DtoModels.Gather.UserId"
>
<summary>
<summary>
用户Id
用户Id
...
...
performance/Performance.DtoModels/Response/GatherResponse.cs
View file @
9021d490
...
@@ -19,6 +19,10 @@ public class GatherInfo
...
@@ -19,6 +19,10 @@ public class GatherInfo
public
int
TotalPages
{
get
;
set
;
}
public
int
TotalPages
{
get
;
set
;
}
public
int
PageSize
{
get
;
set
;
}
public
int
PageSize
{
get
;
set
;
}
public
int
TotalCount
{
get
;
set
;
}
public
int
TotalCount
{
get
;
set
;
}
/// <summary>
/// 合计
/// </summary>
public
Dictionary
<
string
,
decimal
?>[]
Total
{
get
;
set
;
}
}
}
public
class
GatherDropResponse
public
class
GatherDropResponse
...
...
performance/Performance.Services/EmployeeService.cs
View file @
9021d490
...
@@ -1700,14 +1700,20 @@ public GatherInfo GetGather(Gather gather)
...
@@ -1700,14 +1700,20 @@ public GatherInfo GetGather(Gather gather)
t
.
Name
=
t
.
Name
.
ToLower
();
t
.
Name
=
t
.
Name
.
ToLower
();
});
});
GatherInfo
gatherInfo
=
new
GatherInfo
()
var
total
=
new
Dictionary
<
string
,
decimal
?>[]
{
new
Dictionary
<
string
,
decimal
?>
{
{
gather
.
Category
,
datas
.
Sum
(
s
=>
s
.
Fee
)
}
}
};
var
gatherInfo
=
new
GatherInfo
()
{
{
Heads
=
head
,
Heads
=
head
,
Datas
=
result
.
Skip
((
gather
.
PageNumber
-
1
)
*
gather
.
PageSize
).
Take
(
gather
.
PageSize
).
ToList
(),
Datas
=
result
.
Skip
((
gather
.
PageNumber
-
1
)
*
gather
.
PageSize
).
Take
(
gather
.
PageSize
).
ToList
(),
CurrentPage
=
gather
.
PageNumber
,
CurrentPage
=
gather
.
PageNumber
,
TotalCount
=
result
.
Count
(),
TotalCount
=
result
.
Count
(),
PageSize
=
gather
.
PageSize
,
PageSize
=
gather
.
PageSize
,
TotalPages
=
(
int
)
Math
.
Ceiling
((
double
)
result
.
Count
()
/
gather
.
PageSize
)
TotalPages
=
(
int
)
Math
.
Ceiling
((
double
)
result
.
Count
()
/
gather
.
PageSize
),
Total
=
total
};
};
return
gatherInfo
;
return
gatherInfo
;
}
}
...
...
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