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
63de1018
Commit
63de1018
authored
Jun 19, 2019
by
799284587@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排序
parent
8a71eebd
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 @
63de1018
...
@@ -63,7 +63,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
...
@@ -63,7 +63,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
};
};
var
obj
=
keyValues2
.
First
(
t
=>
t
.
type
==
type
);
var
obj
=
keyValues2
.
First
(
t
=>
t
.
type
==
type
);
conpute
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
AccountType
==
obj
.
accounttype
.
ToString
())
conpute
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
AccountType
==
obj
.
accounttype
.
ToString
())
?.
OrderBy
(
t
=>
t
.
AccountingUnit
).
ThenBy
(
t
=>
t
.
FitPeople
).
ThenByDescending
(
t
=>
t
.
RealGiveFee
).
ToList
();
?.
OrderBy
Descending
(
t
=>
t
.
RealGiveFee
).
ThenBy
(
t
=>
t
.
FitPeople
).
ThenBy
(
t
=>
t
.
AccountingUnit
).
ToList
();
}
}
else
if
((
new
int
[]
{
4
,
5
}).
Contains
(
type
))
else
if
((
new
int
[]
{
4
,
5
}).
Contains
(
type
))
{
{
...
@@ -77,7 +77,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
...
@@ -77,7 +77,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
var
dept
=
new
string
[]
{
AccountUnitType
.
临床科室
.
ToString
(),
AccountUnitType
.
医技科室
.
ToString
()
};
var
dept
=
new
string
[]
{
AccountUnitType
.
临床科室
.
ToString
(),
AccountUnitType
.
医技科室
.
ToString
()
};
conpute
=
_perforRescomputeRepository
conpute
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
dept
.
Contains
(
t
.
AccountType
)
&&
obj
.
accounttype
.
Contains
(
t
.
FitPeople
))
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
dept
.
Contains
(
t
.
AccountType
)
&&
obj
.
accounttype
.
Contains
(
t
.
FitPeople
))
?.
OrderBy
(
t
=>
t
.
AccountingUnit
).
ThenBy
(
t
=>
t
.
FitPeople
).
ThenByDescending
(
t
=>
t
.
RealGiveFee
).
ToList
();
?.
OrderBy
Descending
(
t
=>
t
.
RealGiveFee
).
ThenBy
(
t
=>
t
.
FitPeople
).
ThenBy
(
t
=>
t
.
AccountingUnit
).
ToList
();
}
}
else
else
{
{
...
@@ -98,7 +98,7 @@ public List<res_specialunit> GetSpecial(int allotId)
...
@@ -98,7 +98,7 @@ public List<res_specialunit> GetSpecial(int allotId)
var
list
=
_perforResspecialunitRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
var
list
=
_perforResspecialunitRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
if
(
list
!=
null
&&
list
.
Any
())
if
(
list
!=
null
&&
list
.
Any
())
{
{
list
=
list
.
OrderBy
(
t
=>
t
.
AccountingUnit
).
ToList
();
list
=
list
.
OrderBy
Descending
(
t
=>
t
.
RealGiveFee
).
ThenBy
(
t
=>
t
.
AccountingUnit
).
ToList
();
return
Mapper
.
Map
<
List
<
res_specialunit
>>(
list
);
return
Mapper
.
Map
<
List
<
res_specialunit
>>(
list
);
}
}
return
new
List
<
res_specialunit
>();
return
new
List
<
res_specialunit
>();
...
...
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