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 | 2 +- iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/StScheduleSchemeDao.xml | 10 +++++----- 2 files changed, 6 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 3e1bc65..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 @@ -150,7 +150,7 @@ return CommonResult.success(data); } - @GetMapping("/alarm-suggest/page") + @PostMapping("/alarm-suggest/page") @Operation(summary = "获取预警信息和调度建议分页列表") public CommonResult<PageResult<StAlarmAndSuggestRespVO>> getAlarmAndSuggestPage(@RequestBody StAlarmAndSuggestPageReqVO reqVO) { PageResult<StAlarmAndSuggestRespVO> page = mcsApi.getAlarmAndSuggestPage(reqVO); diff --git a/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/StScheduleSchemeDao.xml b/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/StScheduleSchemeDao.xml index e9d9a3e..87a3fdd 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/StScheduleSchemeDao.xml +++ b/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/StScheduleSchemeDao.xml @@ -18,13 +18,13 @@ ) t <where> <if test="params.obj != null and params.obj != ''"> - and t.obj = #{obj} + and t.obj = #{params.obj} </if> - <if test="params.startTime != null and params.startTime != ''"> - and t.time >= #{startTime} + <if test="params.startTime != null"> + and t.time >= #{params.startTime} </if> - <if test="params.endTime != null and params.endTime != ''"> - and t.time <= #{endTime} + <if test="params.endTime != null"> + and t.time <= #{params.endTime} </if> </where> order by t.time desc -- Gitblit v1.9.3