|
|
@@ -9,8 +9,12 @@
|
|
|
update_by updateBy, update_time updateTime
|
|
|
from kwt_waybill_order_address
|
|
|
where del_flag = 0
|
|
|
- and w_order_id = #{wOrderId, jdbcType=BIGINT}
|
|
|
- and address_type = #{addressType, jdbcType=INTEGER}
|
|
|
+ <if test="wOrderId != null and wOrderId != ''">
|
|
|
+ and w_order_id = #{wOrderId, jdbcType=BIGINT}
|
|
|
+ </if>
|
|
|
+ <if test="addressType != null and addressType != ''">
|
|
|
+ and address_type = #{addressType, jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
order by sort
|
|
|
</select>
|
|
|
|
|
|
@@ -22,9 +26,11 @@
|
|
|
`status`, create_by createBy, create_time createTime, update_by updateBy, update_time updateTime
|
|
|
from kwt_waybill_order_address
|
|
|
where del_flag = 0
|
|
|
- and w_order_id = #{wOrderId, jdbcType=BIGINT}
|
|
|
+ <if test="wOrderId != null and wOrderId != ''">
|
|
|
+ and w_order_id = #{wOrderId, jdbcType=BIGINT}
|
|
|
+ </if>
|
|
|
<if test="addressType != null and addressType != ''">
|
|
|
- and address_type = #{addressType, jdbcType=BIGINT}
|
|
|
+ and address_type = #{addressType, jdbcType=INTEGER}
|
|
|
</if>
|
|
|
order by sort
|
|
|
</select>
|
|
|
@@ -37,7 +43,9 @@
|
|
|
`status`, create_by createBy, create_time createTime, update_by updateBy, update_time updateTime
|
|
|
from kwt_waybill_order_address
|
|
|
where del_flag = 0
|
|
|
- and w_subtask_id = #{wSubtaskId, jdbcType=BIGINT}
|
|
|
+ <if test="wSubtaskId != null and wSubtaskId != ''">
|
|
|
+ and w_subtask_id = #{wSubtaskId, jdbcType=BIGINT}
|
|
|
+ </if>
|
|
|
<if test="addressType != null and addressType != ''">
|
|
|
and address_type = #{addressType, jdbcType=BIGINT}
|
|
|
</if>
|