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
2421380b
Commit
2421380b
authored
Sep 26, 2021
by
王业雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资金产品编辑时期数回显
parent
4fe99f10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
14 deletions
+29
-14
FundProductServiceImpl.java
...stribution/service/route/impl/FundProductServiceImpl.java
+29
-14
No files found.
src/main/java/com/quantgroup/asset/distribution/service/route/impl/FundProductServiceImpl.java
View file @
2421380b
...
...
@@ -166,28 +166,43 @@ public class FundProductServiceImpl implements IFundProductService {
basic
.
addAll
(
orther
);
//3.基本信息和其他信息字段,对应的value
Map
<
Long
,
String
>
map
=
new
HashMap
<>();
//3.1解析基本规则10 <= age && age <= 50 && 10 <= amount && amount <= 20000 &&
term == 12
&& ! include(not_permit_tels,tel)
//3.1解析基本规则10 <= age && age <= 50 && 10 <= amount && amount <= 20000 &&
(term == 12 || term == 10)
&& ! include(not_permit_tels,tel)
//获取资金产品存的value
String
basicRule
=
one
.
getBasicRule
();
//解析value
String
[]
split
=
basicRule
.
split
(
"&&"
);
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
for
(
ProductRuleEntity
productRuleEntity
:
basic
)
{
for
(
String
item
:
split
)
{
for
(
ProductRuleEntity
productRuleEntity
:
basic
)
{
//在value中寻找对应的规则
if
(
"not_permit_tels"
.
equals
(
productRuleEntity
.
getRuleVal
())){
map
.
put
(
productRuleEntity
.
getId
(),
one
.
getTelRule
());
if
(
"not_permit_tels"
.
equals
(
productRuleEntity
.
getRuleVal
()))
{
map
.
put
(
productRuleEntity
.
getId
(),
one
.
getTelRule
());
break
;
}
if
(
split
[
i
].
contains
(
productRuleEntity
.
getRuleVal
())){
//取出value中的值
String
numeric
=
getNumeric
(
split
[
i
]);
String
s
=
map
.
get
(
productRuleEntity
.
getId
());
if
(
StringUtils
.
isEmpty
(
s
)){
map
.
put
(
productRuleEntity
.
getId
(),
numeric
);
}
else
{
map
.
put
(
productRuleEntity
.
getId
(),
s
.
concat
(
","
).
concat
(
numeric
));
if
(
item
.
contains
(
productRuleEntity
.
getRuleVal
()))
{
if
(
"term"
.
equals
(
productRuleEntity
.
getRuleVal
()))
{
String
[]
splitTerm
=
item
.
split
(
"\\|\\|"
);
for
(
String
value
:
splitTerm
)
{
//取出value中的值
String
numeric
=
getNumeric
(
value
);
String
s
=
map
.
get
(
productRuleEntity
.
getId
());
if
(
StringUtils
.
isEmpty
(
s
))
{
map
.
put
(
productRuleEntity
.
getId
(),
numeric
);
}
else
{
map
.
put
(
productRuleEntity
.
getId
(),
s
.
concat
(
","
).
concat
(
numeric
));
}
}
break
;
}
else
{
//取出value中的值
String
numeric
=
getNumeric
(
item
);
String
s
=
map
.
get
(
productRuleEntity
.
getId
());
if
(
StringUtils
.
isEmpty
(
s
))
{
map
.
put
(
productRuleEntity
.
getId
(),
numeric
);
}
else
{
map
.
put
(
productRuleEntity
.
getId
(),
s
.
concat
(
","
).
concat
(
numeric
));
}
break
;
}
break
;
}
}
}
...
...
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