From 10edab49cfd859ea4928c969da658b4a548f5b71 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 08 一月 2025 18:55:24 +0800
Subject: [PATCH] getAlarmAndSuggestPage问题修复

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/McsApiController.java |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/McsApiController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/McsApiController.java
index cc50c48..43c7002 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/McsApiController.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/McsApiController.java
@@ -1,6 +1,8 @@
 package com.iailab.module.model.api.controller.admin;
 
 import com.iailab.framework.common.pojo.CommonResult;
+import com.iailab.framework.common.pojo.PageResult;
+import com.iailab.framework.common.util.object.BeanUtils;
 import com.iailab.module.model.api.mcs.McsApi;
 import com.iailab.module.model.api.mcs.dto.*;
 import com.iailab.module.model.common.utils.ApiSecurityUtils;
@@ -19,6 +21,8 @@
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
+
+import static com.iailab.framework.common.pojo.CommonResult.success;
 
 /**
  * @author PanZhibao
@@ -146,11 +150,10 @@
         return CommonResult.success(data);
     }
 
-    @PostMapping("/schedule-model/out")
-    @Operation(summary = "调度模型数据下发")
-    public Boolean scheduleModelOut(HttpServletResponse response, HttpServletRequest
-            request, @RequestBody MdkScheduleRespDTO dto) throws Exception {
-        apiSecurityUtils.validate(request);
-        return mcsApi.scheduleModelOut(dto);
+    @PostMapping("/alarm-suggest/page")
+    @Operation(summary = "获取预警信息和调度建议分页列表")
+    public CommonResult<PageResult<StAlarmAndSuggestRespVO>> getAlarmAndSuggestPage(@RequestBody StAlarmAndSuggestPageReqVO reqVO) {
+        PageResult<StAlarmAndSuggestRespVO> page = mcsApi.getAlarmAndSuggestPage(reqVO);
+        return success(BeanUtils.toBean(page, StAlarmAndSuggestRespVO.class));
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3