From 536b8e85745a42806214ee708297642f493d3cd8 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 30 九月 2024 17:41:17 +0800
Subject: [PATCH] data 接口更新

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java
index c86dc27..a67ac2d 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java
@@ -8,9 +8,7 @@
 import com.iailab.module.model.mdk.sample.dto.ColumnItemPort;
 import com.iailab.module.model.mdk.sample.dto.SampleInfo;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
 
-import java.sql.Timestamp;
 import java.util.Calendar;
 import java.util.Date;
 import java.util.List;
@@ -68,7 +66,7 @@
         calendar.setTime(originalTime);
         switch (columnItem.getParamType()) {
             case "DATAPOINT":
-                ApiPointDTO dataPoint = dataPointApi.getPointById(columnItem.getParamId());
+                ApiPointDTO dataPoint = dataPointApi.getInfoById(columnItem.getParamId());
                 if (dataPoint == null) {
                     return null;
                 }
@@ -103,7 +101,7 @@
         calendar.setTime(originalTime);
         switch (columnItem.getParamType()) {
             case "DATAPOINT":
-                ApiPointDTO dataPoint = dataPointApi.getPointById(columnItem.getParamId());
+                ApiPointDTO dataPoint = dataPointApi.getInfoById(columnItem.getParamId());
                 if (dataPoint == null) {
                     return null;
                 }
@@ -135,7 +133,7 @@
         Integer granularity = 60;
         switch (columnItem.getParamType()) {
             case "DATAPOINT":
-                ApiPointDTO dataPoint = dataPointApi.getPointById(columnItem.getParamId());
+                ApiPointDTO dataPoint = dataPointApi.getInfoById(columnItem.getParamId());
                 granularity = DataPointFreq.getEumByCode(dataPoint.getMinfreqid()).getValue();
                 break;
             case "PREDICTITEM":

--
Gitblit v1.9.3