From ded4f0891dd2a76f36844d7c220155e3cd1e6918 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期四, 16 五月 2024 17:10:28 +0800
Subject: [PATCH] feat:部门管理员功能权限控制

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

diff --git a/src/main/resources/mapper/QuestionMapper.xml b/src/main/resources/mapper/QuestionMapper.xml
index 7acf77b..b47999b 100644
--- a/src/main/resources/mapper/QuestionMapper.xml
+++ b/src/main/resources/mapper/QuestionMapper.xml
@@ -192,7 +192,7 @@
             <if test="level != null ">
                 and q.grade_level= #{level}
             </if>
-            <if test="subjectId != null ">
+            <if test="subjectId != null and subjectId.length > 0">
                 and qs.subject_id in
                 <foreach item="subjectId" collection="subjectId" open="(" separator=","
                          close=")">

--
Gitblit v1.8.0