选煤厂生产管理平台后台代码
houzhongjian
2024-11-22 f968b45eff312e08b461e61135e29c92474ac674
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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<DemoDO> {
 
    default PageResult<DemoDO> selectPage(DemoPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<DemoDO>()
                .likeIfPresent(DemoDO::getCode, reqVO.getCode())
                .likeIfPresent(DemoDO::getName, reqVO.getName())
                .orderByDesc(DemoDO::getId));
    }
}