fix(组织成员):获取所有未被删除用户增加用户邮件和电话的查询

This commit is contained in:
guoyuqi 2024-01-31 09:52:23 +08:00 committed by 刘瑞斌
parent f3ad7a62f1
commit 9eb5f72099
1 changed files with 3 additions and 1 deletions

View File

@ -103,7 +103,9 @@
from user from user
where deleted = 0 where deleted = 0
<if test="keyword != null and keyword != ''"> <if test="keyword != null and keyword != ''">
and name LIKE CONCAT('%', #{keyword}, '%') and (u.name like CONCAT('%', #{request.keyword},'%')
or u.email like CONCAT('%', #{request.keyword},'%')
or u.phone like CONCAT('%', #{request.keyword},'%'))
</if> </if>
order by update_time desc order by update_time desc
limit 100 limit 100