From 161669f992297c26e95934843277b3997471f42b Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 25 十二月 2024 15:05:52 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/PredictSampleDataConstructor.java |    8 ++++----
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleDataConstructor.java        |    6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/PredictSampleDataConstructor.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/PredictSampleDataConstructor.java
index 441e19b..60149c3 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/PredictSampleDataConstructor.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/PredictSampleDataConstructor.java
@@ -141,8 +141,8 @@
                 break;
             case NORMALITEM:
             case MERGEITEM:
-                MmItemOutputEntity outPut = mmItemOutputService.getOutPutById(columnItem.getParamId());
-                List<DataValueVO> predictValue = mmItemResultService.getPredictValue(outPut.getId(), columnItem.getStartTime(), columnItem.getEndTime());
+//                MmItemOutputEntity outPut = mmItemOutputService.getOutPutById(columnItem.getParamId());
+                List<DataValueVO> predictValue = mmItemResultService.getPredictValue(columnItem.getParamId(), columnItem.getStartTime(), columnItem.getEndTime());
                 if (CollectionUtils.isEmpty(predictValue)) {
                     break;
                 }
@@ -167,8 +167,8 @@
                 break;
         }
         // 避免生产环境日志过多,分级打印
-        log.debug("数据获取,columnItem:" + columnItem + ",dataList" + dataList);
-        log.info("数据获取,columnItem:" + columnItem + ",dataListLength" + dataList.size());
+        log.debug("数据获取,columnItem:" + columnItem + ",dataList:" + dataList);
+        log.info("数据获取,columnItem:" + columnItem + ",dataListLength:" + dataList.size());
         return dataList;
     }
 }
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 e3c6e3e..1aa3e26 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
@@ -65,9 +65,9 @@
             case MERGEITEM:
                 // 预测值
                 oneMin = PredGranularityEnum.MIN1.getCode() * 1000L;
-                start = start - (start % oneMin) + oneMin;
-                end = end - (end % oneMin) + oneMin;
-                mins = ((end - start) / oneMin);
+                start = start - (start % oneMin);
+                end = end - (end % oneMin);
+                mins = ((end - start) / oneMin) + 1;
                 break;
             case DATAPOINT:
                 // 测点值

--
Gitblit v1.9.3