From 31eaf0b16ea8695b45d7f93784ef0583174f1163 Mon Sep 17 00:00:00 2001 From: linfso Date: Fri, 10 Jan 2025 14:21:14 +0800 Subject: [PATCH] md --- emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index e2122c2dc..d60037f2c 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -2040,6 +2040,9 @@ ) 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.salesmen in( + select salesmen from emis_salesmen_rel esr where esr.del_flag='0' and esr.bl_open='1' and now() = ]]> esr.start_date and now() esr.end_date and esr.sales_ass=#{params.privEmpName} + ) or a.payee=#{params.privEmpName} or a.operate_employee_code=#{params.privEmpCode} or a.take_piece_employee_code=#{params.privEmpCode}