|
@@ -256,7 +256,7 @@
|
|
|
<sql id="Condition_1">
|
|
<sql id="Condition_1">
|
|
|
<where>
|
|
<where>
|
|
|
<if test="purNo != null and purNo != ''">
|
|
<if test="purNo != null and purNo != ''">
|
|
|
- AND tpp.pur_no = #{purNo}
|
|
|
|
|
|
|
+ AND tpp.pur_no like concat('%', my_ex.likequery(#{purNo}) , '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="purType != null and purType != ''">
|
|
<if test="purType != null and purType != ''">
|
|
|
AND tpp.pur_type = #{purType}
|
|
AND tpp.pur_type = #{purType}
|
|
@@ -271,10 +271,10 @@
|
|
|
AND tpp.sup_id = #{supId}::uuid
|
|
AND tpp.sup_id = #{supId}::uuid
|
|
|
</if>
|
|
</if>
|
|
|
<if test="contactName != null and contactName != ''">
|
|
<if test="contactName != null and contactName != ''">
|
|
|
- AND tpp.contact_name = #{contactName}
|
|
|
|
|
|
|
+ AND tpp.contact_name like concat('%', my_ex.likequery(#{contactName}) , '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="contactPhone != null and contactPhone != ''">
|
|
<if test="contactPhone != null and contactPhone != ''">
|
|
|
- AND tpp.contact_phone = #{contactPhone}
|
|
|
|
|
|
|
+ AND tpp.contact_phone like concat('%', my_ex.likequery(#{contactPhone}) , '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="pickupDate != null">
|
|
<if test="pickupDate != null">
|
|
|
AND tpp.pickup_date = #{pickupDate}
|
|
AND tpp.pickup_date = #{pickupDate}
|