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 5028dd67b3..fc3c09cb1c 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},'%') ESCAPE '|' - or u.email like concat('%', '|'+#{request.keyword},'%') ESCAPE '|' + u.name like concat('%', concat('|', #{request.keyword}),'%') ESCAPE '|' + or u.email like concat('%', concat('|', #{request.keyword}),'%') ESCAPE '|' ) order by urr.create_time desc