ExerciseCourseTreeMappingMapper.java 1.48 KB
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);
}