From 21ff1b4f2ef67975eef303bff66ef60388243cf1 Mon Sep 17 00:00:00 2001
From: qirong <2032486488@qq.com>
Date: 星期三, 05 七月 2023 16:42:03 +0800
Subject: [PATCH] 随机试卷修改和统计

---
 src/main/resources/mapper/QuestionMapper.xml |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/QuestionMapper.xml b/src/main/resources/mapper/QuestionMapper.xml
index 32bd2f8..50d0a31 100644
--- a/src/main/resources/mapper/QuestionMapper.xml
+++ b/src/main/resources/mapper/QuestionMapper.xml
@@ -192,10 +192,11 @@
         and q.grade_level= #{level}
       </if>
       <if test="subjectId != null ">
-        and qs.subject_id =
+        and qs.subject_id in
+        <foreach item="subjectId" collection="subjectId" open="(" separator=","
+                 close=")">
           #{subjectId}
-
-
+        </foreach>
       </if>
       <if test="questionType != null ">
         and q.question_type= #{questionType}
@@ -233,4 +234,8 @@
 		GROUP BY create_time
 	</select>
 
+  <select id="getAll"  resultMap="BaseResultMap">
+    SELECT <include refid="Base_Column_List"/>
+        from t_question where  deleted=0
+  </select>
 </mapper>

--
Gitblit v1.8.0