From 231897591c909b164defebfdb5936387ec2807d0 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 28 十一月 2024 11:10:10 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 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 c88e4d7..3242912 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
@@ -76,6 +76,10 @@
     @Autowired
     private PlanItemApi planItemApi;
 
+    @Autowired
+    private MmPredictAlarmConfigService mmPredictAlarmConfigService;
+
+
     private int HOUR_MINS = 60;
 
     @Override
@@ -356,6 +360,18 @@
     }
 
     @Override
+    public Map<String, List<Object[]>> getPreDataCur(PreDataJsonReqVO reqVO) {
+        Map<String, List<Object[]>> result = new HashMap<>();
+        if (reqVO == null || reqVO.getPredictTime() == null || CollectionUtils.isEmpty(reqVO.getOutputIdList())) {
+            return result;
+        }
+        reqVO.getOutputIdList().forEach(outPutId -> {
+            result.put(outPutId, mmItemResultJsonService.getData(outPutId, reqVO.getPredictTime(), DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND));
+        });
+        return result;
+    }
+
+    @Override
     public PlanDataSingleChartRespVO getPlanDataSingleChart(PreDataSingleChartReqVO reqVO) {
         PlanDataSingleChartRespVO result = new PlanDataSingleChartRespVO();
         Map<String, String> chartParams = chartService.getByChartCode(reqVO.getChartCode());
@@ -484,6 +500,11 @@
     }
 
     @Override
+    public List<AlarmConfigRespDTO> listAlarmConfig(Map<String, Object> params) {
+        return mmPredictAlarmConfigService.list(params);
+    }
+
+    @Override
     public AlarmMessageRespDTO getLastAlarmMessage(String alarmObj) {
         MmPredictAlarmMessageEntity entity = mmPredictAlarmMessageService.getLast(alarmObj);
         return ConvertUtils.sourceToTarget(entity, AlarmMessageRespDTO.class);
@@ -495,6 +516,11 @@
     }
 
     @Override
+    public List<ScheduleSuggestRespDTO> listScheduleSuggest(ScheduleSuggestReqDTO params) {
+        return Collections.emptyList();
+    }
+
+    @Override
     public List<ScheduleSuggestRespDTO> getLastLimitScheduleSuggest(String scheduleObj, Integer limit) {
         List<StScheduleSuggestEntity> list = stScheduleSuggestService.getList(scheduleObj, limit);
         return ConvertUtils.sourceToTarget(list, ScheduleSuggestRespDTO.class);

--
Gitblit v1.9.3