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
cdff00e8
Commit
cdff00e8
authored
Dec 29, 2021
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
aea7d36f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
performance/Performance.Api/Controllers/ReportController.cs
+16
-0
performance/Performance.DtoModels/Request/ComputerRequest.cs
+8
-0
No files found.
performance/Performance.Api/Controllers/ReportController.cs
View file @
cdff00e8
...
...
@@ -399,8 +399,24 @@ public ApiResponse GetWholeHospitalGrantSummary([FromBody] HospitalGrantSummary
if
(
null
==
datas
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
headlist
=
request
.
GroupBy
.
Union
(
request
.
SumBy
).
Select
(
t
=>
t
.
ToLower
()).
ToList
();
var
AllComputeView
=
ComputeConfig
.
AllComputeView
.
Where
(
t
=>
headlist
.
Contains
(
t
.
Name
.
ToLower
())).
ToList
();
List
<
Head
>
head
=
new
List
<
Head
>();
foreach
(
var
item
in
AllComputeView
)
{
Head
head1
=
new
Head
()
{
Name
=
item
.
Name
,
Alias
=
item
.
Alias
};
head
.
Add
(
head1
);
}
var
list
=
new
QueryComputeByDateGetTotal
{
Head
=
head
,
Data
=
datas
.
ToList
(),
TotalData
=
_computeService
.
SumDatas
(
datas
),
};
...
...
performance/Performance.DtoModels/Request/ComputerRequest.cs
View file @
cdff00e8
using
FluentValidation
;
using
Performance.EntityModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
...
...
@@ -84,6 +85,13 @@ public class QueryComputeByDateGetPage
}
public
class
QueryComputeByDateGetTotal
{
public
List
<
Head
>
Head
{
get
;
set
;
}
public
List
<
dynamic
>
Data
{
get
;
set
;
}
public
Dictionary
<
string
,
decimal
>
TotalData
{
get
;
set
;
}}
}
public
class
Head
{
public
string
Name
{
get
;
set
;
}
public
string
Alias
{
get
;
set
;
}
}
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