Commit aa113a98 authored by 耿迪迪's avatar 耿迪迪

工业报警器消警逻辑

parent 315815b3
...@@ -97,9 +97,13 @@ public class FactoryDetectorUdpServerHandler extends SimpleChannelInboundHandler ...@@ -97,9 +97,13 @@ public class FactoryDetectorUdpServerHandler extends SimpleChannelInboundHandler
} }
}else { }else {
if(null != alarm){ if(null != alarm){
alarm.setEndTime(new Date()); //手动消警的报警结束更新状态
alarm.setDealStatus("4"); if("4".equals(alarm.getDealStatus())){
alarm.setDealStatus("");
}
alarm.setEndTime(DateUtils.getNowDate());
itDeviceAlarmService.updateTDeviceAlarm(alarm); itDeviceAlarmService.updateTDeviceAlarm(alarm);
pushWedSocket(alarm.getAlarmId());
} }
} }
} }
......
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