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
d9a5bfd3
Commit
d9a5bfd3
authored
Mar 20, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增绩效年月列表
parent
d4048578
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
+23
-1
performance/Performance.Api/Controllers/ReportController.cs
+19
-1
performance/Performance.DtoModels/Request/SelectionRequest.cs
+4
-0
No files found.
performance/Performance.Api/Controllers/ReportController.cs
View file @
d9a5bfd3
...
@@ -15,19 +15,37 @@ namespace Performance.Api.Controllers
...
@@ -15,19 +15,37 @@ namespace Performance.Api.Controllers
[
Route
(
"api/report"
)]
[
Route
(
"api/report"
)]
public
class
ReportController
:
Controller
public
class
ReportController
:
Controller
{
{
private
AllotService
allotService
;
private
ReportService
reportService
;
private
ReportService
reportService
;
private
readonly
ReportDataService
reportDataService
;
private
ReportDataService
reportDataService
;
private
ClaimService
claimService
;
private
ClaimService
claimService
;
public
ReportController
(
public
ReportController
(
ClaimService
claimService
,
ClaimService
claimService
,
AllotService
allotService
,
ReportService
reportService
,
ReportService
reportService
,
ReportDataService
reportDataService
)
ReportDataService
reportDataService
)
{
{
this
.
allotService
=
allotService
;
this
.
reportService
=
reportService
;
this
.
reportService
=
reportService
;
this
.
reportDataService
=
reportDataService
;
this
.
reportDataService
=
reportDataService
;
this
.
claimService
=
claimService
;
this
.
claimService
=
claimService
;
}
}
[
Route
(
"rank"
)]
[
HttpPost
]
public
ApiResponse
Rank
([
FromBody
]
HospitalIdRequest
request
)
{
var
allots
=
allotService
.
GetAllotList
(
request
.
HospitalId
);
int
[]
states
=
new
int
[]
{
6
,
8
};
var
result
=
allots
.
Where
(
w
=>
states
.
Contains
(
w
.
States
))
.
Select
(
w
=>
new
{
w
.
Year
,
w
.
Month
})
.
OrderByDescending
(
w
=>
w
.
Year
)
.
ThenByDescending
(
w
=>
w
.
Month
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
[
Route
(
"selection"
)]
[
Route
(
"selection"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
Selection
([
FromBody
]
SelectionRequest
report
)
public
ApiResponse
Selection
([
FromBody
]
SelectionRequest
report
)
...
...
performance/Performance.DtoModels/Request/SelectionRequest.cs
View file @
d9a5bfd3
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
namespace
Performance.DtoModels
namespace
Performance.DtoModels
{
{
public
class
HospitalIdRequest
{
public
int
HospitalId
{
get
;
set
;
}
}
public
class
SelectionRequest
public
class
SelectionRequest
{
{
public
int
GroupId
{
get
;
set
;
}
public
int
GroupId
{
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