|
|
@@ -236,14 +236,16 @@ public class DeviceInfoListener implements IIotMsgHandler {
|
|
|
}
|
|
|
|
|
|
private void init(BusDeviceRunningEntity device,DeviceOperator deviceOperator ) {
|
|
|
- if(ObjectUtil.equal(DeviceTypeEnum.intelligent,device.getType())){
|
|
|
+ //开机数据不做加档受限判断
|
|
|
+ if(!DeviceStatusEnum.StartUp.equals(device.getRunState())
|
|
|
+ &&ObjectUtil.equal(DeviceTypeEnum.intelligent,device.getType())){
|
|
|
if (deviceOperator.isFlowLimit()) {
|
|
|
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);
|