From 8bf5905eadd83054354759e28383d99c258865bb Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期五, 11 七月 2025 14:46:23 +0800 Subject: [PATCH] 新增离职的人员选项使用下拉框 --- src/main/resources/mapper/system/SysUserMapper.xml | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/system/SysUserMapper.xml b/src/main/resources/mapper/system/SysUserMapper.xml index cb0bdb3..f5164bc 100644 --- a/src/main/resources/mapper/system/SysUserMapper.xml +++ b/src/main/resources/mapper/system/SysUserMapper.xml @@ -64,7 +64,10 @@ LEFT JOIN sys_dept T2 ON T1.dept_id = T2.dept_id GROUP BY T1.user_id ) T2 on T2.user_id = u.user_id - where u.del_flag = '0' and u.tenant_id = #{tenantId} + where u.del_flag = '0' + <if test="tenantId != null and tenantId != 0"> + and u.tenant_id = #{tenantId} + </if> <if test="userId != null and userId != 0"> AND u.user_id = #{userId} </if> -- Gitblit v1.9.3