Răsfoiți Sursa

调整 测试

guoqiang 6 luni în urmă
părinte
comite
dc096d22ff

+ 4 - 4
jeecg-module-gather/src/main/java/org/jeecg/modules/fpgJob/LeanModelStatistics.java

@@ -167,7 +167,7 @@ public class LeanModelStatistics {
 
             // 处理数据业务逻辑
             fpgGatherList.forEach(fpgGatherData -> { // 循环处理采集数据处理
-//                try {
+                try {
                     // 采集时间
                     Instant instant = fpgGatherData.getCreateTime().toInstant();
                     LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
@@ -307,9 +307,9 @@ public class LeanModelStatistics {
                     fpgGatherData.setFpgTotalUpdatetime(new Date());
                     fpgGatherData.setId(fpgGatherData.getId());
                     fpgGatherDataService.updateById(fpgGatherData);
-//                } catch (Exception e) {
-//                    log.error(e.getMessage());
-//                }
+                } catch (Exception e) {
+                    log.error(e.getMessage());
+                }
             });
         });
     }

+ 0 - 3
jeecg-module-gather/src/main/java/org/jeecg/modules/watch/MysqlWatch.java

@@ -94,10 +94,7 @@ public class MysqlWatch {
                 } else {
                     // 如果没有找到记录,给一个默认时间
                     latestCreateTime1 = new Date(0); // 默认时间设置为 1970-01-01 00:00:00
-
                 }
-
-
                 // 遍历设备点
                 for (DevicePoint point : devicePoints) {