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