提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.dal.mysql.demo; |
H |
2 |
|
|
3 |
import java.util.*; |
|
4 |
|
|
5 |
import com.iailab.framework.common.pojo.PageResult; |
|
6 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
7 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
8 |
import com.iailab.module.infra.dal.dataobject.demo.InfraStudentDO; |
|
9 |
import org.apache.ibatis.annotations.Mapper; |
|
10 |
import com.iailab.module.infra.controller.admin.demo.vo.*; |
|
11 |
|
|
12 |
/** |
|
13 |
* 学生 Mapper |
|
14 |
* |
|
15 |
* @author iailab |
|
16 |
*/ |
|
17 |
@Mapper |
|
18 |
public interface InfraStudentMapper extends BaseMapperX<InfraStudentDO> { |
|
19 |
|
|
20 |
default PageResult<InfraStudentDO> selectPage(InfraStudentPageReqVO reqVO) { |
|
21 |
return selectPage(reqVO, new LambdaQueryWrapperX<InfraStudentDO>() |
|
22 |
.likeIfPresent(InfraStudentDO::getName, reqVO.getName()) |
|
23 |
.eqIfPresent(InfraStudentDO::getBirthday, reqVO.getBirthday()) |
|
24 |
.eqIfPresent(InfraStudentDO::getSex, reqVO.getSex()) |
|
25 |
.eqIfPresent(InfraStudentDO::getEnabled, reqVO.getEnabled()) |
|
26 |
.betweenIfPresent(InfraStudentDO::getCreateTime, reqVO.getCreateTime()) |
|
27 |
.orderByDesc(InfraStudentDO::getId)); |
|
28 |
} |
|
29 |
|
|
30 |
} |