Blame view

ExerciseCourseTreeMappingMapper.java 1.48 KB
涂亚平 committed
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
package com.meishu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.meishu.dto.course.GetExercisesByTreeDTO;
import com.meishu.dto.exercise.QueryCourseTreeExerciseDTO;
import com.meishu.dto.student.GetStudyProgressDTO;
import com.meishu.model.CourseTreeDO;
import com.meishu.model.ExerciseCourseTreeMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meishu.model.ExerciseDictDO;
import com.meishu.service.ExerciseCourseTreeMappingService;
import com.meishu.vo.exercise.QueryCourseTreeExerciseVO;
import com.meishu.vo.student.QueryChapterTestVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 课程知识树--题目字典表 Mapper 接口
 * </p>
 *
 * @author Tuyp
 * @since 2021-05-24
 */
 @Repository
public interface ExerciseCourseTreeMappingMapper extends BaseMapper<ExerciseCourseTreeMappingDO> {

    IPage<QueryCourseTreeExerciseVO> queryCourseTreeExercise(IPage iPage,Long courseId,Long courseTreeId,String title,Integer difficulty,String exerciseType);

    /**
     * 根据映射id去课程知识树id
     */
    CourseTreeDO getParentTreeId(Long id);

    /**
     * 通过知识点查询该课程下的所有题目
     */
    List<ExerciseDictDO> getExercisesByTree(GetExercisesByTreeDTO getExercisesByTreeDTO);

    /**
     * 查看某个同学 某个章节的做题记录
     */
    List<QueryChapterTestVO> queryChapterTest(Long studentId,Long chapterId);
}