heheng
2025-06-12 9e47ca901301d0a7af9bdfe49e9845ee07f5f456
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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;
 
/**
 * <p>
 * 课程学习学习日志表 Mapper 接口
 * </p>
 *
 * @author kzy
 * @since 2024-06-06 13:53:17
 */
@Mapper
public interface ExStudentStudyMapper extends BaseMapper<ExStudentStudy> {
    /**
     * 根据批次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<ExStudentStudy> selectStudyByPhaseAndStudentId(@Param("phaseId")Long phaseId, @Param("courseId")Long courseId,@Param("studentId")Long studentId);
 
    /**
     * 查询学习记录
     * @param studentStudy
     * @return
     */
    ExStudentStudy selectStudyByObject(ExStudentStudy studentStudy);
}