QuestionMapper.java
1.6 KB
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
47
48
49
50
51
52
53
54
55
56
package com.skua.modules.edu.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skua.modules.edu.entity.QuestionDB;
import com.skua.tool.annotation.Anonymous;
import org.apache.ibatis.annotations.Param;
import com.skua.modules.edu.entity.Question;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 在线考试-试题
*/
public interface QuestionMapper extends BaseMapper<Question> {
/***
* 根据试卷编号获取试题集合
* @param paperId
* @return
*/
public List<Question> selectListByPaperId(@Param("paperId") String paperId);
/***
* 根据用户编号、试卷编号查询试题集合 包含用户答案 、试题分值
* @param paperId
* @return
*/
public List<Question> selectListByPaperIdAndUserId(@Param("paperId") String paperId,@Param("userPaperId") String userPaperId);
/***
* 校验试题是否被试卷使用
* @param questionId
* @return
*/
public int checkByPaper(@Param("questionId")String questionId);
/**
* 查询在线考试--试题列表
*
* @param eduQuestion 在线考试--试题
* @return 在线考试--试题集合
*/
@Anonymous
public List<Question> selectQuestionList(Question eduQuestion);
/**
* 分页检索
*
* @param eduQuestion 在线考试--试题
* @return 在线考试--试题集合
*/
public IPage<Question> queryPageList(Page<Question> page,@Param("param") Question eduQuestion);
}