Commit 6ffb4c47 authored by 技术部-韩成龙's avatar 技术部-韩成龙

手机号限制名单fix

parent 19a26492
......@@ -2,7 +2,6 @@ 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;
......@@ -49,7 +48,6 @@ import shaded.com.google.common.collect.Lists;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.*;
import java.util.stream.IntStream;
/**
* @author shihuajun
......@@ -280,9 +278,7 @@ 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, JSONArray.parseArray(fundProduct.getTelRule()).toJavaList(String.class));
env.put(RuleConstant.NOT_PERMIT_TEL, fundProduct.getTelRule().replace("[", "").replace("]", "").split(","));
}
for (ProductRuleEntity pre : ruleEntityList) {
if (pre.getEnable().equals(new Byte("0"))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment