Commit b519ea94277ed022a232f335e6869a680f7e27a4

Authored by 朱园亮
1 parent fd05f02a

同池上报水电能源数据增加日志

@@ -175,7 +175,7 @@ public class KSDeviceReportService { @@ -175,7 +175,7 @@ public class KSDeviceReportService {
175 try { 175 try {
176 List<Object> dataList = (ArrayList) needSyncData; 176 List<Object> dataList = (ArrayList) needSyncData;
177 String sn = dataList.get(0).toString(); 177 String sn = dataList.get(0).toString();
178 - 178 + log.info("dataList is {}", dataList);
179 // 1. 获取当前时间 179 // 1. 获取当前时间
180 LocalDateTime now = LocalDateTime.now(); 180 LocalDateTime now = LocalDateTime.now();
181 // 2. 定义间隔分钟数 (例如 5 分钟) 181 // 2. 定义间隔分钟数 (例如 5 分钟)
@@ -194,8 +194,11 @@ public class KSDeviceReportService { @@ -194,8 +194,11 @@ public class KSDeviceReportService {
194 Map<String, Object> properties = new HashMap<>(5); 194 Map<String, Object> properties = new HashMap<>(5);
195 Object o = dataList.get(j); 195 Object o = dataList.get(j);
196 if (o == null) { 196 if (o == null) {
  197 + log.info("o is null");
197 continue; 198 continue;
198 } 199 }
  200 +
  201 + log.info("dataList.get(j) {} ", o.toString().trim());
199 String deviceVarSn = "tc_" + sn + map.get(j); 202 String deviceVarSn = "tc_" + sn + map.get(j);
200 log.info("===deviceVarSn==" + deviceVarSn); 203 log.info("===deviceVarSn==" + deviceVarSn);
201 properties.put("channelSn", channelSn); 204 properties.put("channelSn", channelSn);