瀏覽代碼

fix
报警信息主键冲突处理

wangzl 4 月之前
父節點
當前提交
60612e6012

+ 1 - 0
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/config/PatientMonitorListener.java

@@ -176,6 +176,7 @@ public class PatientMonitorListener {
         Function<BizInfusionHistoryPO, Boolean> check = o -> StrUtil.isNotBlank(o.getDeviceAlarm())
                 && !o.getDeviceAlarm().equals(FlowStatusEnum.None.name());
         alarmPO.setAlarm(check.apply(infusionHistory));
+        log.info("报警信息处理完成 ");
         return alarmPO;
     }
 

+ 1 - 0
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/mapper/BizDeviceAlarmMapper.java

@@ -27,6 +27,7 @@ public interface BizDeviceAlarmMapper {
             @Mapping(source = "warnWillFinished", target = "warnWillFinished"),
             @Mapping(source = "warnAnalgesicPoor", target = "warnAnalgesicPoor"),
             @Mapping(source = "id", target = "historyId"),
+            @Mapping(target = "id", ignore = true)
     })
     BizDeviceAlarmPO convertInfusionToPO(BizInfusionHistoryPO source);
 }