houzhongyi
2024-07-11 e7c1260db32209a078a962aaa0ad5492c35774fb
提交 | 用户 | 时间
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.InfraStudentTeacherDO;
10 import org.apache.ibatis.annotations.Mapper;
11
12 /**
13  * 学生班主任 Mapper
14  *
15  * @author iailab
16  */
17 @Mapper
18 public interface InfraStudentTeacherMapper extends BaseMapperX<InfraStudentTeacherDO> {
19
20     default InfraStudentTeacherDO selectByStudentId(Long studentId) {
21         return selectOne(InfraStudentTeacherDO::getStudentId, studentId);
22     }
23
24     default int deleteByStudentId(Long studentId) {
25         return delete(InfraStudentTeacherDO::getStudentId, studentId);
26     }
27
28 }