Blame view

ExerciseDoneResultMapper.java 1.16 KB
涂亚平 committed
1 2 3 4
package com.subsidy.mapper;

import com.subsidy.model.ExerciseDoneResultDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
涂亚平 committed
5 6 7 8
import com.subsidy.vo.administer.GetMemberPapersVO;
import com.subsidy.vo.administer.GetPaperDetailVO;
import com.subsidy.vo.done.GetMaxScoreVO;
import com.subsidy.vo.exercise.GetDoneDetailVO;
涂亚平 committed
9 10
import org.springframework.stereotype.Repository;

涂亚平 committed
11 12
import java.util.List;

涂亚平 committed
13 14 15 16 17 18 19 20
/**
 * <p>
 * 学生课程习题完成情况 Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2021-10-15
 */
涂亚平 committed
21
@Repository
涂亚平 committed
22 23
public interface ExerciseDoneResultMapper extends BaseMapper<ExerciseDoneResultDO> {

涂亚平 committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

    /**
     * 学生某个课程某套卷子的完成情况
     */
    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);



涂亚平 committed
47
}