提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.dal.mysql.demo.demo03; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageParam; |
|
4 |
import com.iailab.framework.common.pojo.PageResult; |
|
5 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
6 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
7 |
import com.iailab.module.infra.dal.dataobject.demo.demo03.Demo03GradeDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
/** |
|
11 |
* 学生班级 Mapper |
|
12 |
* |
|
13 |
* @author iailab |
|
14 |
*/ |
|
15 |
@Mapper |
|
16 |
public interface Demo03GradeMapper extends BaseMapperX<Demo03GradeDO> { |
|
17 |
|
|
18 |
default PageResult<Demo03GradeDO> selectPage(PageParam reqVO, Long studentId) { |
|
19 |
return selectPage(reqVO, new LambdaQueryWrapperX<Demo03GradeDO>() |
|
20 |
.eq(Demo03GradeDO::getStudentId, studentId) |
|
21 |
.orderByDesc(Demo03GradeDO::getId)); |
|
22 |
} |
|
23 |
|
|
24 |
default Demo03GradeDO selectByStudentId(Long studentId) { |
|
25 |
return selectOne(Demo03GradeDO::getStudentId, studentId); |
|
26 |
} |
|
27 |
|
|
28 |
default int deleteByStudentId(Long studentId) { |
|
29 |
return delete(Demo03GradeDO::getStudentId, studentId); |
|
30 |
} |
|
31 |
|
|
32 |
} |