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>