修复查询问题

This commit is contained in:
menxipeng
2025-09-13 12:19:30 +08:00
parent b9dabf0382
commit 5c561a7295
2 changed files with 19 additions and 2 deletions

View File

@@ -81,8 +81,12 @@
<if test="userId != null "> and user_id = #{userId}</if>
<if test="username != null and username != ''"> and username like concat('%', #{username}, '%')</if>
<if test="password != null and password != ''"> and password = #{password}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="nickname != null and nickname != ''"> and nickname like concat('%', #{nickname}, '%')</if>
<if test="phone != null and phone != ''">
or phone like concat('%', #{phone}, '%')
</if>
<if test="nickname != null and nickname != ''">
or nickname like concat('%', #{nickname}, '%')
</if>
<if test="sex != null "> and sex = #{sex}</if>
<if test="birthday != null "> and birthday = #{birthday}</if>
<if test="addr != null and addr != ''"> and addr = #{addr}</if>