|
@@ -112,10 +112,10 @@
|
|
|
AND tmc.cus_code = #{cusCode}
|
|
AND tmc.cus_code = #{cusCode}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="cusName != null and cusName != ''">
|
|
<if test="cusName != null and cusName != ''">
|
|
|
- AND tmc.cus_name = #{cusName}
|
|
|
|
|
|
|
+ AND tmc.cus_name like concat('%', my_ex.likequery(#{cusName}) , '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="cusPhone != null and cusPhone != ''">
|
|
<if test="cusPhone != null and cusPhone != ''">
|
|
|
- AND tmc.cus_phone = #{cusPhone}
|
|
|
|
|
|
|
+ AND tmc.cus_phone like concat('%', my_ex.likequery(#{cusPhone}) , '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="addressArea != null and addressArea != ''">
|
|
<if test="addressArea != null and addressArea != ''">
|
|
|
AND tmc.address_area = #{addressArea}
|
|
AND tmc.address_area = #{addressArea}
|
|
@@ -133,10 +133,10 @@
|
|
|
AND tmc.address_full = #{addressFull}
|
|
AND tmc.address_full = #{addressFull}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="contactName != null and contactName != ''">
|
|
<if test="contactName != null and contactName != ''">
|
|
|
- AND tmc.contact_name = #{contactName}
|
|
|
|
|
|
|
+ AND tmc.contact_name like concat('%', my_ex.likequery(#{contactName}) , '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="contactPhone != null and contactPhone != ''">
|
|
<if test="contactPhone != null and contactPhone != ''">
|
|
|
- AND tmc.contact_phone = #{contactPhone}
|
|
|
|
|
|
|
+ AND tmc.contact_phone like concat('%', my_ex.likequery(#{contactPhone}) , '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="cusFrom != null and cusFrom != ''">
|
|
<if test="cusFrom != null and cusFrom != ''">
|
|
|
AND tmc.cus_from = #{cusFrom}::uuid
|
|
AND tmc.cus_from = #{cusFrom}::uuid
|