From 90d44b9991f42e0736c15d27910b7e87fae76309 Mon Sep 17 00:00:00 2001 From: linfso Date: Wed, 15 Jan 2025 13:28:08 +0800 Subject: [PATCH] md --- .../resources/mapper/EmisWaybillMapper.xml | 45 ++++++++----------- 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index 89c902dd8..482dd1512 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -1912,7 +1912,6 @@ a.del_flag='0' and a.order_status !='0' and a.order_status!='2' and ( a.problem_type is null or (a.problem_type is not null and (a.problem_type != 173 and a.problem_type != 170 and a.problem_type != 151) ) ) - - - and a.send_date = ]]> #{params.beginDate} @@ -2020,6 +2002,17 @@ and a.send_date #{params.endDate} + + and ( + a.salesmen=#{params.privEmpName} or a.payee=#{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.operate_employee_code=#{params.privEmpCode} + or a.take_piece_employee_code=#{params.privEmpCode} + ) + + group by b.code