Commit d26a8220 by zhouhaibao

java过滤处理

1 parent 459e363c
......@@ -133,7 +133,7 @@ public class SopHelper {
index -> SopHelper.diffDay(index.getSopJourneyStageEnterTime(),
Integer.parseInt(diffday)))
.collect(Collectors.toList());
if(StringUtils.isNotEmpty(label)){
if(StringUtils.isNotEmpty(label)&&!"[]".equals(label)){
// 过滤标签
if(CollectionUtils.isNotEmpty(collect)){
String orgId = collect.get(0).getOrgId();
......
......@@ -125,8 +125,7 @@ public class ControllerSendMessageDemo {
String contentlists = SopHelper.getListValueFromJsonString(taskParam, "attachments");
customerTouchModel.setInstId(sopInst.getInstId());
customerTouchModel.setNodeId(sopInstNode.getNodeId());
String supMerchantNo = SopHelper.getValueFromJsonString(sopInst.getInstParam(),
"supMerchantNo");
String supMerchantNo = SopHelper.getValueFromJsonString(sopInst.getInstParam(),"customData", "supMerchantNo");
String merchantId = SopHelper.getValueFromJsonString(sopInst.getInstParam(), "merchantId");
customerTouchModel.setMerchantId(Integer.parseInt(merchantId));
setConverContentList(contentlists, customerTouchModel, sopInst.getInstId(),
......
......@@ -121,7 +121,7 @@ public class ControllerSendRemindDemo {
customerTouchModel.setInstId(sopInst.getInstId());
customerTouchModel.setType("textcard");
customerTouchModel.setNodeId(sopInstNode.getNodeId());
String supMerchantNo = SopHelper.getValueFromJsonString(sopInst.getInstParam(), "supMerchantNo");
String supMerchantNo = SopHelper.getValueFromJsonString(sopInst.getInstParam(),"customData", "supMerchantNo");
String merchantId = SopHelper.getValueFromJsonString(sopInst.getInstParam(), "merchantId");
customerTouchModel.setMerchantId(Integer.parseInt(merchantId));
customerTouchModel.setSupMerchantNo(Integer.parseInt(supMerchantNo));
......
......@@ -194,7 +194,7 @@ public class JavaNodeTestApplication {
customerInfo.setExternalUserId("wm-ZewEAAA22dA72qtla54HxDPHBQfcg");
customerInfo.setUserId("wo-ZewEAAA3Ew-zJPQGZHxsU48lRzw-w");
customerInfo.setSopJourneyStage("潜客");
customerInfo.setSopJourneyStageEnterTime(DateUtils.parse("2023-12-27"));
customerInfo.setSopJourneyStageEnterTime(DateUtils.parse("2024-01-03"));
resultData.put("user1", Arrays.asList(customerInfo));
SopStruct sopStruct = sopService.loadSop("xblc7");
SopInstNode sopInstNode = sopStruct.getInstNodeMap().get(3);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!