From a23e66f179586eeffc55d116f5a3bb53eab9cb09 Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期五, 03 一月 2025 14:00:17 +0800
Subject: [PATCH] 调度方案批量启禁

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleRecordDao.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleRecordDao.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleRecordDao.java
index f77fcc0..2c0cd2f 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleRecordDao.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleRecordDao.java
@@ -3,6 +3,7 @@
 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.mcs.sche.entity.StScheduleRecordEntity;
 import com.iailab.module.model.mcs.sche.vo.StScheduleRecordPageReqVO;
 import org.apache.ibatis.annotations.Mapper;
@@ -12,11 +13,13 @@
  * @Description
  * @createTime 2024年09月06日
  */
+@TenantDS
 @Mapper
 public interface StScheduleRecordDao extends BaseMapperX<StScheduleRecordEntity> {
 
     default PageResult<StScheduleRecordEntity> selectPage(StScheduleRecordPageReqVO reqVO) {
         return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleRecordEntity>()
+                .eqIfPresent(StScheduleRecordEntity::getSchemeId, reqVO.getSchemeId())
                 .likeIfPresent(StScheduleRecordEntity::getModelName, reqVO.getModelName())
                 .geIfPresent(StScheduleRecordEntity::getScheduleTime, reqVO.getStartTime())
                 .leIfPresent(StScheduleRecordEntity::getScheduleTime, reqVO.getEndTime())

--
Gitblit v1.9.3