From c630b9bc245aef6b95923fbd774084edb7726a72 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期一, 24 三月 2025 11:44:20 +0800 Subject: [PATCH] 增加累计预测值最后一个值的获取 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleDataConstructor.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleDataConstructor.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleDataConstructor.java index 6d12d13..9478194 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleDataConstructor.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleDataConstructor.java @@ -52,8 +52,7 @@ } List<DataValueVO> completionDataEntityList = new ArrayList<>(); - long oneMin = 0L; - + long oneMin = granularity * 1000L;; long start = startTime.getTime(); long end = endTime.getTime(); long mins = 0L; @@ -67,7 +66,7 @@ case DATAPOINT: case PLAN: // 设置时间偏移量 - mins = calMins(start, end, granularity); + mins = calMins(start, end, granularity) + 1; break; case IND: case IND_ASCII: -- Gitblit v1.9.3