管理员系统 优化 按用户名或用户邮箱 查询用户design频率
This commit is contained in:
@@ -39,11 +39,14 @@
|
||||
</where>
|
||||
and b.create_date not like '%:01'
|
||||
and b.create_date not like '%:02'
|
||||
<if test="userName != null and userName != '' ">
|
||||
and a.user_name = #{userName}
|
||||
<if test="ids != null and ids.size() > 0">
|
||||
and a.id in
|
||||
<foreach item="id" collection="ids" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="email != null and email != '' ">
|
||||
and a.user_email = #{email}
|
||||
and a.user_email like CONCAT('%', #{email}, '%')
|
||||
</if>
|
||||
GROUP BY b.account_id
|
||||
ORDER BY b.account_id asc) d
|
||||
|
||||
Reference in New Issue
Block a user