Commit 95028728 authored by hcing's avatar hcing

refactor(jyjc): 修改检验结果保存后的消息发送逻辑

parent 253795a1
......@@ -803,7 +803,9 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
// 4.更新es下次检验日期
commonService.updateEquipNextInspectDate(jyjcInspectionResult, inspectionDetectionInfo.getRecord());
sendDataRefreshMsg(records);
bizEmqPublisher.sendInspectionMsgAfterSave(inspectionDetectionInfo, "insert");
// 发送 type = update的数据,为了兼容检验机构对接时会先产生一条检验结果信息,此时还没有设备的检验信息,后续会更新该条检验信息,
// 所以 sendInspectionMsgAfterSave 方法在处理时只处理了update 操作。
bizEmqPublisher.sendInspectionMsgAfterSave(inspectionDetectionInfo, "update");
} catch (Exception e) {
log.warn(e.getMessage());
throw new BadRequest("数据异常,请联系管理员!");
......
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