提交 | 用户 | 时间
|
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.common.pojo.PageParam; |
|
7 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
8 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
9 |
import com.iailab.module.infra.dal.dataobject.demo.InfraStudentContactDO; |
|
10 |
import org.apache.ibatis.annotations.Mapper; |
|
11 |
|
|
12 |
/** |
|
13 |
* 学生联系人 Mapper |
|
14 |
* |
|
15 |
* @author iailab |
|
16 |
*/ |
|
17 |
@Mapper |
|
18 |
public interface InfraStudentContactMapper extends BaseMapperX<InfraStudentContactDO> { |
|
19 |
|
|
20 |
default PageResult<InfraStudentContactDO> selectPage(PageParam reqVO, Long studentId) { |
|
21 |
return selectPage(reqVO, new LambdaQueryWrapperX<InfraStudentContactDO>() |
|
22 |
.eq(InfraStudentContactDO::getStudentId, studentId) |
|
23 |
.orderByDesc(InfraStudentContactDO::getId)); |
|
24 |
} |
|
25 |
|
|
26 |
default int deleteByStudentId(Long studentId) { |
|
27 |
return delete(InfraStudentContactDO::getStudentId, studentId); |
|
28 |
} |
|
29 |
|
|
30 |
} |