货主管理查询条件优化

This commit is contained in:
zhou-hongcheng
2026-02-06 11:12:39 +08:00
parent d9e5d5187e
commit 5acc1059c1
2 changed files with 9 additions and 8 deletions
@@ -406,14 +406,6 @@
<if test="userMemberCode != null and userMemberCode != ''">
and a.user_member_code = #{userMemberCode}
</if>
/*联系人*/
<if test="emergencyContactName != null and emergencyContactName != ''">
and a.emergency_contact_name = #{emergencyContactName}
</if>
/*联系电话*/
<if test="emergencyContactPhone != null and emergencyContactPhone != ''">
and a.emergency_contact_phone = #{emergencyContactPhone}
</if>
/*详细地址*/
<if test="userAreaAddress != null and userAreaAddress != ''">
and a.user_area_address like concat('%' , #{userAreaAddress} , '%')
@@ -426,6 +418,9 @@
<if test="emergencyContactPhone != null and emergencyContactPhone != ''">
and a.emergency_contact_phone like concat('%' , #{emergencyContactPhone} , '%')
</if>
<if test="userAreaCountyId != null and userAreaCountyId != ''">
and a.user_area_county_id = #{userAreaCountyId}
</if>
</sql>
<select id="selectAppUserList" resultType="com.mhd.common.core.domain.po.app.UserAppPo" parameterType="com.mhd.user.domain.userAggregate.repository.todo.UserDO">