diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index 0a71127dc..9a56a7fc2 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -622,7 +622,6 @@ and destination_center_code=#{destinationCenterCode} and market_man_code = #{marketManCode} - and operate_employee_code=#{operateEmployeeCode} and bl_is_question=#{blIsQuestion} and problem_type=#{problemType} @@ -639,14 +638,12 @@ and payment_remark like concat('%', #{paymentRemark}, '%') and order_remark like concat('%', #{orderRemark}, '%') - and a.remark like concat('%', #{remark}, '%') and a.create_by= #{createBy} and a.update_by=#{updateBy} and a.create_site=#{createSite} and a.update_site=#{updateSite} - and a.waybill_status='0' and a.order_status='0' @@ -663,7 +660,6 @@ - and a.order_date = ]]> #{params.beginOrderDate} @@ -679,12 +675,10 @@ or a.salesmen=#{salesmen} - and a.send_site_code=#{sendSiteCode} - and a.bl_sign='1' @@ -741,10 +735,8 @@ and bl_sign!='1' and waybill_status!='40' - - + and ( - a.send_site_code in ( SELECT t1.site_code FROM ( SELECT * FROM emis_site WHERE parent_site_code IS NOT NULL ) t1,( SELECT @pid := @@ -772,10 +764,14 @@ 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 a.salesmen=#{params.privEmpName} - or a.payee=#{params.privEmpName} - or a.operate_employee_code=#{params.privEmpCode} - or a.take_piece_employee_code=#{params.privEmpCode} + + + ) @@ -1475,7 +1471,7 @@ - + and ( a.send_site_code in (