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
3b806fa3
Commit
3b806fa3
authored
Sep 29, 2019
by
李承祥
Committed by
ruyun.zhang@suvalue.com
Sep 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保底配置修改-过滤重复数据
parent
54317eef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
performance/Performance.Services/GuaranteeService.cs
+5
-1
No files found.
performance/Performance.Services/GuaranteeService.cs
View file @
3b806fa3
...
...
@@ -106,7 +106,11 @@ public List<cof_guarantee> GuarantUpdate(GuaranteeRequest request)
if
(
guaranteeList
==
null
)
throw
new
PerformanceException
(
"提交数据无效"
);
var
filterList
=
perforCofguaranteeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
guarantee
.
AllotId
&&
t
.
UnitType
==
request
.
UnitType
&&
t
.
Target
==
request
.
Target
);
<<<<<<<
HEAD
if
((
filterList
!=
null
&&
filterList
.
Count
>
0
)
&&
(
request
.
UnitType
!=
guarantee
.
UnitType
||
request
.
Target
!=
guarantee
.
Target
))
=======
if
(
request
.
UnitType
!=
guarantee
.
UnitType
&&
filterList
!=
null
&&
filterList
.
Count
>
0
)
>>>>>>>
50
ad63f
...
保底配置修改
-
过滤重复数据
throw
new
PerformanceException
(
$"[
{((
UnitType
)
request
.
UnitType
).
ToString
()}
]已存在\"
{
request
.
Target
}
\",请重新选择"
);
#
region
修改优先级
...
...
@@ -167,7 +171,7 @@ public List<cof_guarantee> GuarantUpdate(GuaranteeRequest request)
var
exist
=
request
.
Source
.
Where
(
t
=>
t
.
GId
.
HasValue
&&
t
.
GId
!=
0
).
Select
(
t
=>
t
.
GId
);
guaranteeList
.
ForEach
(
t
=>
{
if
(
exist
.
Contains
(
t
.
Id
))
if
(
exist
.
Contains
(
t
.
Id
)
&&
!
filterList
.
Select
(
s
=>
s
.
Source
).
Contains
(
t
.
Source
)
)
t
.
Source
=
request
.
Source
.
FirstOrDefault
(
s
=>
s
.
GId
==
t
.
Id
).
GValue
;
else
delItem
.
Add
(
t
.
Id
);
...
...
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