From 0a7d0fda65fc792d4549c266001f890c1a201e16 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期三, 08 一月 2025 08:20:43 +0800 Subject: [PATCH] 获取预警信息和调度建议分页列表 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleSchemeDao.java | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleSchemeDao.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleSchemeDao.java index 418f09d..ceda199 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleSchemeDao.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleSchemeDao.java @@ -1,8 +1,16 @@ package com.iailab.module.model.mcs.sche.dao; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.mybatis.core.mapper.BaseMapperX; +import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; +import com.iailab.framework.tenant.core.db.dynamic.TenantDS; +import com.iailab.module.model.api.mcs.dto.StAlarmAndSuggestPageReqVO; +import com.iailab.module.model.api.mcs.dto.StAlarmAndSuggestRespVO; import com.iailab.module.model.mcs.sche.entity.StScheduleSchemeEntity; +import com.iailab.module.model.mcs.sche.vo.StScheduleSchemePageReqVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import java.util.Map; @@ -10,13 +18,19 @@ * @author PanZhibao * @date 2021年07月20日 9:08 */ +@TenantDS @Mapper public interface StScheduleSchemeDao extends BaseMapperX<StScheduleSchemeEntity> { - /** - * saveScheduleTime - * - * @param map - */ - void saveScheduleTime(Map map); + default PageResult<StScheduleSchemeEntity> selectPage(StScheduleSchemePageReqVO reqVO) { + return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleSchemeEntity>() + .likeIfPresent(StScheduleSchemeEntity::getName, reqVO.getName()) + .orderByDesc(StScheduleSchemeEntity::getCreateTime)); + } + + IPage<StAlarmAndSuggestRespVO> getAlarmAndSuggestPage(IPage<StScheduleSchemeEntity> page, @Param("params") StAlarmAndSuggestPageReqVO reqVO); + + default IPage<StAlarmAndSuggestRespVO> selectAlarmAndSuggestPageList(StAlarmAndSuggestPageReqVO reqVO) { + return getAlarmAndSuggestPage(getPage(reqVO), reqVO); + } } -- Gitblit v1.9.3