潘志宝
2024-09-09 bbc1eeba9c29032add5175f2739782fd204de715
提交 | 用户 | 时间
7fd198 1 package com.iailab.module.model.mcs.sche.dao;
2
bbc1ee 3 import com.iailab.framework.common.pojo.PageResult;
7fd198 4 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
bbc1ee 5 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
7fd198 6 import com.iailab.module.model.mcs.sche.entity.StScheduleModelEntity;
bbc1ee 7 import com.iailab.module.model.mcs.sche.vo.StScheduleModelPageReqVO;
7fd198 8 import org.apache.ibatis.annotations.Mapper;
9
10 /**
11  * @author PanZhibao
12  * @date 2021年07月19日 17:56
13  */
14 @Mapper
15 public interface StScheduleModelDao extends BaseMapperX<StScheduleModelEntity> {
16
bbc1ee 17     default PageResult<StScheduleModelEntity> selectPage(StScheduleModelPageReqVO reqVO) {
18         return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleModelEntity>()
19                 .likeIfPresent(StScheduleModelEntity::getModelCode, reqVO.getModelCode())
20                 .likeIfPresent(StScheduleModelEntity::getModelName, reqVO.getModelName())
21                 .orderByDesc(StScheduleModelEntity::getCreateTime));
22     }
7fd198 23 }