liriming
2024-11-28 f96689bddf69ea3d635116cf1dd98bd5e5e0755a
提交 | 用户 | 时间
bbc1ee 1 package com.iailab.module.model.mcs.sche.dao;
2
055765 3 import com.iailab.framework.common.pojo.PageResult;
bbc1ee 4 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
055765 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.StScheduleSuggestEntity;
055765 8 import com.iailab.module.model.mcs.sche.vo.StScheduleSuggestPageReqVO;
bbc1ee 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 StScheduleSuggestDao extends BaseMapperX<StScheduleSuggestEntity> {
055765 19
20     default PageResult<StScheduleSuggestEntity> selectPage(StScheduleSuggestPageReqVO reqVO) {
21         return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleSuggestEntity>()
22                 .likeIfPresent(StScheduleSuggestEntity::getTitle, reqVO.getTitle())
23                 .likeIfPresent(StScheduleSuggestEntity::getScheduleObj, reqVO.getScheduleObj())
24                 .orderByDesc(StScheduleSuggestEntity::getCreateTime));
25     }
bbc1ee 26 }