|
@@ -29,6 +29,8 @@ import java.time.LocalTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
|
|
|
|
+import static org.apache.commons.lang3.math.NumberUtils.INTEGER_ONE;
|
|
|
+
|
|
|
/**
|
|
|
* @description:报警处理实现类:包含报警产生和报警恢复
|
|
|
* @author:LuoGuanhyi
|
|
@@ -357,6 +359,7 @@ public class AlarmHandleServiceImpl implements AlarmHandleService {
|
|
|
.state(1)
|
|
|
//报警时间为第一次满足报警条件时候的时间
|
|
|
.triggerTime(DateUtils.parse(alarmState.getAlarmStartTime()))
|
|
|
+ .treatState(INTEGER_ONE)
|
|
|
.remark(alarmDefine.getRemark())
|
|
|
.triggerInfo(JSONObject.toJSONString(paramMap))
|
|
|
.condition(condition.toString())
|