CourseTreeExerciseStudentResultMapper.java 1.08 KB
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);

}