Commit 4ff9e2ed by 林永健

Merge remote-tracking branch 'origin/v2.0.1' into v2.0.1

2 parents dc247aa8 d26a8220
......@@ -126,6 +126,7 @@ public class KeHuLvChengAssembler {
SopTplNode stageNode = PROTO_CONVERTER.proto2tpl(stageProto);
stageNode.setNodeId(tplNodeLastNum++);
stageNode.setNodeName(String.format("%s-%s", stageValue, stageNode.getNodeName()));
stageNode.setNodeParamDef(JacksonUtil.jsonStrDeepSub(STAGE_TPL_NODE_PARAM_DEF_TPL, String.format("{\"stage\":{\"defaultValue\":\"%s\"}}", stageValue)));
stageNode.setNodeKey(String.format("%s%d", stageProto.getNodeKey(), stageOrder));
......
......@@ -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(),
......
......@@ -111,17 +111,17 @@ public class ControllerSendRemindDemo {
SopTaskExecuteStaffModel sopTaskExecuteStaffModel = customerTouchModel.getExecuteStaffRequestList()
.get(0);
int size = sopTaskExecuteStaffModel.getSendExternalUserId().size();
noticeContent.replace("{客户人数}",size+"");
String replace = noticeContent.replace("{客户人数}", size + "");
// 链接追加参数
customerTouchModel.setUrl(ConfigUtils.getProperty("notict.url")+"?notebatchNo="+notebatchNo+"&batchNo="+
batchNo+"&nodeId="+sopInstNode.getNodeId()+"&userId="+sopTaskExecuteStaffModel.getSendUserId()+"&noticeContent="+noticeContent);
batchNo+"&nodeId="+sopInstNode.getNodeId()+"&userId="+sopTaskExecuteStaffModel.getSendUserId()+"&noticeContent="+replace);
customerTouchModel.setTitle("客户跟进提醒");
customerTouchModel.setDescription("您有"+sopTaskExecuteStaffModel.getSendExternalUserId().size()+"位客户的待跟进,请及时跟进。");
String msgtype = SopHelper.getValueFromJsonString(nodeParam, "msgtype");
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!