diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index 842a05c9c..c8338f798 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -1073,7 +1073,7 @@ - + and ( a.send_site_code in ( @@ -1093,7 +1093,9 @@ UNION SELECT #{params.privSiteCode} FROM dual ) - or EXISTS (select 1 from emis_tms_scan_record etsr where a.bill_code=etsr.main_bill_code and etsr.scan_site_code=#{params.privSiteCode}) + + or EXISTS (select 1 from emis_tms_scan_record etsr where a.bill_code=etsr.main_bill_code and etsr.scan_site_code=#{params.privSiteCode}) + or a.salesmen=#{params.privEmpName} or a.payee=#{params.privEmpName} or a.operate_employee_code=#{params.privEmpCode} @@ -1532,7 +1534,9 @@ UNION SELECT #{params.privSiteCode} FROM dual ) - or EXISTS (select 1 from emis_tms_scan_record etsr where a.bill_code=etsr.main_bill_code and etsr.scan_site_code=#{params.privSiteCode}) + + or EXISTS (select 1 from emis_tms_scan_record etsr where a.bill_code=etsr.main_bill_code and etsr.scan_site_code=#{params.privSiteCode}) + or a.salesmen=#{params.privEmpName} or a.payee=#{params.privEmpName} or a.operate_employee_code=#{params.privEmpCode}