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
0090cfe6
Commit
0090cfe6
authored
Oct 13, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixed/bug' into v2020calculate
parents
d37d7cda
e86c6bf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
17 deletions
+23
-17
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+23
-17
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
0090cfe6
...
@@ -496,30 +496,36 @@ public void GenerateSecondAllot(per_allot allot)
...
@@ -496,30 +496,36 @@ public void GenerateSecondAllot(per_allot allot)
{
{
foreach
(
var
item
in
accountUnit
)
foreach
(
var
item
in
accountUnit
)
{
{
tempSecond
.
Add
(
new
ag_secondallot
if
(!
tempSecond
.
Any
(
f
=>
f
.
UnitType
==
((
UnitType
)
item
.
UnitType
).
ToString
()
&&
f
.
Department
==
item
.
AccountingUnit
))
{
{
AllotId
=
allot
.
ID
,
tempSecond
.
Add
(
new
ag_secondallot
Year
=
allot
.
Year
,
{
Month
=
allot
.
Month
,
AllotId
=
allot
.
ID
,
UnitType
=
((
UnitType
)
item
.
UnitType
).
ToString
(),
Year
=
allot
.
Year
,
Department
=
item
.
AccountingUnit
,
Month
=
allot
.
Month
,
RealGiveFee
=
item
.
RealGiveFee
,
UnitType
=
((
UnitType
)
item
.
UnitType
).
ToString
(),
});
Department
=
item
.
AccountingUnit
,
RealGiveFee
=
item
.
RealGiveFee
,
});
}
}
}
}
}
if
(
specialList
!=
null
)
if
(
specialList
!=
null
)
{
{
foreach
(
var
item
in
specialList
)
foreach
(
var
item
in
specialList
.
Select
(
w
=>
new
{
w
.
AccountingUnit
,
w
.
RealGiveFee
}).
Distinct
()
)
{
{
tempSecond
.
Add
(
new
ag_secondallot
if
(!
tempSecond
.
Any
(
f
=>
f
.
UnitType
==
UnitType
.
特殊核算组
.
ToString
()
&&
f
.
Department
==
item
.
AccountingUnit
))
{
{
AllotId
=
allot
.
ID
,
tempSecond
.
Add
(
new
ag_secondallot
Year
=
allot
.
Year
,
{
Month
=
allot
.
Month
,
AllotId
=
allot
.
ID
,
UnitType
=
UnitType
.
特殊核算组
.
ToString
(),
Year
=
allot
.
Year
,
Department
=
item
.
AccountingUnit
,
Month
=
allot
.
Month
,
RealGiveFee
=
item
.
RealGiveFee
,
UnitType
=
UnitType
.
特殊核算组
.
ToString
(),
});
Department
=
item
.
AccountingUnit
,
RealGiveFee
=
item
.
RealGiveFee
,
});
}
}
}
}
}
...
...
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