Commit 74f6021d by 王祖波

多个建联时间

parent fe2ede79
...@@ -424,17 +424,23 @@ public class ContactLogServiceImpl implements ContactLogService { ...@@ -424,17 +424,23 @@ public class ContactLogServiceImpl implements ContactLogService {
}else { }else {
ContactBizTypeEnum bizTypeEnum = ContactBizTypeEnum.fromType(bizType); ContactBizTypeEnum bizTypeEnum = ContactBizTypeEnum.fromType(bizType);
Long bizContactTime = bizTypeEnum.getEsClerkContactTime(contactTime); Long bizContactTime = bizTypeEnum.getEsClerkContactTime(contactTime);
clerkContactTimeList = clerkContactTimeList.stream().map(time -> { for (ContactBizTypeEnum contactBizTypeEnum : ContactBizTypeEnum.values()) {
if (String.valueOf(time).length() == 14) { Long t = clerkContactTimeList.stream().map(time -> {
if (String.valueOf(time).length() == 14) {
return null;
}
if (Objects.equals(contactBizTypeEnum.getCodePre(), bizTypeEnum.getCodePre())) {
return bizContactTime;
}else if (!String.valueOf(time).startsWith(bizTypeEnum.getCodePre())){
return time;
}
return null; return null;
} }).filter(Objects::nonNull)
if (String.valueOf(time).startsWith(bizTypeEnum.getCodePre())) { .findFirst().orElse(null);
return bizContactTime; if (t != null) {
} else { clerkContactTimeList.add(t);
return time; }
} }
}).filter(Objects::nonNull)
.collect(Collectors.toList());
} }
// 增加原始创建时间用于排序 // 增加原始创建时间用于排序
if (CollectionUtils.isNotEmpty(clerkContactTimeList)) { if (CollectionUtils.isNotEmpty(clerkContactTimeList)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment