package com.iailab.module.infra.dal.mysql.demo.demo03; import com.iailab.framework.common.pojo.PageParam; import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.mybatis.core.mapper.BaseMapperX; import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; import com.iailab.module.infra.dal.dataobject.demo.demo03.Demo03GradeDO; import org.apache.ibatis.annotations.Mapper; /** * 学生班级 Mapper * * @author iailab */ @Mapper public interface Demo03GradeMapper extends BaseMapperX { default PageResult selectPage(PageParam reqVO, Long studentId) { return selectPage(reqVO, new LambdaQueryWrapperX() .eq(Demo03GradeDO::getStudentId, studentId) .orderByDesc(Demo03GradeDO::getId)); } default Demo03GradeDO selectByStudentId(Long studentId) { return selectOne(Demo03GradeDO::getStudentId, studentId); } default int deleteByStudentId(Long studentId) { return delete(Demo03GradeDO::getStudentId, studentId); } }