ExerciseDoneResultMapper.java 1.16 KB
package com.subsidy.mapper;

import com.subsidy.model.ExerciseDoneResultDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.vo.administer.GetMemberPapersVO;
import com.subsidy.vo.administer.GetPaperDetailVO;
import com.subsidy.vo.done.GetMaxScoreVO;
import com.subsidy.vo.exercise.GetDoneDetailVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 学生课程习题完成情况 Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2021-10-15
 */
@Repository
public interface ExerciseDoneResultMapper extends BaseMapper<ExerciseDoneResultDO> {


    /**
     * 学生某个课程某套卷子的完成情况
     */
    List<GetMemberPapersVO> queryExerciseDoneResult(Long memberId, Long classId, Long paperId);

    /**
     * 查看某个卷子完成详情  id exercise_done_result的主键
     */
    List<GetPaperDetailVO> getPaperDetail(Long memberId,Long doneId);

    /**
     * 根据主键id查看完成情况
     */
    GetDoneDetailVO getDoneDetail(Long id);

    /**
     * 查看某个课程下学生完成卷子的最高分
     */
    List<GetMaxScoreVO> getMaxScore(Long classId, Long memberId);



}