|
@@ -285,19 +285,19 @@ public class AlarmConditionServiceImpl extends ServiceImpl<AlarmConditionMapper,
|
|
|
return operator;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public void updateAlarmCondition(Map<String, Object> conditionMap, UpdateAlarmConditionDTO condition) {
|
|
|
- AlarmCondition alarmCondition = new AlarmCondition();
|
|
|
- alarmCondition.setInfoCodes((List<String>) conditionMap.get("infoCode"));
|
|
|
- alarmCondition.setTriggerFrontend(condition.getFrontend());
|
|
|
- alarmCondition.setTriggerBackend((String) conditionMap.get("backend"));
|
|
|
- alarmCondition.setTriggerUphold(condition.getTriggerUphold());
|
|
|
- alarmCondition.setAlarmLevel(condition.getAlarmLevel());
|
|
|
- alarmCondition.setTriggerRules((List<String>) conditionMap.get("displayFormula"));
|
|
|
- alarmCondition.setEndBackend("!(" + conditionMap.get("backend") + ")");
|
|
|
- alarmCondition.setId(condition.getId());
|
|
|
- updateAndSendMsg2MQ(alarmCondition);
|
|
|
- }
|
|
|
+// @Override
|
|
|
+// public void updateAlarmCondition(Map<String, Object> conditionMap, UpdateAlarmConditionDTO condition) {
|
|
|
+// AlarmCondition alarmCondition = new AlarmCondition();
|
|
|
+// alarmCondition.setInfoCodes((List<String>) conditionMap.get("infoCode"));
|
|
|
+// alarmCondition.setTriggerFrontend(condition.getFrontend());
|
|
|
+// alarmCondition.setTriggerBackend((String) conditionMap.get("backend"));
|
|
|
+// alarmCondition.setTriggerUphold(condition.getTriggerUphold());
|
|
|
+// alarmCondition.setAlarmLevel(condition.getAlarmLevel());
|
|
|
+// alarmCondition.setTriggerRules((List<String>) conditionMap.get("displayFormula"));
|
|
|
+// alarmCondition.setEndBackend("!(" + conditionMap.get("backend") + ")");
|
|
|
+// alarmCondition.setId(condition.getId());
|
|
|
+// updateAndSendMsg2MQ(alarmCondition);
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 更新报警条件并发送更新消息
|