package com.iailab.module.pms.dal.mysql.demo; 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.pms.controller.admin.demo.vo.DemoPageReqVO; import com.iailab.module.pms.dal.dataobject.demo.DemoDO; import org.apache.ibatis.annotations.Mapper; /** * @author Houzhongjian * @Description * @createTime 2024年09月05日 */ @Mapper public interface DemoMapper extends BaseMapperX { default PageResult selectPage(DemoPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .likeIfPresent(DemoDO::getCode, reqVO.getCode()) .likeIfPresent(DemoDO::getName, reqVO.getName()) .orderByDesc(DemoDO::getId)); } }