Commit c56df96b by zhouhaibao

[+]旅程节点执行添加

1 parent e0e73b41
......@@ -99,10 +99,9 @@ public class SopHelper {
*/
public static List<CustomerInfo> getMeetWithCustomer(SopInstNode sopInstNode, Map<String, Object> resultData) {
String nodeParam = sopInstNode.getNodeParam();
String nodeKey = sopInstNode.getNodeKey();
String[] split = nodeKey.split("\\|");
String key = "user"+getValueFromJsonString(nodeParam, "day");
// 拿到过滤出阶段的客户
List<CustomerInfo> customerInfoList = JSON.parseArray(JSON.toJSONString(resultData.get(split[0])), CustomerInfo.class);
List<CustomerInfo> customerInfoList = JSON.parseArray(JSON.toJSONString(resultData.get(key)), CustomerInfo.class);
String diffday = SopHelper.getValueFromJsonString(nodeParam, "day");
if (org.apache.commons.lang3.StringUtils.isEmpty(diffday)) {
return null;
......
......@@ -52,7 +52,9 @@ public class ControllerFoundInsDemo {
String s = stringObjectMap.get(key) + "";
CustomerInfo customerInfo = new CustomerInfo();
customerInfo.setVin(key);
customerInfo.setArrivalDate(DateFormatUtils.formatUTC(Long.parseLong(s), "yyyy-mm-dd mm:ss"));
if(stringObjectMap.get(key)!=null) {
customerInfo.setArrivalDate(DateFormatUtils.formatUTC(Long.parseLong(s), "yyyy-mm-dd mm:ss"));
}
result.add(customerInfo);
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!