refactor(系统设置): 系统用户组搜索特殊字符转义处理

This commit is contained in:
WangXu10 2024-02-27 14:43:23 +08:00 committed by 刘瑞斌
parent 899f780fef
commit e9d6c9bb49
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@
inner join user u on urr.user_id = u.id and urr.role_id = #{request.roleId} and u.deleted = 0
<if test="request.keyword != null and request.keyword != ''">
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 '|'
)
</if>
order by urr.create_time desc