diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index 887782a9d..1f79c9d32 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -1277,7 +1277,10 @@ - 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'