This commit is contained in:
linfso 2024-11-10 18:48:50 +08:00
parent 647c4b69cb
commit 9a65990f8e

View File

@ -58,9 +58,9 @@
from emis_waybill a,emis_waybill_cargo b
<where>
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="orderSn != null and orderSn != ''"> and ( FIND_IN_SET(a.`order_sn`,#{orderSn}) or a.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}, '%') )
and ( FIND_IN_SET(a.`bill_code`,#{billCode}) or a.bill_code like concat('%', #{billCode}, '%') )
</if>
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
and (