Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
asset-distribution
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
asset-distribution
Commits
21cbc6f0
Commit
21cbc6f0
authored
Apr 09, 2020
by
郑建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6.6-2 fix
parent
f1f511a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
FundModuleServiceImpl.java
...tribution/service/funding/impl/FundModuleServiceImpl.java
+18
-19
No files found.
src/main/java/com/quantgroup/asset/distribution/service/funding/impl/FundModuleServiceImpl.java
View file @
21cbc6f0
...
@@ -304,23 +304,22 @@ public class FundModuleServiceImpl implements IFundModuleService{
...
@@ -304,23 +304,22 @@ public class FundModuleServiceImpl implements IFundModuleService{
}
}
QGPreconditions
.
checkArgument
(
fundArray
.
size
()
!=
0
,
QGExceptionType
.
NO_FUND_INFO_BEEN_HIT
);
QGPreconditions
.
checkArgument
(
fundArray
.
size
()
!=
0
,
QGExceptionType
.
NO_FUND_INFO_BEEN_HIT
);
// 看命中优先级是否符合要求
// 看命中优先级是否符合要求
boolean
[]
bucket
=
new
boolean
[
fundArray
.
size
()
+
1
];
if
(
fundArray
.
size
()
>
1
){
Bag
priBag
=
new
HashBag
(
fundIds
);
List
<
Integer
>
priList
=
new
ArrayList
<>();
for
(
int
i
=
0
,
len
=
fundArray
.
size
();
i
<
len
;
i
++)
{
for
(
int
i
=
0
,
len
=
fundArray
.
size
();
i
<
len
;
i
++)
{
int
priority
=
fundArray
.
getJSONObject
(
i
).
getIntValue
(
"priority"
);
Integer
pri
=
fundArray
.
getJSONObject
(
i
).
getIntValue
(
"priority"
);
if
(!(
priority
>
0
&&
priority
<=
len
))
{
priList
.
add
(
pri
);
result
.
setSuccess
(
false
);
priBag
.
add
(
pri
);
result
.
setMessage
(
"多个资方配置存在交集"
);
configCondition
.
setResult
(
result
);
continue
B
;
}
}
if
(
bucket
[
priority
]
)
{
for
(
Integer
pri
:
priList
)
{
// 多个相同的优先级
if
(
priBag
.
getCount
(
pri
)
>
1
)
{
result
.
setSuccess
(
false
);
result
.
setSuccess
(
false
);
result
.
setMessage
(
"多个资方配置存在交集"
);
result
.
setMessage
(
"多个资方配置存在交集"
);
configCondition
.
setResult
(
result
);
configCondition
.
setResult
(
result
);
continue
B
;
continue
B
;
}
}
bucket
[
priority
]
=
true
;
}
}
}
// 查看是否两个资方ID相同且条件存在交集
// 查看是否两个资方ID相同且条件存在交集
Bag
bag
=
new
HashBag
(
fundIds
);
Bag
bag
=
new
HashBag
(
fundIds
);
...
@@ -427,7 +426,7 @@ public class FundModuleServiceImpl implements IFundModuleService{
...
@@ -427,7 +426,7 @@ public class FundModuleServiceImpl implements IFundModuleService{
}
else
{
}
else
{
String
start
=
getValue
(
operator
,
list
.
get
(
0
));
String
start
=
getValue
(
operator
,
list
.
get
(
0
));
while
(
list
.
contains
(
start
)){
while
(
list
.
contains
(
start
)){
start
=
getValue
(
operator
,
start
);
start
=
getValue
(
"<"
,
start
);
}
}
return
start
;
return
start
;
}
}
...
...
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