This commit is contained in:
linfso 2024-11-10 18:37:39 +08:00
parent 62ae54251e
commit 647c4b69cb

View File

@ -57,7 +57,7 @@
b.update_time, b.remark,a.bill_code,a.order_sn
from emis_waybill a,emis_waybill_cargo b
<where>
a.del_flag='0' and b.del_flag='0' and a.waybill_id=b.id and a.order_type='0'
a.del_flag='0' and b.del_flag='0' and b.waybill_id=a.id and a.order_type='0'
<if test="orderSn != null and orderSn != ''"> and ( FIND_IN_SET(b.`order_sn`,#{orderSn}) or b.order_sn like concat('%', #{orderSn}, '%') ) </if>
<if test="billCode != null and billCode != ''">
and ( FIND_IN_SET(b.`bill_code`,#{billCode}) or b.bill_code like concat('%', #{billCode}, '%') )