From 899f780fef82fdf364c0737e7dfb3bb0480ad06b Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Tue, 27 Feb 2024 14:12:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=94=A8=E6=88=B7=E7=BB=84=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E5=AD=97=E7=AC=A6=E8=BD=AC=E4=B9=89=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1035378 --user=王旭 【系统设置】系统-系统用户组-成员列表-特殊字符%搜索用户失败 https://www.tapd.cn/55049933/s/1465481 --- .../metersphere/system/mapper/ExtUserRoleRelationMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtUserRoleRelationMapper.xml b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtUserRoleRelationMapper.xml index 6c8c895ede..5028dd67b3 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtUserRoleRelationMapper.xml +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtUserRoleRelationMapper.xml @@ -31,8 +31,8 @@ inner join user u on urr.user_id = u.id and urr.role_id = #{request.roleId} and u.deleted = 0 and ( - u.name like concat('%', #{request.keyword},'%') - or u.email like concat('%', #{request.keyword},'%') + u.name like concat('%', '|'+#{request.keyword},'%') ESCAPE '|' + or u.email like concat('%', '|'+#{request.keyword},'%') ESCAPE '|' ) order by urr.create_time desc