lixing 3 anni fa
parent
commit
3021e6558e

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

@@ -147,6 +147,7 @@ public class AlarmHandleServiceImpl {
                             String funcId = jsonObject.getString("funcId");
                             // 采集值
                             String value = jsonObject.getString("value");
+                            log.debug("设备id: {}, 报警类型: {}, 监测指标:{},采集值:{}", meterId, itemCode, funcId, value);
                             // 处理iot数据
                             HashMap<String, Object> paramMap = new HashMap<>();
                             JSONArray funcIdArray = JSON.parseArray(funcId);
@@ -190,7 +191,6 @@ 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())) {

+ 13 - 0
src/main/java/test/com/persagy/service/Test.java

@@ -0,0 +1,13 @@
+package test.com.persagy.service;
+
+/**
+ * 类说明
+ *
+ * @author lixing
+ * @version V1.0 2021/11/27 1:15 下午
+ **/
+public class Test {
+    public static void main(String[] args) {
+
+    }
+}