package art.kexue.sxwz.mapper; import art.kexue.sxwz.entity.EduCourseStudent; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @Mapper public interface EduCourseStudentMapper { int insert(EduCourseStudent record); EduCourseStudent queryById(Long id); int updateByIdSelective(EduCourseStudent record); int deleteById(Long id); List queryByCourseId(Long courseId); List queryByStudentId(Long studentId); EduCourseStudent queryByCourseIdAndStudentId(@Param("courseId") Long courseId, @Param("studentId") Long studentId); int batchInsert(List list); int deleteByCourseId(Long courseId); int deleteByStudentId(Long studentId); }