From 6c2ff1c7c8e0aba3af92110b76687b78f8278e86 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 03 一月 2025 09:57:37 +0800
Subject: [PATCH] 动态数据长度

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictAlarmConfigController.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictAlarmConfigController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictAlarmConfigController.java
index 26c1675..9a8ddd0 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictAlarmConfigController.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictAlarmConfigController.java
@@ -55,11 +55,11 @@
         return success(true);
     }
 
-    @GetMapping("/get")
+    @GetMapping("/get/{id}")
     @Operation(summary = "获得预警配置")
     @Parameter(name = "id", description = "编号", required = true, example = "1024")
     @PreAuthorize("@ss.hasPermission('pre:alarm-config:query')")
-    public CommonResult<MmPredictAlarmConfigRespVO> getInfo(@RequestParam("id") String id) {
+    public CommonResult<MmPredictAlarmConfigRespVO> getInfo(@PathVariable("id") String id) {
         MmPredictAlarmConfigEntity entity = mmPredictAlarmConfigService.getInfo(id);
         return success(BeanUtils.toBean(entity, MmPredictAlarmConfigRespVO.class));
     }
@@ -68,7 +68,7 @@
     @Operation(summary = "获得预警配置分页")
     @PreAuthorize("@ss.hasPermission('pre:alarm-config:query')")
     public CommonResult<PageResult<MmPredictAlarmConfigRespVO>> getTenantPage(@Valid MmPredictAlarmConfigPageReqVO pageVO) {
-        PageResult<MmPredictAlarmConfigEntity> pageResult = mmPredictAlarmConfigService.page(pageVO);
+        PageResult<MmPredictAlarmConfigRespVO> pageResult = mmPredictAlarmConfigService.page(pageVO);
         return success(BeanUtils.toBean(pageResult, MmPredictAlarmConfigRespVO.class));
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3