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
71a43035
Commit
71a43035
authored
Sep 26, 2021
by
王业雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 手机号不支持号段
parent
4fa2dc05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
CoreFilter.java
...tgroup/asset/distribution/service/newrule/CoreFilter.java
+5
-2
No files found.
src/main/java/com/quantgroup/asset/distribution/service/newrule/CoreFilter.java
View file @
71a43035
...
...
@@ -2,6 +2,7 @@ package com.quantgroup.asset.distribution.service.newrule;
import
cn.quantgroup.motan.bean.UserAssociationBean
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.common.collect.Maps
;
import
com.googlecode.aviator.AviatorEvaluator
;
...
...
@@ -47,6 +48,7 @@ import java.util.ArrayList;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.IntStream
;
/**
* @author shihuajun
...
...
@@ -219,8 +221,9 @@ public class CoreFilter {
List
<
ProductRuleEntity
>
ruleEntityList
=
productRuleService
.
getAll
();
Map
<
String
,
Object
>
env
=
Maps
.
newConcurrentMap
();
if
(
StringUtils
.
isNotBlank
(
fundProduct
.
getTelRule
()))
{
env
.
put
(
RuleConstant
.
NOT_PERMIT_TEL
,
Lists
.
newArrayList
(
Arrays
.
stream
(
fundProduct
.
getTelRule
()
.
split
(
CommonConstants
.
COMMA
)).
mapToInt
(
s
->
Integer
.
parseInt
(
s
))));
// env.put(RuleConstant.NOT_PERMIT_TEL, Lists.newArrayList(Arrays.stream(fundProduct.getTelRule()
// .split(CommonConstants.COMMA)).mapToInt(s -> Integer.parseInt(s))));
env
.
put
(
RuleConstant
.
NOT_PERMIT_TEL
,
JSONArray
.
parseArray
(
fundProduct
.
getTelRule
()).
toJavaList
(
String
.
class
));
}
for
(
ProductRuleEntity
pre
:
ruleEntityList
)
{
if
(
pre
.
getEnable
().
equals
(
new
Byte
(
"0"
)))
{
...
...
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