Commit e260441a authored by suhuiguang's avatar suhuiguang

feat(综合搜索):增量数据同步调整

1.大编辑时,会触发重要提醒时的评分计算,在评分计算时,进行约束,只有目前实现的评分才会进行评分,否则设备等级会变为3级
parent 57924211
...@@ -78,11 +78,11 @@ public class ManageStatusDataUpdateService { ...@@ -78,11 +78,11 @@ public class ManageStatusDataUpdateService {
try { try {
updateEquipData(idxBizJgUseInfoService, record, idxBizJgRegisterInfoService, esEquipmentCategoryDao); updateEquipData(idxBizJgUseInfoService, record, idxBizJgRegisterInfoService, esEquipmentCategoryDao);
// 发送数据刷新消息 // 发送数据刷新消息
publisher.publish(new DataRefreshEvent(this, Collections.singletonList(record), DataRefreshEvent.DataType.equipment.name(), DataRefreshEvent.Operation.UPDATE));
} catch (Exception e) { } catch (Exception e) {
log.error("设备dealDataAndAsyncEs异常:{}", e.getMessage()); log.error("设备dealDataAndAsyncEs异常:{}", e.getMessage());
} }
} }
publisher.publish(new DataRefreshEvent(this, Collections.singletonList(record), DataRefreshEvent.DataType.equipment.name(), DataRefreshEvent.Operation.UPDATE));
} }
private void updateEquipData(IdxBizJgUseInfoServiceImpl idxBizJgUseInfoService, String record, IdxBizJgRegisterInfoServiceImpl idxBizJgRegisterInfoService, ESEquipmentCategory esEquipmentCategoryDao) { private void updateEquipData(IdxBizJgUseInfoServiceImpl idxBizJgUseInfoService, String record, IdxBizJgRegisterInfoServiceImpl idxBizJgRegisterInfoService, ESEquipmentCategory esEquipmentCategoryDao) {
......
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