管理员系统 优化 按用户名或用户邮箱 查询用户design频率

This commit is contained in:
2024-08-21 15:07:14 +08:00
parent c5da68dc47
commit 8a774aa328
3 changed files with 12 additions and 6 deletions

View File

@@ -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