Commit d26a8220 by zhouhaibao

java过滤处理

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