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/point/collection/PointCollector.java | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/collection/PointCollector.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/collection/PointCollector.java index 3bba8de..0c4839a 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/collection/PointCollector.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/collection/PointCollector.java @@ -86,6 +86,7 @@ */ public void collect(Date collectTime, String minfreq) { try { + log.info("collectTime=" + collectTime.getTime()); Map<String, Object> dataMap = new HashMap<>(); List<InfluxPointValuePOJO> pointValues = new ArrayList<>(); // 记录点位状态 @@ -108,6 +109,7 @@ pointValues.addAll(cumulateHandle.handle(collectTime, pointCumulateList, listGood, listBad)); log.info("存入时序库"); + log.info("pointValueTimestamp=" + (pointValues.get(0) == null ? 0 : pointValues.get(0).getTimestamp().getNano())); influxDBService.asyncWritePointValues(pointValues); log.info("存入缓存"); -- Gitblit v1.9.3