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
84ad6c88
Commit
84ad6c88
authored
May 07, 2022
by
1391696987
Browse files
Options
Browse Files
Download
Plain Diff
合并wuzhou
parents
bca53ce4
61bf169d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
performance/Performance.Services/RedistributionService.cs
+7
-3
No files found.
performance/Performance.Services/RedistributionService.cs
View file @
84ad6c88
...
...
@@ -436,7 +436,6 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
head
.
AddOrUpdate
(
nameof
(
second
.
UnitType
),
second
.
UnitType
);
head
.
AddOrUpdate
(
nameof
(
ComputeMode
),
computeMode
);
head
.
AddOrUpdate
(
"ComputeModeDescription"
,
EnumHelper
.
GetDescription
(
computeMode
));
var
allotStates
=
new
int
[]
{
(
int
)
AllotStates
.
绩效下发
,
(
int
)
AllotStates
.
归档
};
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
SecondId
),
second
.
Id
);
head
.
AddOrUpdate
(
nameof
(
ag_headsource
.
PaymentOfTheMonth
),
$"
{
allot
.
Year
}
年
{
allot
.
Month
.
ToString
().
PadLeft
(
2
,
'0'
)}
月"
);
...
...
@@ -474,9 +473,14 @@ public void RowsExpand(per_allot allot, List<SecondColumnDictionary> dic, List<D
// 已提交
if
(
second
.
Status
.
HasValue
&&
status
.
Contains
(
second
.
Status
.
Value
))
{
foreach
(
var
item
in
headDynamic
.
Where
(
w
=>
w
.
FieldId
.
StartsWithIgnoreCase
(
"Workload_Ratio_"
)).
OrderBy
(
t
=>
t
.
Id
))
var
groupDatas
=
headDynamic
.
Where
(
w
=>
w
.
FieldId
.
StartsWithIgnoreCase
(
"Workload_Ratio_"
))
.
GroupBy
(
w
=>
new
{
w
.
WorkTypeId
,
w
.
SecondId
,
w
.
FieldId
,
w
.
FieldName
})
.
Select
(
w
=>
new
{
w
.
Key
.
FieldId
,
Value
=
w
.
OrderByDescending
(
w
=>
w
.
Id
).
FirstOrDefault
()?.
Value
??
0
});
foreach
(
var
item
in
groupDatas
)
{
head
.
AddOrUpdate
(
item
.
FieldId
,
item
.
Value
??
0
);
head
.
AddOrUpdate
(
item
.
FieldId
,
item
.
Value
);
}
}
// 未提交
...
...
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