package com.jubilantz.mappers; import com.jubilantz.entity.EasStudent; import com.jubilantz.utils.PageUtil; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @Mapper public interface EasStudentMapper { // EasStudent getByUsername(String username); //直接查找 List getList (EasStudent easStudent); //包含两个一对一关系 List findList(EasStudent easStudent); List findListByUsername(String username); EasStudent getStudentByUsername(String username); void updateStudent(EasStudent easStudent); int getCountBytIdandcId(@Param("tId") Integer tId,@Param("baseCourseId") Integer baseCourseId,@Param("classId") Integer classId); int getEndingCountBytIdandcId(@Param("tId") Integer tId,@Param("baseCourseId") Integer baseCourseId,@Param("classId") Integer classId); List getStudentScoreListByTid(@Param("tId") Integer tId,@Param("baseCourseId") Integer baseCourseId, @Param("classId") Integer classId,@Param("pageUtil") PageUtil pageUtil); List getStudentSelectCourseListByTid(@Param("tId") Integer tId,@Param("baseCourseId") Integer baseCourseId, @Param("classId") Integer classId,@Param("pageUtil") PageUtil pageUtil); int getTotal(); int getTotalSex(String sex); void addUsername(String username); void deleteStudent(String username); }