Quellcode durchsuchen

增加日志记录当前正在进行报警逻辑判断的设备id和报警类型

lixing vor 3 Jahren
Ursprung
Commit
8e4ac8dae5

+ 1 - 0
src/main/java/com/persagy/service/impl/AlarmHandleServiceImpl.java

@@ -190,6 +190,7 @@ public class AlarmHandleServiceImpl {
      */
     private void triggerOrEndAlarm(String dataTime, String meterId, String itemCode, HashMap<String, Object> paramMap)
             throws Exception {
+        log.debug("判断是否满足报警条件:设备id -> {}, 报警类型 -> {}", meterId, itemCode);
         // 获取设备的报警条件
         ObjConditionInfo objConditionInfo = alarmRedisCache.getAlarmConditionsByObjId(meterId);
         if (objConditionInfo == null || CollectionUtils.isEmpty(objConditionInfo.getConditions())) {