Commit fa5fa518 by zhouhaibao

java配置添加

1 parent 2c0c66e6
...@@ -57,10 +57,12 @@ public class ControllerSendMessageDemo { ...@@ -57,10 +57,12 @@ public class ControllerSendMessageDemo {
Iterator<Entry<String, List<CustomerInfo>>> iterator = collect.entrySet().iterator(); Iterator<Entry<String, List<CustomerInfo>>> iterator = collect.entrySet().iterator();
CustomerTouchModel customerTouchModel = new CustomerTouchModel(); CustomerTouchModel customerTouchModel = new CustomerTouchModel();
List<SopTaskExecuteStaffModel> sopTaskExecuteStaffModels = new ArrayList<>(); List<SopTaskExecuteStaffModel> sopTaskExecuteStaffModels = new ArrayList<>();
List<String> phoneList=new ArrayList<>();
// 构建基础参数 // 构建基础参数
switch (sendType) { switch (sendType) {
case "10": case "10":
buildDefaultParam(customerTouchModel, sopInst, sopInstNode, nodeParam, true); buildDefaultParam(customerTouchModel, sopInst, sopInstNode, nodeParam, true);
customerTouchModel.setSendType(1);
break; break;
case "8": case "8":
buildDefaultParam(customerTouchModel, sopInst, sopInstNode, nodeParam, false); buildDefaultParam(customerTouchModel, sopInst, sopInstNode, nodeParam, false);
...@@ -74,8 +76,8 @@ public class ControllerSendMessageDemo { ...@@ -74,8 +76,8 @@ public class ControllerSendMessageDemo {
default: default:
break; break;
} }
// 构建发送者和接收者参数
while (iterator.hasNext()) { while (iterator.hasNext()) {
List<String> phoneList=new ArrayList<>();
Entry<String, List<CustomerInfo>> next = iterator.next(); Entry<String, List<CustomerInfo>> next = iterator.next();
String key = next.getKey(); String key = next.getKey();
List<CustomerInfo> value = next.getValue(); List<CustomerInfo> value = next.getValue();
......
scrm.baseurl=http://scrm.glsx.com.cn
sop.baseurl=http://gateway.platform.glsx.com.cn
notict.url=http://scrm.glsx.com.cn/dj-scrm-wx-work-attachment-customer/#/task
scrm.data.baseurl=http://scrm.glsx.com.cn/rop-scrm-datahub/router
\ No newline at end of file \ No newline at end of file
scrm.baseurl=https://scrm.glsx.com.cn
sop.baseurl=https://gateway.platform.glsx.com.cn
notict.url=https://scrm.glsx.com.cn/dj-scrm-wx-work-attachment-customer/#/task
scrm.data.baseurl=https://scrm.glsx.com.cn/rop-scrm-datahub/router
\ No newline at end of file \ No newline at end of file
...@@ -166,8 +166,22 @@ public class JavaNodeTestApplication { ...@@ -166,8 +166,22 @@ public class JavaNodeTestApplication {
customerInfo.setSopJourneyEnterTime(new Date()); customerInfo.setSopJourneyEnterTime(new Date());
customerInfo.setExternalUserId("wm-ZewEAAA22dA72qtla54HxDPHBQfcg"); customerInfo.setExternalUserId("wm-ZewEAAA22dA72qtla54HxDPHBQfcg");
customerInfo.setSopJourneyStage("意向客户"); customerInfo.setSopJourneyStage("意向客户");
customerInfo.setSopJourneyStageEnterTime(DateUtils.parse("2024-01-04")); customerInfo.setUserId("xxx");
resultData.put("user2", Arrays.asList(customerInfo)); customerInfo.setSopJourneyStageEnterTime(DateUtils.parse("2024-01-11"));
CustomerInfo customerInfo1 = new CustomerInfo();
customerInfo1.setOneId("123456");
customerInfo1.setCustomerPhone("13476670745");
customerInfo1.setOrgId("44211227");
customerInfo1.setVin("ceshi");
customerInfo1.setMessageId("1");
customerInfo1.setMessageContent("ceshi");
customerInfo1.setSopJourneyId("xblc7");
customerInfo1.setSopJourneyEnterTime(new Date());
customerInfo1.setExternalUserId("wm-ZewEAAA22dA72qtla54HxDPHBQfcg");
customerInfo1.setSopJourneyStage("意向客户");
customerInfo1.setUserId("bbbb");
customerInfo1.setSopJourneyStageEnterTime(DateUtils.parse("2024-01-11"));
resultData.put("user2", Arrays.asList(customerInfo,customerInfo1));
SopStruct sopStruct = sopService.loadSop("xblc7"); SopStruct sopStruct = sopService.loadSop("xblc7");
SopInstNode sopInstNode = sopStruct.getInstNodeMap().get(3); SopInstNode sopInstNode = sopStruct.getInstNodeMap().get(3);
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!