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
8798741c
Commit
8798741c
authored
Sep 26, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排序
parent
35815337
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
performance/Performance.Services/ComputeService.cs
+3
-3
No files found.
performance/Performance.Services/ComputeService.cs
View file @
8798741c
...
@@ -96,7 +96,7 @@ public List<res_specialunit> GetSpecial(int allotId)
...
@@ -96,7 +96,7 @@ public List<res_specialunit> GetSpecial(int allotId)
public
List
<
DeptResponse
>
GetDoctorPerformance
(
int
allotId
)
public
List
<
DeptResponse
>
GetDoctorPerformance
(
int
allotId
)
{
{
List
<
int
>
types
=
new
List
<
int
>
{
(
int
)
UnitType
.
医生组
,
(
int
)
UnitType
.
医技组
};
List
<
int
>
types
=
new
List
<
int
>
{
(
int
)
UnitType
.
医生组
,
(
int
)
UnitType
.
医技组
};
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
types
.
Contains
(
t
.
UnitType
.
Value
)
&&
t
.
AllotID
==
allotId
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
types
.
Contains
(
t
.
UnitType
.
Value
)
&&
t
.
AllotID
==
allotId
)?.
OrderBy
(
t
=>
t
.
UnitType
).
ThenBy
Descending
(
t
=>
t
.
AccountingUnit
);
List
<
DeptResponse
>
doctor
=
Mapper
.
Map
<
List
<
DeptResponse
>>(
list
);
List
<
DeptResponse
>
doctor
=
Mapper
.
Map
<
List
<
DeptResponse
>>(
list
);
doctor
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
doctor
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
return
doctor
;
return
doctor
;
...
@@ -109,7 +109,7 @@ public List<DeptResponse> GetDoctorPerformance(int allotId)
...
@@ -109,7 +109,7 @@ public List<DeptResponse> GetDoctorPerformance(int allotId)
/// <returns></returns>
/// <returns></returns>
public
List
<
DeptResponse
>
GetNursePerformance
(
int
allotId
)
public
List
<
DeptResponse
>
GetNursePerformance
(
int
allotId
)
{
{
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
t
.
UnitType
==
(
int
)
UnitType
.
护理组
&&
t
.
AllotID
==
allotId
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
t
.
UnitType
==
(
int
)
UnitType
.
护理组
&&
t
.
AllotID
==
allotId
)?.
OrderBy
(
t
=>
t
.
UnitType
).
ThenBy
Descending
(
t
=>
t
.
AccountingUnit
);
List
<
DeptResponse
>
nurse
=
Mapper
.
Map
<
List
<
DeptResponse
>>(
list
);
List
<
DeptResponse
>
nurse
=
Mapper
.
Map
<
List
<
DeptResponse
>>(
list
);
nurse
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
nurse
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
return
nurse
;
return
nurse
;
...
@@ -123,7 +123,7 @@ public List<DeptResponse> GetNursePerformance(int allotId)
...
@@ -123,7 +123,7 @@ public List<DeptResponse> GetNursePerformance(int allotId)
public
List
<
DeptResponse
>
GetOtherPerformance
(
int
allotId
)
public
List
<
DeptResponse
>
GetOtherPerformance
(
int
allotId
)
{
{
var
unitType
=
new
List
<
int
>
{
(
int
)
UnitType
.
其他组
,
(
int
)
UnitType
.
专家组
};
var
unitType
=
new
List
<
int
>
{
(
int
)
UnitType
.
其他组
,
(
int
)
UnitType
.
专家组
};
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
unitType
.
Contains
(
t
.
UnitType
.
Value
)
&&
t
.
AllotID
==
allotId
)?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
unitType
.
Contains
(
t
.
UnitType
.
Value
)
&&
t
.
AllotID
==
allotId
)?.
OrderBy
(
t
=>
t
.
UnitType
).
ThenBy
Descending
(
t
=>
t
.
AccountingUnit
);
List
<
DeptResponse
>
other
=
Mapper
.
Map
<
List
<
DeptResponse
>>(
list
);
List
<
DeptResponse
>
other
=
Mapper
.
Map
<
List
<
DeptResponse
>>(
list
);
other
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
other
?.
ForEach
(
t
=>
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
());
return
other
;
return
other
;
...
...
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