package com.iailab.module.shasteel.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.shasteel.controller.admin.demo.vo.DemoPageReqVO;
|
import com.iailab.module.shasteel.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));
|
}
|
}
|