8 AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAo9GuKPMDY0aemO4cp96DtgAAAAAIAAAARABUAFMAAAAQZgAAAAEAACAAAAC4keOmMUDdIrIRNY9m2ute85n3rFYRd5Lu5NBOdL/jVAAAAAAOgAAAAAIAACAAAAB6H0zQYGgp60j0/goGtxDrBjOCb4Vtyfil1qd8oJXB0TAAAACL1AX5ECz/gtNrz12rLEvQbQCdK/dp+kqv4HH2krjPRBK0bzLqxaEcxB5O+gmrcPZAAAAApdMoOb5LpnbiSKusIIvVGVat2DenZZwjM7OV4lV80Y8P2kYYUsZVN3fD//WXLMgbBoQod1ncgL4iQw3O4SUxFg AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAo9GuKPMDY0aemO4cp96DtgAAAAAIAAAARABUAFMAAAAQZgAAAAEAACAAAABhm/BoinjaUc32mIEcV/zA2Vm/CSve4tILOY3CeSHtfAAAAAAOgAAAAAIAACAAAAAXoUlZFQ3vOSuvXuhfctJcclSo3AlARCC75NPR1NyANDAAAABajOjIyBlemoS6Uw2edMeYfhApF4rkKo9jSg03Lz84PwliaeBxGNNQ/rydTysSOpNAAAAApF1os1yCI0ARzb/wG5b8WhODjnyGfxhITgUQ4FQaS6SAKuDiBq3x4whSf6EEZtLMHCbRvoeabApk2ps4hfaCvQ 0 [dbo].[BaseETL_FBATraceInfo] select b.CustomerOrderNo [客户单号],b.TrackingNumber [服务商单号],b.SystemNo [系统单号],b.ReceiverCountryCode[国家/地区],b.CreateTime [下单时间],b.ReceiveTime[称重时间],b.SendOutTime[出货时间],b.CustomerWeight[下单重] ,b.OPWeight[实重], d.BillingWeight*1000 [计费重], c.Status[最新物流状态],c.LastMessage[最新物流信息],c.TargetTime[最新物流时间],DATEDIFF(HOUR,b.SendOutTime,GETDATE())/24.0 [发货天数],c.OnlineTime[上网时间],DATEDIFF(HOUR,b.SendOutTime,c.OnlineTime)/24.0 [上网天数],c.SignTime[签收时间],DATEDIFF(HOUR,b.SendOutTime,c.SignTime)/24.0 [签收天数], a.LadingBillNumber[提单号], e.PublicName[产品名称],e1.PublicName[渠道名称], f.MpsBoxNum [箱数],0.00[预计费用],'' [含IOSS] from (select distinct CustomerOrderNumber,LadingBillNumber from Order_MpsOrder(nolock)) a left join Order_Order(nolock) b on b.CustomerOrderNo=a.CustomerOrderNumber and b.MpsOrderId>0 left join Logistics_Trace(nolock) c on c.OrderId=b.Id left join Finance_ChargesDetail(nolock) d on d.BillNo=b.SystemNo and d.BillType='全程派送运费' and d.Offset=0 and d.CustomerId=b.CustomerId left join Logistics_Channel(nolock) e on e.Id=b.CreateOrderChannelId left join Logistics_Channel(nolock) e1 on e1.Id=b.ChannelId left join (select COUNT(Id) MpsBoxNum,MpsOrderId from Order_MpsOrderBox group by MpsOrderId) f on f.MpsOrderId=b.MpsOrderId where ''!=ISNULL(b.CustomerOrderNo,'') 936 false 2 0 [dbo].[BaseETL_FBATraceInfo] 936 false 3 false false TABLOCK,CHECK_CONSTRAINTS 2147483647 DataSourceViewID TableInfoObjectType Table DataSourceViewID TableInfoObjectType Table ]]>