From b9d583957278a157e5c429a10ef4e52d6afdf151 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 31 Jan 2024 11:23:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BB=84=E6=B7=BB=E5=8A=A0=E7=9A=84=E6=88=90?= =?UTF-8?q?=E5=91=98=E6=94=AF=E6=8C=81=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1034870 --user=宋昌昌 【项目管理】-用户组成员列表搜索,使用邮箱搜索结果错误 https://www.tapd.cn/55049933/s/1456716 --- .../metersphere/project/mapper/ExtProjectUserRoleMapper.xml | 4 +++- .../java/io/metersphere/system/mapper/ExtUserRoleMapper.xml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/mapper/ExtProjectUserRoleMapper.xml b/backend/services/project-management/src/main/java/io/metersphere/project/mapper/ExtProjectUserRoleMapper.xml index 7bf30b1ac6..ab66126b06 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/mapper/ExtProjectUserRoleMapper.xml +++ b/backend/services/project-management/src/main/java/io/metersphere/project/mapper/ExtProjectUserRoleMapper.xml @@ -30,7 +30,9 @@ and urr.role_id = #{request.userRoleId} and ( - u.name like concat('%', #{request.keyword}, '%') or u.email like concat('%', #{request.keyword}, '%') + u.name like concat('%', #{request.keyword}, '%') + or u.email like concat('%', #{request.keyword}, '%') + or u.phone like concat('%', #{request.keyword}, '%') ) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtUserRoleMapper.xml b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtUserRoleMapper.xml index 89b5d6d715..ab28b69184 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtUserRoleMapper.xml +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtUserRoleMapper.xml @@ -20,7 +20,9 @@ and urr.role_id = #{request.userRoleId} and ( - u.name like concat('%', #{request.keyword}, '%') or u.email like concat('%', #{request.keyword}, '%') + u.name like concat('%', #{request.keyword}, '%') + or u.email like concat('%', #{request.keyword}, '%') + or u.phone like concat('%', #{request.keyword}, '%') )