潘志宝
2024-09-09 bbc1eeba9c29032add5175f2739782fd204de715
提交 | 用户 | 时间
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;
6 import com.iailab.module.model.mcs.sche.entity.StScheduleRecordEntity;
7 import com.iailab.module.model.mcs.sche.vo.StScheduleRecordPageReqVO;
8 import org.apache.ibatis.annotations.Mapper;
9
10 /**
11  * @author PanZhibao
12  * @Description
13  * @createTime 2024年09月06日
14  */
15 @Mapper
16 public interface StScheduleRecordDao extends BaseMapperX<StScheduleRecordEntity> {
17
18     default PageResult<StScheduleRecordEntity> selectPage(StScheduleRecordPageReqVO reqVO) {
19         return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleRecordEntity>()
20                 .likeIfPresent(StScheduleRecordEntity::getModelName, reqVO.getModelName())
21                 .geIfPresent(StScheduleRecordEntity::getScheduleTime, reqVO.getStartTime())
22                 .leIfPresent(StScheduleRecordEntity::getScheduleTime, reqVO.getEndTime())
23                 .orderByDesc(StScheduleRecordEntity::getCreateTime));
24     }
25 }