From 8458e64aab474c0fc2f49ae4ff22fb11ce5cf6e2 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Mon, 11 Nov 2024 16:55:28 +0800
Subject: [PATCH] 批次新增学员查询条件,新增题目导入接口
---
exam-system/src/main/java/com/gkhy/exam/system/mapper/ExQuestionMapper.java | 41 ++++++++++++++++++++++++++++-------------
1 files changed, 28 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..503a25b 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,45 @@
/**
* 获取考卷下面所有题目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);
+
+ int saveBatch(List<ExQuestion> exQuestions);
}
--
Gitblit v1.9.2