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

手动消警 gengdidi

parent 29576095
......@@ -4,7 +4,6 @@ import com.zehong.gassdevicereport.constant.Constant;
import com.zehong.gassdevicereport.entity.ReciveReportData;
import com.zehong.gassdevicereport.entity.TDeviceAlarm;
import com.zehong.gassdevicereport.entity.TMonitorDevice;
import com.zehong.gassdevicereport.service.ISysDictTypeService;
import com.zehong.gassdevicereport.service.ITDeviceAlarmService;
import com.zehong.gassdevicereport.service.ITMonitorDeviceService;
import com.zehong.gassdevicereport.task.ScheduledOfTask;
......@@ -104,6 +103,10 @@ public class DealWithAndSendRecevieDataTask implements ScheduledOfTask {
}else {
if(null != alarm){
if(null == alarm.getEndTime()){
//手动消警的报警结束更新状态
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