修复查询为空问题

This commit is contained in:
liaozetao
2023-11-21 14:10:19 +08:00
committed by khalil
parent fa2437f0a1
commit 11512b2b70
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
left join users as u on u.uid = irlr.uid
left join account as a on a.uid = irlr.uid
<where>
<if test="userErBanNo != null">
<if test="userErBanNo != null and userErBanNo != ''">
and u.erban_no = #{userErBanNo}
</if>
</where>

View File

@@ -18,7 +18,7 @@
left join hall_member as hm on hm.uid = irw.uid and hm.`status` = 1
left join hall as h on h.owner_uid = irw.uid and h.`status` = 1
<where>
<if test="userErBanNo != null">
<if test="userErBanNo != null and userErBanNo != ''">
and u.erban_no = #{userErBanNo}
</if>
<if test="phone != null and phone != ''">