From f5072463229ec111266c6781d75f7906a8769dc9 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 17 三月 2025 23:46:40 +0800
Subject: [PATCH] 修复查询不到开始时间数据问题

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java
index 005363a..0d775a7 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java
@@ -23,7 +23,7 @@
 public class PointCollectTaskNet60 implements ITask {
     private final Logger logger = LoggerFactory.getLogger(getClass());
 
-    private static final String NET = "NET60";
+    private static final String NET = "1min";
 
     @Resource
     private PointCollector pointCollector;
@@ -31,9 +31,10 @@
     @Override
     public void run(String params) {
         // 0 0/1 * * * ?
-        logger.debug("CollectTaskNet60定时任务正在执行,参数为:{}", params);
+        logger.info("CollectTaskNet60定时任务正在执行,参数为:{}", params);
         try {
             Calendar calendar = Calendar.getInstance();
+            calendar.set(Calendar.SECOND, 0);
             calendar.set(Calendar.MILLISECOND, 0);
             pointCollector.collect(calendar.getTime(), NET);
             logger.info("PointCollectTaskNet60定时任务完成时间:" + LocalDateTime.now());

--
Gitblit v1.9.3