Commit 02fc25fd by guojuxing

门店刷es代码修改

parent 36a86f44
......@@ -1599,6 +1599,8 @@ public class StoreApiServiceImpl implements StoreApiService {
logId = this.storeIndexLogService.saveStoreIndexLog(enterpriseId, storeId);
}
boolean isAdd = true;
try {
DynamicSearchDTO dynamicSearchDTO = new DynamicSearchDTO();
JSONObject search = QueryConditionAssemblyUtil.createSimpleQueryNode("id", OperateEnum.OPERATE_EQ, enterpriseId + "_" + storeId);
dynamicSearchDTO.setEnterpriseId(com.gic.enterprise.constants.Constants.INDEX_ENTERPRISEID);
......@@ -1634,6 +1636,10 @@ public class StoreApiServiceImpl implements StoreApiService {
}
message = "门店不存在";
this.storeIndexLogService.updateStoreIndexLog(logId, message);
} catch (Exception e) {
logger.info("addStoreToIndexMq报错:{}", e.getMessage(), e);
this.storeIndexLogService.updateStoreIndexLog(logId, "addStoreToIndexMq报错:" + e.getMessage());
}
return null;
}
......
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