Commit 74f6021d by 王祖波

多个建联时间

parent fe2ede79
......@@ -424,17 +424,23 @@ public class ContactLogServiceImpl implements ContactLogService {
}else {
ContactBizTypeEnum bizTypeEnum = ContactBizTypeEnum.fromType(bizType);
Long bizContactTime = bizTypeEnum.getEsClerkContactTime(contactTime);
clerkContactTimeList = clerkContactTimeList.stream().map(time -> {
for (ContactBizTypeEnum contactBizTypeEnum : ContactBizTypeEnum.values()) {
Long t = clerkContactTimeList.stream().map(time -> {
if (String.valueOf(time).length() == 14) {
return null;
}
if (String.valueOf(time).startsWith(bizTypeEnum.getCodePre())) {
if (Objects.equals(contactBizTypeEnum.getCodePre(), bizTypeEnum.getCodePre())) {
return bizContactTime;
} else {
}else if (!String.valueOf(time).startsWith(bizTypeEnum.getCodePre())){
return time;
}
return null;
}).filter(Objects::nonNull)
.collect(Collectors.toList());
.findFirst().orElse(null);
if (t != null) {
clerkContactTimeList.add(t);
}
}
}
// 增加原始创建时间用于排序
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