From c44e902e0c6730e5fbb592e9bd7339dc40424809 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 19 三月 2025 17:28:39 +0800
Subject: [PATCH] 模拟调整

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java
index 159aabd..c7ef32f 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java
@@ -200,6 +200,7 @@
             Calendar calendar = Calendar.getInstance();
             calendar.setTime(predictTime);
             calendar.add(Calendar.HOUR_OF_DAY, 1);
+            calendar.add(Calendar.MINUTE, 1);
             endTime = calendar.getTime();
         }
 
@@ -352,6 +353,7 @@
         result.setViewMap(viewMap);
         return result;
     }
+
 
     @Override
     public PreDataSingleChartRespVO getPreDataSingleChart(PreDataSingleChartReqVO reqVO) {
@@ -821,12 +823,6 @@
     }
 
     @Override
-    public List<StAdjustConfigDetDTO> getAdjustConfigListByModelId(String modelId) {
-        List<StAdjustConfigDetEntity> list = stAdjustConfigService.getDetByModelId(modelId);
-        return ConvertUtils.sourceToTarget(list, StAdjustConfigDetDTO.class);
-    }
-
-    @Override
     public Boolean updateAlarmConfig(String alarmObj,String upperLimit,String lowerLimit) {
         MmPredictAlarmConfigSaveReqVO reqVO = new MmPredictAlarmConfigSaveReqVO();
         reqVO.setAlarmObj(alarmObj);
@@ -847,6 +843,26 @@
         return true;
     }
 
+    @Override
+    public MmItemOutputDTO getItemOutputByItemid(String itemid, String resultstr, String resultIndex) {
+        return ConvertUtils.sourceToTarget(mmItemOutputService.getByItemid(itemid,resultstr,resultIndex),MmItemOutputDTO.class);
+    }
+
+    @Override
+    public List<Object[]> getItemResult(String outputid, Date startTime, Date endTime, String timeFormat) {
+        return mmItemResultService.getData(outputid,startTime,endTime,timeFormat);
+    }
+
+    @Override
+    public PredictItemVO getPredictItemByItemNo(String itemNo) {
+        return ConvertUtils.sourceToTarget(mmPredictItemService.getItemByItemNo(itemNo),PredictItemVO.class);
+    }
+
+    @Override
+    public List<Object[]> getItemResultLastPoint(String outputid, Date startTime, Date endTime, String timeFormat) {
+        return mmItemResultLastPointService.getData(outputid,startTime,endTime,timeFormat);
+    }
+
     private Date[] calResultTime(ItemVO predictItem, Date startTimeReq, Date endTimeReq, int lengthLeft, int lengthRight) {
         Date[] result = new Date[3];
         Date predictTime = predictItem.getLastTime();

--
Gitblit v1.9.3