|
|
@ -1971,7 +1971,6 @@ |
|
|
|
lww.shipper_name shipperName, |
|
|
|
lww.shipper_name shipperName, |
|
|
|
lww.shipper_mobile shipperMobile, |
|
|
|
lww.shipper_mobile shipperMobile, |
|
|
|
lww.shipper_address shipperAddress, |
|
|
|
lww.shipper_address shipperAddress, |
|
|
|
lww.service_type serviceType, |
|
|
|
|
|
|
|
lww.destination destination, |
|
|
|
lww.destination destination, |
|
|
|
lww.complete_destination completeDestination, |
|
|
|
lww.complete_destination completeDestination, |
|
|
|
lww.departure departure, |
|
|
|
lww.departure departure, |
|
|
@ -1989,7 +1988,7 @@ |
|
|
|
lww.d_pay arrivePay, |
|
|
|
lww.d_pay arrivePay, |
|
|
|
lww.h_pay backPay, |
|
|
|
lww.h_pay backPay, |
|
|
|
lww.y_pay monthPay, |
|
|
|
lww.y_pay monthPay, |
|
|
|
lbc.type_service serviceType, |
|
|
|
IFNULL(lbc.type_service,lww.service_type) serviceType, |
|
|
|
IFNULL(lww.update_status,0) updateStatus, |
|
|
|
IFNULL(lww.update_status,0) updateStatus, |
|
|
|
IFNULL(lww.check_status,0) checkStatus, |
|
|
|
IFNULL(lww.check_status,0) checkStatus, |
|
|
|
lww.check_reson checkReson, |
|
|
|
lww.check_reson checkReson, |
|
|
@ -2127,7 +2126,7 @@ |
|
|
|
and lww.urgency = #{param.urgency} |
|
|
|
and lww.urgency = #{param.urgency} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.serviceType != null"> |
|
|
|
<if test="param.serviceType != null"> |
|
|
|
and lww.service_type = #{param.serviceType} |
|
|
|
and IFNULL(lbc.type_service,lww.service_type) = #{param.serviceType} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.transportType != null"> |
|
|
|
<if test="param.transportType != null"> |
|
|
|
and lww.transport_type = #{param.transportType} |
|
|
|
and lww.transport_type = #{param.transportType} |
|
|
@ -2233,11 +2232,6 @@ |
|
|
|
lww.shipper_name shipperName, |
|
|
|
lww.shipper_name shipperName, |
|
|
|
lww.shipper_mobile shipperMobile, |
|
|
|
lww.shipper_mobile shipperMobile, |
|
|
|
lww.shipper_address shipperAddress, |
|
|
|
lww.shipper_address shipperAddress, |
|
|
|
case when lww.service_type='1' then '商配' |
|
|
|
|
|
|
|
when lww.service_type='2' then '市配' |
|
|
|
|
|
|
|
when lww.service_type='3' then '自提' |
|
|
|
|
|
|
|
when lww.service_type='4' then '三方中转' |
|
|
|
|
|
|
|
ELSE '未知' END serviceType, |
|
|
|
|
|
|
|
lww.destination destination, |
|
|
|
lww.destination destination, |
|
|
|
lww.complete_destination completeDestination, |
|
|
|
lww.complete_destination completeDestination, |
|
|
|
lww.departure departure, |
|
|
|
lww.departure departure, |
|
|
@ -2279,10 +2273,10 @@ |
|
|
|
lww.d_pay arrivePay, |
|
|
|
lww.d_pay arrivePay, |
|
|
|
lww.h_pay backPay, |
|
|
|
lww.h_pay backPay, |
|
|
|
lww.y_pay monthPay, |
|
|
|
lww.y_pay monthPay, |
|
|
|
case when lbc.type_service='1' then '商配' |
|
|
|
case when IFNULL(lbc.type_service,lww.service_type)='1' then '商配' |
|
|
|
when lbc.type_service='2' then '市配' |
|
|
|
when IFNULL(lbc.type_service,lww.service_type)='2' then '市配' |
|
|
|
when lbc.type_service='3' then '自提' |
|
|
|
when IFNULL(lbc.type_service,lww.service_type)='3' then '自提' |
|
|
|
when lbc.type_service='4' then '三方中转' |
|
|
|
when IFNULL(lbc.type_service,lww.service_type)='4' then '三方中转' |
|
|
|
else '未知' end serviceType, |
|
|
|
else '未知' end serviceType, |
|
|
|
CASE WHEN IFNULL(lww.update_status,0)=0 THEN '未改单' |
|
|
|
CASE WHEN IFNULL(lww.update_status,0)=0 THEN '未改单' |
|
|
|
WHEN IFNULL(lww.update_status,0)=1 THEN '已改单' |
|
|
|
WHEN IFNULL(lww.update_status,0)=1 THEN '已改单' |
|
|
@ -2441,7 +2435,7 @@ |
|
|
|
and lww.urgency = #{param.urgency} |
|
|
|
and lww.urgency = #{param.urgency} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.serviceType != null"> |
|
|
|
<if test="param.serviceType != null"> |
|
|
|
and lww.service_type = #{param.serviceType} |
|
|
|
and IFNULL(lbc.type_service,lww.service_type) = #{param.serviceType} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.transportType != null"> |
|
|
|
<if test="param.transportType != null"> |
|
|
|
and lww.transport_type = #{param.transportType} |
|
|
|
and lww.transport_type = #{param.transportType} |
|
|
|