Commit 423fd9b1 by 罗志长

fix: 行为告警

parent 59db7579
...@@ -135,7 +135,7 @@ public class FallAlarm implements IAlarm { ...@@ -135,7 +135,7 @@ public class FallAlarm implements IAlarm {
PlatDevice platDevice = platAlarmCheckDTO.getPlatDevice(); PlatDevice platDevice = platAlarmCheckDTO.getPlatDevice();
PlatAlarmConfig config = alarmConfigCacheUtil.get(platDevice.getOrgId(), PlatAlarmConfigEnum.AlarmTypeEnum.BEHAVIOR.getValue()); PlatAlarmConfig config = alarmConfigCacheUtil.get(platDevice.getOrgId(), PlatAlarmConfigEnum.AlarmTypeEnum.BEHAVIOR.getValue());
if (config == null ||StringUtils.isBlank(config.getRuleConfig())) { if (config == null ||StringUtils.isBlank(config.getRuleConfig())) {
log.error("行为告警配置未配置,告警配置id:" + config.getId()); log.error("行为告警配置未配置,orgId:" + platDevice.getOrgId());
return; return;
} }
String ruleConfigStr = config.getRuleConfig(); String ruleConfigStr = config.getRuleConfig();
......
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 sign in to comment