From f0f00e9ba8a755e4317e029d73b69a92ad9f9df1 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: Sat, 14 Sep 2024 17:02:41 +0800
Subject: [PATCH] update
---
exam-system/src/main/java/com/gkhy/exam/system/mapper/ExQuestionMapper.java | 39 ++++++++++++++++++++++++++-------------
1 files changed, 26 insertions(+), 13 deletions(-)
diff --git a/exam-system/src/main/java/com/gkhy/exam/system/mapper/ExQuestionMapper.java b/exam-system/src/main/java/com/gkhy/exam/system/mapper/ExQuestionMapper.java
index 499a7b1..ec5d335 100644
--- a/exam-system/src/main/java/com/gkhy/exam/system/mapper/ExQuestionMapper.java
+++ b/exam-system/src/main/java/com/gkhy/exam/system/mapper/ExQuestionMapper.java
@@ -27,6 +27,13 @@
Integer selectCountByBankId(@Param("companyId") Long companyId,@Param("bankId") Long bankId, @Param("questionType") Integer questionType);
/**
+ * 根据id获取题目信息
+ * @param questionId
+ * @return
+ */
+ ExQuestion selectByQuestionId(Long questionId);
+
+ /**
* 顺序获取指定数量的考题
* @param bankId
* @param questionType
@@ -53,10 +60,9 @@
/**
* 获取题库下面所有题目id列表
* @param bankId
- * @param exerciseType
* @return
*/
- List<Map> getExerciseQuestionList(@Param("bankId") Long bankId, @Param("exerciseType") Integer exerciseType,@Param("studentId") Long StundentId);
+ List<Map> getExerciseQuestionList(@Param("bankId") Long bankId,@Param("studentId") Long StundentId);
/**
* 刷题模式下获取题目
@@ -76,36 +82,43 @@
/**
* 获取考卷下面所有题目id列表
* @param paperId
- * @param completed
- * @param userId
+ * @param state
+ * @param studentId
* @return
*/
- List<Map> getPaperQuestionList(@Param("paperId") Long paperId, @Param("completed") Integer completed, @Param("userId")Long userId);
+ List<Map> getPaperQuestionList(@Param("paperId") Long paperId, @Param("state") Integer state, @Param("studentId")Long studentId, @Param("viewType")Integer viewType);
/**
* 根据id获取考卷下题目详情
* @param questionId
- * @param completed
- * @param userId
+ * @param state
+ * @param studentId
* @return
*/
- ExQuestion getPaperQuestionById(@Param("paperId")Long paperId,@Param("questionId")Long questionId, @Param("completed")Integer completed, @Param("userId")Long userId);
+ ExQuestion getPaperQuestionById(@Param("paperId")Long paperId,@Param("questionId")Long questionId, @Param("state")Integer state, @Param("studentId")Long studentId);
/**
* 根据id列表批量获取考卷下题目详情
* @param paperId
* @param questionIds
- * @param completed
- * @param userId
+ * @param state
+ * @param studentId
* @return
*/
- List<ExQuestion> getPaperQuestionByIds(@Param("paperId") Long paperId, @Param("questionIds")List<Long> questionIds, @Param("completed")Integer completed, @Param("userId")Long userId);
+ List<ExQuestion> getPaperQuestionByIds(@Param("paperId") Long paperId, @Param("questionIds")List<Long> questionIds, @Param("state")Integer state, @Param("studentId")Long studentId);
/**
* 获取错题题目id
* @param bankId
- * @param userId
+ * @param studentId
* @return
*/
- List<Long> getExerciseErrorQuestionList(@Param("bankId") Long bankId, @Param("userId") Long userId);
+ List<Long> getExerciseErrorQuestionList(@Param("bankId") Long bankId, @Param("studentId") Long studentId);
+
+ /**
+ * 根据试卷id查询题目列表
+ * @param paperId
+ * @return
+ */
+ List<ExQuestion> selectQuestionByPaperId(Long paperId);
}
--
Gitblit v1.9.2