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

工业报警器消警逻辑

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