join dc_ebay_report_uk_config t2 on t2.type>1 and t1.logistics_method_code=t2.config_value
from dc_base_oms_pick t1
join dc_ebay_report_uk_config t3 on t3.type=1 and t1.seller_account=t3.config_value
join dc_ebay_report_uk_config t4 on t1.logistics_order_id=t4.config_value and t4.type>1
where t1.platform_type='Ebay' and t1.website='uk' and t1.bailun_payment_status!='Canceled'
where t1.shipping_time>='{start.ToString("yyyy-MM-dd")}' and t1.shipping_time<'{end.AddDays(1).ToString("yyyy-MM-dd")}'
and t1.paid_time>='{start.ToString("yyyy-MM-dd")}' and t1.paid_time<'{end.AddDays(1).ToString("yyyy-MM-dd")}'";
group by t1.origin_order_id,t1.tracking_order_id,shipping_status,warehouse_code,logistics_order_id,logistics_order_name) t1
join dc_base_oms_order t2 on t1.origin_order_id=t2.origin_order_id and t2.website='uk' and t2.platform_type='Ebay' and t2.bailun_payment_status!='Canceled'
join dc_ebay_report_uk_config t3 on t2.seller_account=t3.config_value and t3.type=1";