This commit is contained in:
linfso 2024-11-16 13:39:12 +08:00
parent 05d1965ead
commit 37340c1d4d

View File

@ -1278,8 +1278,8 @@
<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 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}
select etsbd.bill_code from emis_tms_site_batch_dtl etsbd,emis_tms_site_batch etsb
where etsbd.batch_no=etsb.batch_no and etsbd.del_flag='0' and etsb.del_flag='0' and etsb.batch_type=#{params.batchType}
)
and bl_sign!='1' and waybill_status!='40'
</if>