fix: 修复同步搜索中心数据同步接口BUG
This commit is contained in:
@@ -313,7 +313,7 @@ public class ResetSearchCenterService {
|
|||||||
sarStandardsInfo.setSarStandAttrEOStr(JSONObject.toJSONString(sarStandardsInfo.getAttrInfoMap()));
|
sarStandardsInfo.setSarStandAttrEOStr(JSONObject.toJSONString(sarStandardsInfo.getAttrInfoMap()));
|
||||||
}
|
}
|
||||||
Map<String, Object> indexstate = elasticsearchService.searchDataById("stand","stand",standId,null);
|
Map<String, Object> indexstate = elasticsearchService.searchDataById("stand","stand",standId,null);
|
||||||
if(!indexstate.isEmpty()){
|
if(indexstate!=null && !indexstate.isEmpty()){
|
||||||
createStandMQService.sendStandMQ(sarStandardsInfo,"update");
|
createStandMQService.sendStandMQ(sarStandardsInfo,"update");
|
||||||
}else{
|
}else{
|
||||||
createStandMQService.sendStandMQ(sarStandardsInfo,"add");
|
createStandMQService.sendStandMQ(sarStandardsInfo,"add");
|
||||||
@@ -336,7 +336,7 @@ public class ResetSearchCenterService {
|
|||||||
sarBussionessStand.setSarStandAttrEOStr(JSONObject.toJSONString(sarBussionessStand.getAttrInfoMap()));
|
sarBussionessStand.setSarStandAttrEOStr(JSONObject.toJSONString(sarBussionessStand.getAttrInfoMap()));
|
||||||
}
|
}
|
||||||
Map<String, Object> indexstate = elasticsearchService.searchDataById("bussstand","bussstand",standId,null);
|
Map<String, Object> indexstate = elasticsearchService.searchDataById("bussstand","bussstand",standId,null);
|
||||||
if(!indexstate.isEmpty()){
|
if(indexstate!=null && !indexstate.isEmpty()){
|
||||||
createStandMQService.sendBussStandMQ(sarBussionessStand,"update");
|
createStandMQService.sendBussStandMQ(sarBussionessStand,"update");
|
||||||
}else{
|
}else{
|
||||||
createStandMQService.sendBussStandMQ(sarBussionessStand,"add");
|
createStandMQService.sendBussStandMQ(sarBussionessStand,"add");
|
||||||
|
|||||||
Reference in New Issue
Block a user