package com.iailab.module.model.mcs.sche.dao; 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.module.model.mcs.sche.entity.StScheduleSchemeEntity; import com.iailab.module.model.mcs.sche.vo.StScheduleSchemePageReqVO; import org.apache.ibatis.annotations.Mapper; import java.util.Map; /** * @author PanZhibao * @date 2021年07月20日 9:08 */ @Mapper public interface StScheduleSchemeDao extends BaseMapperX { default PageResult selectPage(StScheduleSchemePageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .likeIfPresent(StScheduleSchemeEntity::getName, reqVO.getName()) .orderByDesc(StScheduleSchemeEntity::getCreateTime)); } }