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}, '%') )