package com.iailab.module.infra.dal.mysql.demo;
|
|
import java.util.*;
|
|
import com.iailab.framework.common.pojo.PageResult;
|
import com.iailab.framework.common.pojo.PageParam;
|
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
|
import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
|
import com.iailab.module.infra.dal.dataobject.demo.InfraStudentTeacherDO;
|
import org.apache.ibatis.annotations.Mapper;
|
|
/**
|
* 学生班主任 Mapper
|
*
|
* @author iailab
|
*/
|
@Mapper
|
public interface InfraStudentTeacherMapper extends BaseMapperX<InfraStudentTeacherDO> {
|
|
default PageResult<InfraStudentTeacherDO> selectPage(PageParam reqVO, Long studentId) {
|
return selectPage(reqVO, new LambdaQueryWrapperX<InfraStudentTeacherDO>()
|
.eq(InfraStudentTeacherDO::getStudentId, studentId)
|
.orderByDesc(InfraStudentTeacherDO::getId));
|
}
|
|
default int deleteByStudentId(Long studentId) {
|
return delete(InfraStudentTeacherDO::getStudentId, studentId);
|
}
|
|
}
|