demand: TMS-运单管理-所有运单查询分页逻辑修改

This commit is contained in:
aike 2025-12-05 17:37:57 +08:00
parent 46cf99ad85
commit e6b88ade6b

View File

@ -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'
<where>
a.del_flag='0' and a.order_status !='0' and a.order_status!='2'
<if test="id != null "> and a.id = #{id}</if>
@ -2462,6 +2464,7 @@
<if test="customerCode != null and customerCode != ''"> and customer_code=#{customerCode}</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="openId != null and openId != ''"> and open_id like concat('%', #{openId}, '%')</if>
<include refid="salesSupportFilter"/>
<if test="receiveName != null and receiveName != ''"> and receive_name like concat('%', #{receiveName}, '%')</if>
<if test="receiveCompany != null and receiveCompany != ''"> and receive_company like concat('%', #{receiveCompany}, '%')</if>
<if test="receiveMobile != null and receiveMobile != ''"> and receive_mobile like concat('%', #{receiveMobile}, '%')</if>
@ -2568,7 +2571,6 @@
<if test="takePieceEmployeeCode != null and takePieceEmployeeCode != ''"> 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')</if>
<include refid="salesSupportFilter"/>
<if test="sendDate != null "> and send_date = #{sendDate}</if>
<if test="dispatchManCode != null and dispatchManCode != ''"> and dispatch_man_code=#{dispatchManCode}</if>
<if test="dispatchSiteCode != null and dispatchSiteCode != ''"> and dispatch_site_code=#{dispatchSiteCode}</if>