From bf2352e6dffe4cfcf00966881c5c14024d812647 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 30 五月 2024 11:03:42 +0800 Subject: [PATCH] fix:随机试卷补考学生查询 --- src/main/resources/mapper/SubjectMapper.xml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/SubjectMapper.xml b/src/main/resources/mapper/SubjectMapper.xml index c7b6258..fac9514 100644 --- a/src/main/resources/mapper/SubjectMapper.xml +++ b/src/main/resources/mapper/SubjectMapper.xml @@ -118,7 +118,7 @@ select ts.id, ts.name from t_subject ts - <if test="deptIds != null and deptIds.size > 0"> + <if test="admin == false and deptIds != null and deptIds.size > 0"> INNER JOIN t_subject_dept tsd ON tsd.subject_id = ts.id AND tsd.dept_id IN <foreach collection="deptIds" open="(" separator="," close=")" item="deptId">#{deptId}</foreach> -- Gitblit v1.8.0