Commit fd640b16 by guos

会员标签4.0

parent ea04f16a
......@@ -203,13 +203,17 @@ public class TagValueParser {
private static AbstractFilterRequest getOnlineConsumeStoreRequest(List<TagConditionValDTO> conditionValDTOList,Integer enterpriseId) {
TagConsumeStoreRequest request=new TagConsumeStoreRequest();
List<String>storeList=new ArrayList();
for (TagConditionValDTO conditionValDTO : conditionValDTOList) {
if (Pattern.compile("flag").matcher(conditionValDTO.getKey()).find()) {
setStatisticsTypeHandle(request, conditionValDTO.getKey(), conditionValDTO.getVal());
} else if(conditionValDTO.getKey().equals(TagValKeyEnum.COMPONENT_STORE.getKey())){
String val=conditionValDTO.getVal();
List<String>storeList = IndexRequestUtil.getStoreId(enterpriseId, val, TagProcessManager.getInstance().isProduction());
request.setStoreList(storeList);
Map<String,List<String>> storeMap = JSONObject.parseObject(val,HashMap.class);
for(List<String>lts:storeMap.values()){
lts.forEach(store->storeList.add(store));
}
}else if(Pattern.compile("timeRange").matcher(conditionValDTO.getKey()).find()){
String[] keys=conditionValDTO.getKey().split("\\.");
switch (keys[1]){
......@@ -233,6 +237,7 @@ public class TagValueParser {
}
}
}
request.setStoreList(storeList);
return request;
}
......
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