|
|
@@ -136,6 +136,7 @@ public class HospitalFunctionAnalConfigHandler extends AbstractHospitalConfigHan
|
|
|
if(subCount>=analConfig.getInsufficientCount()){
|
|
|
log.info("消息【{}】,设备【{}】由引起镇痛不足--实时判定",source.getMsgId(),source.getDeviceId());
|
|
|
source.setWarnAnalgesicPoor(true);
|
|
|
+
|
|
|
//镇痛消失延迟队列
|
|
|
RDelayedQueue<AbstractMsgId> noneAnalDelayedQueue = redissonUtil.getDelayedQueue("none-" + getId(), e -> {
|
|
|
if(e instanceof NoneAnalEntity){
|
|
|
@@ -188,7 +189,7 @@ public class HospitalFunctionAnalConfigHandler extends AbstractHospitalConfigHan
|
|
|
infusionHistoryService.update(new UpdateWrapper<BusInfusionHistoryEntity>().lambda()
|
|
|
.eq(BusInfusionHistoryEntity::getId,infusionHistory.getId())
|
|
|
.eq(BusInfusionHistoryEntity::getWarnAnalgesicPoor,true)
|
|
|
- .eq(BusInfusionHistoryEntity::getMsgId,noneAnal.getIotMsgId())
|
|
|
+ .eq(BusInfusionHistoryEntity::getAnalPoorMsgId,noneAnal.getIotMsgId())
|
|
|
.set(BusInfusionHistoryEntity::getWarnAnalgesicPoor,false));
|
|
|
deviceRegistry.getOperator(deviceId).setAlarmOrWarn(null);
|
|
|
//发布推送
|