鞍钢鲅鱼圈能源管控系统后端代码
houzhongjian
2024-12-26 07073fa5e1e14b1f9d5d4f3253d9403ab311ae3c
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.ansteel.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.ansteel.controller.admin.demo.vo.DemoPageReqVO;
import com.iailab.module.ansteel.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));
    }
}