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.Demo03CourseDO; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * 学生课程 Mapper * * @author iailab */ @Mapper public interface Demo03CourseMapper extends BaseMapperX { default PageResult selectPage(PageParam reqVO, Long studentId) { return selectPage(reqVO, new LambdaQueryWrapperX() .eq(Demo03CourseDO::getStudentId, studentId) .orderByDesc(Demo03CourseDO::getId)); } default List selectListByStudentId(Long studentId) { return selectList(Demo03CourseDO::getStudentId, studentId); } default int deleteByStudentId(Long studentId) { return delete(Demo03CourseDO::getStudentId, studentId); } }