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
b29d413d
Commit
b29d413d
authored
Sep 23, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次绩效审核列表
parent
6a0b80a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
+20
-1
performance/Performance.Services/SecondAllotService.cs
+20
-1
No files found.
performance/Performance.Services/SecondAllotService.cs
View file @
b29d413d
...
...
@@ -1181,8 +1181,27 @@ public List<ag_secondallot> AuditList(int userId, int allotId)
if
(
allot
==
null
)
throw
new
PerformanceException
(
"所选绩效不存在!"
);
var
accountUnit
=
perforResaccountRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
!
new
int
[]
{
(
int
)
UnitType
.
行政高层
,
(
int
)
UnitType
.
行政中层
}.
Contains
(
t
.
UnitType
.
Value
));
if
(
accountUnit
==
null
||
!
accountUnit
.
Any
())
return
new
List
<
ag_secondallot
>();
var
secondList
=
perforAgsecondallotRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allot
.
ID
&&
t
.
Year
==
allot
.
Year
&&
t
.
Month
==
allot
.
Month
&&
t
.
Status
==
2
);
return
secondList
;
var
result
=
accountUnit
.
Select
(
t
=>
{
var
second
=
secondList
?.
FirstOrDefault
(
f
=>
f
.
UnitType
==
((
UnitType
)
t
.
UnitType
).
ToString
()
&&
f
.
Department
==
t
.
AccountingUnit
);
if
(
second
!=
null
)
return
second
;
return
new
ag_secondallot
{
AllotId
=
allotId
,
Year
=
allot
.
Year
,
Month
=
allot
.
Month
,
UnitType
=
((
UnitType
)
t
.
UnitType
).
ToString
(),
Department
=
t
.
AccountingUnit
,
RealGiveFee
=
t
.
RealGiveFee
,
Status
=
1
,
};
});
var
enums
=
EnumHelper
.
GetItems
<
UnitType
>();
return
result
.
OrderBy
(
t
=>
enums
.
FirstOrDefault
(
f
=>
f
.
Name
==
t
.
UnitType
)?.
Value
).
ThenBy
(
t
=>
t
.
Department
).
ToList
();
}
/// <summary>
...
...
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