refactor(系統): 用户组查询sql

This commit is contained in:
WangXu10 2024-04-07 19:27:43 +08:00 committed by Craftsman
parent f605fb41b5
commit d027064a93
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('%', #{request.keyword},'%')
or u.email like concat('%', #{request.keyword},'%')
)
</if>
order by urr.create_time desc