From ed410773d8671bf8d37ce02bfad0f3b0a121e5c7 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期二, 31 十二月 2024 13:59:34 +0800
Subject: [PATCH] 调度模型触发方式

---
 iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java b/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java
index e424ffd..360ddf7 100644
--- a/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java
+++ b/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java
@@ -42,7 +42,7 @@
 
     @PostMapping(PREFIX + "/predict-data/cur")
     @Operation(summary = "获取当前预测数据")
-    Map<String, List<Object[]>> getPreDataCur(PreDataJsonReqVO reqVO);
+    Map<String, List<Object[]>> getPreDataCur(@RequestBody PreDataJsonReqVO reqVO);
 
     @PostMapping(PREFIX + "/plan-data/single-chart")
     @Operation(summary = "计划数据图表")
@@ -56,7 +56,7 @@
     @Operation(summary = "获取预警信息列表")
     List<AlarmMessageRespDTO> listAlarmMessage(@RequestParam Map<String, Object> params);
 
-    @PostMapping(PREFIX + "/alarm-config/list")
+    @GetMapping(PREFIX + "/alarm-config/list")
     @Operation(summary = "获取预警配置列表")
     List<AlarmConfigRespDTO> listAlarmConfig(@RequestParam Map<String, Object> params);
 
@@ -70,7 +70,7 @@
 
     @GetMapping(PREFIX + "/schedule-suggest/list")
     @Operation(summary = "获取调度建议列表")
-    List<ScheduleSuggestRespDTO> listScheduleSuggest(@RequestParam ScheduleSuggestReqDTO params);
+    List<ScheduleSuggestRespDTO> listScheduleSuggest(@RequestParam Map<String, Object> params);
 
     @PostMapping(PREFIX + "/predict-model-setting/modify")
     @Operation(summary = "修改预测模型设置参数")
@@ -84,4 +84,8 @@
     @PostMapping(PREFIX + "/schedule-model-setting/modify")
     @Operation(summary = "修改调度模型设置参数")
     Boolean modifyScheduleModelSetting(@RequestBody List<ScheduleModelSettingReqDTO> dtos);
+
+    @GetMapping(PREFIX + "/schedule-scheme/list")
+    @Operation(summary = "获取调度方案列表")
+    List<StScheduleSchemeDTO> listScheduleScheme(@RequestParam("triggerMethod") String triggerMethod, @RequestParam("triggerCondition") String triggerCondition);
 }
\ No newline at end of file

--
Gitblit v1.9.3