fix(系统设置): 系统用户组搜索特殊字符转义处理
--bug=1035378 --user=王旭 【系统设置】系统-系统用户组-成员列表-特殊字符%搜索用户失败 https://www.tapd.cn/55049933/s/1465481
This commit is contained in:
parent
856285c082
commit
899f780fef
|
@ -31,8 +31,8 @@
|
||||||
inner join user u on urr.user_id = u.id and urr.role_id = #{request.roleId} and u.deleted = 0
|
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 != ''">
|
<if test="request.keyword != null and request.keyword != ''">
|
||||||
and (
|
and (
|
||||||
u.name like concat('%', #{request.keyword},'%')
|
u.name like concat('%', '|'+#{request.keyword},'%') ESCAPE '|'
|
||||||
or u.email like concat('%', #{request.keyword},'%')
|
or u.email like concat('%', '|'+#{request.keyword},'%') ESCAPE '|'
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
order by urr.create_time desc
|
order by urr.create_time desc
|
||||||
|
|
Loading…
Reference in New Issue