package com.gkhy.exam.system.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.gkhy.exam.system.domain.ExStudentStudy; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** *

* 课程学习学习日志表 Mapper 接口 *

* * @author kzy * @since 2024-06-06 13:53:17 */ @Mapper public interface ExStudentStudyMapper extends BaseMapper { /** * 根据批次id和学员id删除学员学习信息 * @param phaseId * @param studentId * @return */ public int deleteStudentStudyByPhaseId(@Param("phaseId") Long phaseId, @Param("studentId") Long studentId); /** * 根据批次id统计学员学员学习数量 * @param phaseId * @param studentId * @return */ public int countByPhaseId(@Param("phaseId") Long phaseId,@Param("studentId") Long studentId); /** * 获取学员学习记录 * @param phaseId * @param studentId * @return */ List selectStudyByPhaseAndStudentId(@Param("phaseId")Long phaseId, @Param("courseId")Long courseId,@Param("studentId")Long studentId); /** * 查询学习记录 * @param studentStudy * @return */ ExStudentStudy selectStudyByObject(ExStudentStudy studentStudy); }