From 9cb0e31627c5050991940d149affc2dbdd86c833 Mon Sep 17 00:00:00 2001
From: qirong <2032486488@qq.com>
Date: 星期四, 15 六月 2023 11:57:47 +0800
Subject: [PATCH] 多选部门标签

---
 src/main/resources/mapper/QuestionMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/QuestionMapper.xml b/src/main/resources/mapper/QuestionMapper.xml
index b11d77c..d994330 100644
--- a/src/main/resources/mapper/QuestionMapper.xml
+++ b/src/main/resources/mapper/QuestionMapper.xml
@@ -192,7 +192,12 @@
         and q.grade_level= #{level}
       </if>
       <if test="subjectId != null ">
-        and qs.subject_id= #{subjectId}
+        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}

--
Gitblit v1.8.0