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
912dbcc4
Commit
912dbcc4
authored
Dec 13, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多工作量bug修改
parent
d424bda0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
performance/Performance.Services/SecondAllot/SecondAllotService.cs
+10
-4
No files found.
performance/Performance.Services/SecondAllot/SecondAllotService.cs
View file @
912dbcc4
...
...
@@ -511,8 +511,8 @@ public void SaveSecondAllotHeadData(int secondId, string json)
List
<
ag_worktype_source
>
insertData
=
new
List
<
ag_worktype_source
>();
var
worktypeSources
=
agworktypesourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
if
(
worktypeSources
==
null
||
!
worktypeSources
.
Any
())
{
//多工作量
var
workTypes
=
agworkloadtypeRepository
.
GetEntities
();
var
workValue
=
new
List
<
int
>();
foreach
(
var
item
in
keys
)
...
...
@@ -542,13 +542,19 @@ public void SaveSecondAllotHeadData(int secondId, string json)
}
}
agworktypesourceRepository
.
AddRange
(
insertData
.
ToArray
());
foreach
(
var
k
in
worktypeSources
.
Select
(
t
=>
t
.
FieldId
))
{
var
remove
=
insertData
.
FirstOrDefault
(
t
=>
t
.
FieldId
.
EqualsIgnoreCase
(
k
));
if
(
remove
!=
null
)
{
insertData
.
Remove
(
remove
);
}
}
agworktypesourceRepository
.
AddRange
(
insertData
.
ToArray
());
worktypeSources
=
agworktypesourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
foreach
(
var
key
in
keys
)
{
var
update
=
worktypeSources
.
FirstOrDefault
(
t
=>
t
.
FieldId
.
EqualsIgnoreCase
(
key
));
...
...
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