PaperDictMapper.java
889 Bytes
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
package com.meishu.mapper;
import com.meishu.model.PaperDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meishu.vo.exercise.ExercisesWithAnswerVO;
import com.meishu.vo.paper.ExercisesVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-07-11
*/
@Repository
public interface PaperDictMapper extends BaseMapper<PaperDictDO> {
List<ExercisesVO> exercises(Long paperId);
/**
* 查看某个卷子某个题型的题目
*/
List<ExercisesWithAnswerVO> exercisesWithAnswer(Long paperId,String exerciseType);
/**
查看卷子有哪几种题型
*/
List<String> exerciseTypes(Long paperId);
/**
* 查看学生做的题目
*/
List<ExercisesWithAnswerVO> examExercises(Long examId,Long studentId,Long paperId);
}