diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index 22f8d40a0..a97721f59 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -690,7 +690,7 @@ - and a.bill_code not in( select etp.bill_code from emis_tms_pack_dtl etp where etp.del_flag='0' ) + and not EXISTS ( select 1 from emis_tms_pack_dtl etp where etp.del_flag='0' and etp.main_bill_code=a.bill_code ) and a.trans_line_type in( select line_code from emis_trans_line etl where etl.trans_type=1 )