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
fb287116
Commit
fb287116
authored
Feb 24, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤行政科室绩效、行政工勤绩效内容,根据是否需要二次分配划分
parent
d2a8c245
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
performance/Performance.Services/ComputeService.cs
+3
-1
No files found.
performance/Performance.Services/ComputeService.cs
View file @
fb287116
...
...
@@ -192,6 +192,8 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
else
{
var
compute
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
AccountType
==
items
.
FirstOrDefault
(
p
=>
p
.
Value
==
type
).
Name
);
if
(
type
==
(
int
)
AccountUnitType
.
行政工勤
)
compute
=
compute
?.
Where
(
w
=>
w
.
NeedSecondAllot
==
"否"
)?.
ToList
();
if
(
compute
==
null
||
!
compute
.
Any
())
return
new
List
<
ResComputeResponse
>();
...
...
@@ -296,7 +298,7 @@ public List<DeptResponse> GetOfficePerformance(int allotId)
{
var
unitType
=
new
List
<
int
>
{
(
int
)
UnitType
.
行政后勤
};
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
unitType
.
Contains
(
t
.
UnitType
.
Value
)
&&
t
.
AllotID
==
allotId
)
var
list
=
perforResaccountRepository
.
GetEntities
(
t
=>
unitType
.
Contains
(
t
.
UnitType
.
Value
)
&&
t
.
AllotID
==
allotId
&&
t
.
NeedSecondAllot
==
"是"
)
?.
OrderBy
(
t
=>
t
.
UnitType
)
.
ThenByDescending
(
t
=>
t
.
AccountingUnit
);
List
<
DeptResponse
>
other
=
Mapper
.
Map
<
List
<
DeptResponse
>>(
list
);
...
...
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