潘志宝
2024-12-25 874dd8d939b4ae61efbb799855c9ddf328722972
提交 | 用户 | 时间
bbc1ee 1 package com.iailab.module.model.mcs.sche.dao;
2
3 import com.iailab.framework.common.pojo.PageResult;
4 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
5 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
58c749 6 import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
bbc1ee 7 import com.iailab.module.model.mcs.sche.entity.StScheduleRecordEntity;
8 import com.iailab.module.model.mcs.sche.vo.StScheduleRecordPageReqVO;
9 import org.apache.ibatis.annotations.Mapper;
10
11 /**
12  * @author PanZhibao
13  * @Description
14  * @createTime 2024年09月06日
15  */
58c749 16 @TenantDS
bbc1ee 17 @Mapper
18 public interface StScheduleRecordDao extends BaseMapperX<StScheduleRecordEntity> {
19
20     default PageResult<StScheduleRecordEntity> selectPage(StScheduleRecordPageReqVO reqVO) {
21         return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleRecordEntity>()
898006 22                 .eqIfPresent(StScheduleRecordEntity::getSchemeId, reqVO.getSchemeId())
bbc1ee 23                 .likeIfPresent(StScheduleRecordEntity::getModelName, reqVO.getModelName())
24                 .geIfPresent(StScheduleRecordEntity::getScheduleTime, reqVO.getStartTime())
25                 .leIfPresent(StScheduleRecordEntity::getScheduleTime, reqVO.getEndTime())
26                 .orderByDesc(StScheduleRecordEntity::getCreateTime));
27     }
28 }