CourseTreeExerciseStudentResultMapper.java
1.08 KB
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
package com.meishu.mapper;
import com.meishu.model.CourseTreeDO;
import com.meishu.model.CourseTreeExerciseStudentResultDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meishu.model.SubjectTreeDO;
import com.meishu.vo.course.GetExerciseDetailVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 课程--学生做题记录 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2021-05-25
*/
@Repository
public interface CourseTreeExerciseStudentResultMapper extends BaseMapper<CourseTreeExerciseStudentResultDO> {
/**
* 查看某个学生某个章节的做题记录
*/
List<CourseTreeExerciseStudentResultDO> studentExercise(Long studentId, Long chapterId);
/**
* 根据多个题目id查询这些题目关联的知识点
*/
List<CourseTreeDO> getTreesByExerciseIds(@Param("longs") List<Long> longs);
/**
* 查询吗,每个题目的做题详情 正确率用时
*/
List<GetExerciseDetailVO> getExerciseDetail(Long studentId, Long chapterId);
}