From 26422a99ed7e19579ca11f008c180addc21f5153 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期三, 08 五月 2024 17:46:34 +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