Commit 1e6147ee by 王祖波

多个建联时间修改es字段

parent 68ef9ea3
...@@ -403,11 +403,11 @@ public class ContactLogServiceImpl implements ContactLogService { ...@@ -403,11 +403,11 @@ public class ContactLogServiceImpl implements ContactLogService {
} }
private void refreshContactTime(String enterpriseId, String memberId, Integer bizType, Long contactTime) { private void refreshContactTime(String enterpriseId, String memberId, Integer bizType, Long contactTime) {
JSONObject memberJO = esMemberInfoService.queryDataSingle(enterpriseId, memberId, "clerkContactTime"); JSONObject memberJO = esMemberInfoService.queryDataSingle(enterpriseId, memberId, "clerkChannelContactTime");
if (memberJO == null) { if (memberJO == null) {
return; return;
} }
List<Long> clerkContactTimeList = memberJO.getObject("clerkContactTime",new TypeReference<List<Long>>(){}); List<Long> clerkContactTimeList = memberJO.getObject("clerkChannelContactTime",new TypeReference<List<Long>>(){});
if (bizType == null) { if (bizType == null) {
clerkContactTimeList = Arrays.stream(ContactBizTypeEnum.values()) clerkContactTimeList = Arrays.stream(ContactBizTypeEnum.values())
.map(bizTypeEnum -> bizTypeEnum.getEsClerkContactTime(contactTime)) .map(bizTypeEnum -> bizTypeEnum.getEsClerkContactTime(contactTime))
...@@ -440,7 +440,7 @@ public class ContactLogServiceImpl implements ContactLogService { ...@@ -440,7 +440,7 @@ public class ContactLogServiceImpl implements ContactLogService {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("id", memberId); jsonObject.put("id", memberId);
jsonObject.put("memberId", memberId); jsonObject.put("memberId", memberId);
jsonObject.put("clerkContactTime", clerkContactTimeList); jsonObject.put("clerkChannelContactTime", clerkContactTimeList);
dynamicDocDTO.setDocJson(jsonObject); dynamicDocDTO.setDocJson(jsonObject);
dynamicDocDTO.setRefresh(Constant.FLAG_TRUE); dynamicDocDTO.setRefresh(Constant.FLAG_TRUE);
ESResponse res = esDataDynamicOperationApiService.updateDataSingle(dynamicDocDTO, false); ESResponse res = esDataDynamicOperationApiService.updateDataSingle(dynamicDocDTO, false);
......
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