提交 | 用户 | 时间
|
97edd7
|
1 |
package com.iailab.module.shasteel.dal.mysql.demo; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
|
4 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
5 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
6 |
import com.iailab.module.shasteel.controller.admin.demo.vo.DemoPageReqVO; |
|
7 |
import com.iailab.module.shasteel.dal.dataobject.demo.DemoDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
/** |
|
11 |
* @author Houzhongjian |
|
12 |
* @Description |
|
13 |
* @createTime 2024年09月05日 |
|
14 |
*/ |
|
15 |
@Mapper |
|
16 |
public interface DemoMapper extends BaseMapperX<DemoDO> { |
|
17 |
|
|
18 |
default PageResult<DemoDO> selectPage(DemoPageReqVO reqVO) { |
|
19 |
return selectPage(reqVO, new LambdaQueryWrapperX<DemoDO>() |
|
20 |
.likeIfPresent(DemoDO::getCode, reqVO.getCode()) |
|
21 |
.likeIfPresent(DemoDO::getName, reqVO.getName()) |
|
22 |
.orderByDesc(DemoDO::getId)); |
|
23 |
} |
|
24 |
} |