From 77c236b1493c051ee0195f9f2cb5f7f36eed3500 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期五, 28 三月 2025 12:33:28 +0800 Subject: [PATCH] 物理删除 调度方案 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleSchemeDao.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 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 6bceb79..4e2d3cd 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,11 +1,17 @@ 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.Delete; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import java.util.Map; @@ -13,12 +19,23 @@ * @author PanZhibao * @date 2021年07月20日 9:08 */ +@TenantDS @Mapper public interface StScheduleSchemeDao extends BaseMapperX<StScheduleSchemeEntity> { default PageResult<StScheduleSchemeEntity> selectPage(StScheduleSchemePageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleSchemeEntity>() .likeIfPresent(StScheduleSchemeEntity::getName, reqVO.getName()) + .likeIfPresent(StScheduleSchemeEntity::getCode, reqVO.getCode()) .orderByDesc(StScheduleSchemeEntity::getCreateTime)); } + + IPage<StAlarmAndSuggestRespVO> getAlarmAndSuggestPage(IPage<StScheduleSchemeEntity> page, @Param("params") StAlarmAndSuggestPageReqVO reqVO); + + default IPage<StAlarmAndSuggestRespVO> selectAlarmAndSuggestPageList(StAlarmAndSuggestPageReqVO reqVO) { + return getAlarmAndSuggestPage(getPage(reqVO), reqVO); + } + + @Delete("DELETE FROM t_st_schedule_scheme WHERE id = #{id}") + void physicsDeleteById(String id); } -- Gitblit v1.9.3