diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml index 9e86554f8..dbafce4cd 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillMapper.xml @@ -2435,6 +2435,8 @@ ifnull(round(sum(settlement_weight),2),0) as totalSettlementWeight, ifnull(round(sum(freight),2),0) as totalFreight from emis_waybill a + left join emis_customer_user a4 on a.cust_no = a4.monthly_pay_code and a4.del_flag = '0' + left join emis_waybill_other wss on a.id = wss.waybill_id and wss.del_flag = '0' a.del_flag='0' and a.order_status !='0' and a.order_status!='2' and a.id = #{id} @@ -2462,6 +2464,7 @@ and customer_code=#{customerCode} and customer_name like concat('%', #{customerName}, '%') and open_id like concat('%', #{openId}, '%') + and receive_name like concat('%', #{receiveName}, '%') and receive_company like concat('%', #{receiveCompany}, '%') and receive_mobile like concat('%', #{receiveMobile}, '%') @@ -2568,7 +2571,6 @@ and exists (select 1 from sys_user su1, sys_user su2 where su1.emp_code = #{takePieceEmployeeCode} and su2.emp_code = a.take_piece_employee_code and su1.emp_name = su2.emp_name and su1.del_flag='0' and su2.del_flag='0') - and send_date = #{sendDate} and dispatch_man_code=#{dispatchManCode} and dispatch_site_code=#{dispatchSiteCode}