From 16b4725365f3286c2d2a80945e26f35f89b53f24 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 28 六月 2024 11:37:06 +0800
Subject: [PATCH] answer表改为score表,阅卷代码

---
 src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java b/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java
index 3c93933..c418e3d 100644
--- a/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java
+++ b/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java
@@ -3,6 +3,7 @@
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.ycl.jxkg.domain.other.KeyValue;
 import com.ycl.jxkg.domain.entity.Question;
+import com.ycl.jxkg.domain.question.RandomQuestionDTO;
 import com.ycl.jxkg.domain.vo.admin.question.QuestionPageRequestVO;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
@@ -20,4 +21,24 @@
     Integer selectAllCount();
 
     List<KeyValue> selectCountByDate(@Param("startTime") Date startTime,@Param("endTime") Date endTime);
+
+    /**
+     * 鑾峰彇棰樼洰锛氶鍨嬨�佺瓟妗�
+     *
+     * @param questionIds
+     * @return
+     */
+    List<Question> getAnswerInfo(@Param("questionIds") List<Integer> questionIds);
+
+    List<RandomQuestionDTO> selectBySubject(@Param("subjectId") Integer subjectId, @Param("types") List<Integer> types);
+
+    /**
+     * 鑾峰彇闅忔満棰�
+     *
+     * @param subjectId 璇剧洰
+     * @param questionType 棰樺瀷
+     * @param num 鏁伴噺
+     * @return
+     */
+    List<Question> getRandomQuestion(@Param("subjectId") Integer subjectId, @Param("questionType") Integer questionType, @Param("num") Integer num);
 }

--
Gitblit v1.8.0