From 2034affc977074a7569635ccba051e9089750684 Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期三, 04 六月 2025 11:45:10 +0800 Subject: [PATCH] 采购台账功能修改 --- src/main/resources/mapper/system/SysUserDeptMapper.xml | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/system/SysUserDeptMapper.xml b/src/main/resources/mapper/system/SysUserDeptMapper.xml index 0a62acb..898d3d1 100644 --- a/src/main/resources/mapper/system/SysUserDeptMapper.xml +++ b/src/main/resources/mapper/system/SysUserDeptMapper.xml @@ -16,6 +16,11 @@ <if test="userDeptVo.userId != null"> T1.user_id = #{userDeptVo.userId} </if> + <if test="userDeptVo.userName != null and userDeptVo.userName != '' "> + T1.user_id IN ( + SELECT user_id FROM sys_user WHERE nick_name LIKE CONCAT('%',#{userDeptVo.userName},'%') + ) + </if> </where> </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3