From 468109c399d40c1a1f3c30bd443e09951aaf4a64 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 15 五月 2024 18:19:03 +0800
Subject: [PATCH] fix:部门管理员角色设置
---
src/main/resources/mapper/ExamTemplatesMapper.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/ExamTemplatesMapper.xml b/src/main/resources/mapper/ExamTemplatesMapper.xml
index 9329f2b..07e28d5 100644
--- a/src/main/resources/mapper/ExamTemplatesMapper.xml
+++ b/src/main/resources/mapper/ExamTemplatesMapper.xml
@@ -70,6 +70,9 @@
<if test="userId != null">
and u.user_id = #{userId}
</if>
+ <if test="deptId != null">
+ and e.dept_id = #{deptId}
+ </if>
<if test="now !=null">
and #{now} between e.start_time and e.end_time
</if>
@@ -93,4 +96,4 @@
where id = #{id}
</delete>
-</mapper>
\ No newline at end of file
+</mapper>
--
Gitblit v1.8.0