From 2873f1cd6ea6caac062740e05994a1f0a880ffde Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 12 三月 2024 11:27:20 +0800 Subject: [PATCH] 一个用户只能是一个部门的管理员、创建随机试卷的时候人员只能选当前部门的人,试卷增加部门id --- 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