diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
index de61d6a5c..dce9db3c2 100644
--- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml
@@ -544,7 +544,12 @@
- and a.bill_code not in( select m.bill_code from emis_tms_pack_dtl m where m.del_flag='0' )
+ and a.bill_code not in( select etp.bill_code from emis_tms_pack_dtl etp where etp.del_flag='0' )
+
+
+
+
+ and a.bill_code not in( select etb.bill_code from emis_tms_site_batch_dtl etb where etb.del_flag='0' )