diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index fa90fe306..0048b03a2 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -707,10 +707,13 @@ 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 + select line_code from emis_trans_line etl where etl.trans_type=1 ) and bl_sign!='1' and waybill_status!='40' - and a.send_site_code=#{params.privSiteCode} and a.current_site_code=#{params.privSiteCode} + + + and (a.send_site_code=#{params.privSiteCode} or a.current_site_code=#{params.privSiteCode}) +