This commit is contained in:
linfso 2024-11-16 08:39:14 +08:00
parent 8b99c825e2
commit 784371b106

View File

@ -1277,7 +1277,10 @@
<if test="params.isNeedBatch != null and params.isNeedBatch == 1">
and a.bill_code not in( select etb.bill_code from emis_tms_site_batch_dtl etb where etb.del_flag='0' )
and a.bill_code not in(
select etb.bill_code from emis_tms_site_batch_dtl etsbt,emis_tms_site_batch etsb
where etsbt.batch_no=etsb.batch_no and etsbt.del_flag='0' and etsb.del_flag='0' and etsb.batch_type=#{params.batchType}
)
and bl_sign!='1' and waybill_status!='40'
</if>