From 033e696ffd783f3d78a16c1a359353ec6a7aeec2 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期三, 08 一月 2025 11:31:38 +0800
Subject: [PATCH] 预测参数查询调整

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/PredictSampleDataConstructor.java |   18 +-----------------
 1 files changed, 1 insertions(+), 17 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 21c9b82..5c680ed 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
@@ -147,23 +147,7 @@
                 break;
             case NORMALITEM:
             case MERGEITEM:
-                MmItemOutputEntity outPut = mmItemOutputService.getOutPutById(columnItem.getParamId());
-                OutResultType outResultType = OutResultType.getEumByCode(outPut.getResultType());
-                List<DataValueVO> predictValue = new ArrayList<>();
-
-                // double类型特殊处理
-                if (OutResultType.D.equals(outResultType)) {
-                    // columnItem.getStartTime()就是预测时间
-                    String doubleData = mmItemResultJsonService.getDoubleData(outPut.getId(), columnItem.getStartTime());
-                    if (StringUtils.isNotBlank(doubleData)) {
-                        DataValueVO dataValueVO = new DataValueVO();
-                        dataValueVO.setDataTime(columnItem.getStartTime());
-                        dataValueVO.setDataValue(Double.valueOf(doubleData));
-                        predictValue.add(dataValueVO);
-                    }
-                } else {
-                    predictValue = mmItemResultService.getPredictValue(outPut.getId(), columnItem.getStartTime(), columnItem.getEndTime());
-                }
+                List<DataValueVO> predictValue = mmItemResultService.getPredictValue(columnItem.getParamId(), columnItem.getStartTime(), columnItem.getEndTime());
 
                 if (CollectionUtils.isEmpty(predictValue)) {
                     break;

--
Gitblit v1.9.3