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
8af3c618
Commit
8af3c618
authored
Sep 29, 2021
by
王业雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
63e44bb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
ChannelRouteServiceImpl.java
...tribution/service/route/impl/ChannelRouteServiceImpl.java
+6
-2
FundProductServiceImpl.java
...stribution/service/route/impl/FundProductServiceImpl.java
+4
-1
No files found.
src/main/java/com/quantgroup/asset/distribution/service/route/impl/ChannelRouteServiceImpl.java
View file @
8af3c618
...
...
@@ -197,8 +197,12 @@ public class ChannelRouteServiceImpl implements IChannelRouteService {
}
else
{
channelRuleEntity
.
setEnable
(
false
);
}
channelRuleEntity
.
setUserTag
(
"["
+
channelRuleEntity
.
getUserTag
()+
"]"
);
channelRuleEntity
.
setUserLevel
(
"["
+
channelRuleEntity
.
getUserLevel
()+
"]"
);
if
(!
StringUtils
.
isEmpty
(
channelRuleEntity
.
getUserTag
())){
channelRuleEntity
.
setUserTag
(
"["
+
channelRuleEntity
.
getUserTag
()+
"]"
);
}
if
(!
StringUtils
.
isEmpty
(
channelRuleEntity
.
getUserLevel
())){
channelRuleEntity
.
setUserLevel
(
"["
+
channelRuleEntity
.
getUserLevel
()+
"]"
);
}
channelRuleRepository
.
save
(
channelRuleEntity
);
}
});
...
...
src/main/java/com/quantgroup/asset/distribution/service/route/impl/FundProductServiceImpl.java
View file @
8af3c618
...
...
@@ -224,6 +224,7 @@ public class FundProductServiceImpl implements IFundProductService {
break
;
case
"tel_area_list"
:
//手机号区域限制
log
.
info
(
"tel_area_list={}"
,
areaRuleConcrete
.
getTelAreaNameList
());
if
(
Objects
.
nonNull
(
areaRuleConcrete
)){
try
{
String
telAreaCodeListByName
=
getTelAreaCodeListByName
(
areaRuleConcrete
.
getTelAreaNameList
());
...
...
@@ -343,6 +344,8 @@ public class FundProductServiceImpl implements IFundProductService {
if
(!
StringUtils
.
isEmpty
(
ruleList
.
toString
())){
one
.
setRuleList
(
ruleList
.
substring
(
0
,
ruleList
.
lastIndexOf
(
","
)));
}
else
{
one
.
setRuleList
(
""
);
}
one
.
setAreaRule
(
JSONObject
.
toJSONString
(
areaRuleConcrete
));
fundProductRepository
.
save
(
one
);
...
...
@@ -388,7 +391,7 @@ public class FundProductServiceImpl implements IFundProductService {
List
<
String
>
telAreaCodeList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++){
for
(
AreaCode
areaCode:
list
){
if
(
areaCode
.
getName
().
equals
(
split
[
i
]
)){
if
(
areaCode
.
getName
().
trim
().
equals
(
split
[
i
].
trim
()
)){
telAreaCodeList
.
add
(
areaCode
.
getAdcode
());
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