|
|
@@ -221,7 +221,9 @@ public class DeviceInfoListener implements IIotMsgHandler {
|
|
|
}
|
|
|
cacheOperation.add(()->{
|
|
|
deviceOperator.setContinueDose(device.getContinueDose());
|
|
|
- if(FlowStatusEnum.Down.equals(device.getWarnFlow())){
|
|
|
+ if(FlowStatusEnum.Down.equals(device.getWarnFlow())
|
|
|
+ ||(device.isNewInfusion()&&!FlowStatusEnum.Limited.equals(device.getWarnFlow()))){
|
|
|
+ //减档或者非加档受限的新输注
|
|
|
deviceOperator.setFlowLimit(false);
|
|
|
}
|
|
|
return null;
|
|
|
@@ -243,9 +245,9 @@ public class DeviceInfoListener implements IIotMsgHandler {
|
|
|
device.setWarnFlow(FlowStatusEnum.Limited);
|
|
|
}
|
|
|
}
|
|
|
- if(device.getWarnFlow()!=null&&FlowStatusEnum.None.equals(device.getWarnFlow())){
|
|
|
- device.setWarnFlow(null);
|
|
|
- }
|
|
|
+// if(device.getWarnFlow()!=null&&FlowStatusEnum.None.equals(device.getWarnFlow())){
|
|
|
+// device.setWarnFlow(null);
|
|
|
+// }
|
|
|
if(device.getWarnFlow()!=null&&FlowStatusEnum.Limited.equals(device.getWarnFlow())){
|
|
|
//加档受限,进行标识
|
|
|
device.setFlowRestricted(true);
|