1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738 |
- <?xml version="1.0"?>
- <DTS:Executable xmlns:DTS="www.microsoft.com/SqlServer/Dts"
- DTS:refId="Package"
- DTS:CreationDate="8/5/2022 7:04:04 PM"
- DTS:CreationName="Microsoft.Package"
- DTS:CreatorComputerName="FAN"
- DTS:CreatorName="FAN\dell"
- DTS:DTSID="{D46627C1-347F-461F-9579-0C32561FE0CF}"
- DTS:ExecutableType="Microsoft.Package"
- DTS:LastModifiedProductVersion="16.0.694.0"
- DTS:LocaleID="2052"
- DTS:ObjectName="派送渠道称重上网分位数"
- DTS:PackageType="5"
- DTS:VersionBuild="26"
- DTS:VersionGUID="{941F4C76-FC10-437E-9AE1-7E97850D3DB7}">
- <DTS:Property
- DTS:Name="PackageFormatVersion">8</DTS:Property>
- <DTS:ConnectionManagers>
- <DTS:ConnectionManager
- DTS:refId="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- DTS:CreationName="OLEDB"
- DTS:DTSID="{B4456A38-47A2-4662-B2DF-82A2E4E11628}"
- DTS:ObjectName="rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1">
- <DTS:ObjectData>
- <DTS:ConnectionManager
- DTS:ConnectRetryCount="1"
- DTS:ConnectRetryInterval="5"
- DTS:ConnectionString="Data Source=rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433;User ID=xyy;Initial Catalog=xyy_wms;Provider=SQLNCLI11.1;Persist Security Info=True;Auto Translate=False;Application Name=SSIS-Package1-{B4456A38-47A2-4662-B2DF-82A2E4E11628}rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1;">
- <DTS:Password
- DTS:Name="Password"
- Sensitive="1"
- Encrypted="1">AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAYaXc47IOuU6ltmljCrTt9wAAAAAIAAAARABUAFMAAAAQZgAAAAEAACAAAABYPcU39KZa+ot5ngGHTykipBlnYBCZ6n0ZvML9qSSsQAAAAAAOgAAAAAIAACAAAACfjM8Y/BAJqo0685r5XVeQHb4n6EWKZVSPK2bZRHeq1zAAAABufcQGxVtXMQnoTfxK0Dgp0GhXpiDN2IKvBq8sReJ9twsVTbvlBZQsmTRv54fBbd9AAAAA905pHbUehIAKIYttbcDHyZR5h653ETFi8VZX/jN5+mP9JStMnSCrOf6FnrEvp6shOdoj0vzBWf+bXZLaEXmZQQ</DTS:Password>
- </DTS:ConnectionManager>
- </DTS:ObjectData>
- </DTS:ConnectionManager>
- </DTS:ConnectionManagers>
- <DTS:Variables />
- <DTS:Executables>
- <DTS:Executable
- DTS:refId="Package\上网-签收分位数"
- DTS:CreationName="Microsoft.Pipeline"
- DTS:Description="数据流任务"
- DTS:DTSID="{3378BC28-E229-422B-A8BB-13E996319756}"
- DTS:ExecutableType="Microsoft.Pipeline"
- DTS:LocaleID="-1"
- DTS:ObjectName="上网-签收分位数"
- DTS:TaskContact="Performs high-performance data extraction, transformation and loading;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1">
- <DTS:Variables />
- <DTS:ObjectData>
- <pipeline
- version="1">
- <components>
- <component
- refId="Package\上网-签收分位数\95%上网签收分位数(提单)"
- componentClassID="Microsoft.OLEDBSource"
- contactInfo="OLE DB 源;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; 保留所有权利; http://www.microsoft.com/sql/support;7"
- description="OLE DB 源"
- name="95%上网签收分位数(提单)"
- usesDispositions="true"
- version="7">
- <properties>
- <property
- dataType="System.Int32"
- description="命令超时前等待的时间(秒)。值为 0,表示无限期等待。"
- name="CommandTimeout">0</property>
- <property
- dataType="System.String"
- description="指定用于打开行集的数据库对象的名称。"
- name="OpenRowset"></property>
- <property
- dataType="System.String"
- description="指定包含用于打开行集的数据库对象名的变量。"
- name="OpenRowsetVariable"></property>
- <property
- dataType="System.String"
- description="要执行的 SQL 命令。"
- name="SqlCommand"
- UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor, Microsoft.DataTransformationServices.Controls, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91">with t1 as(
- select
- PERCENT_RANK()
- over ( partition by a.LadingBillNumber,f.PublicName
- order by datediff(HOUR,d.onlinetime,d.signtime)/24.0) pr
- ,datediff(HOUR,d.onlinetime,d.signtime)/24.0 as r,
- a.LadingBillNumber,d.TrackingNumber,f.PublicName
- from
- Logistics_LadingBill(nolock)a join Logistics_Box(nolock)b on a.LadingBillNumber=b.LadingBillNumber and a.IsDeleted=0 and b.IsDelete=0
- join Logistics_BoxDetail(nolock)c on c.BoxId=b.Id
- join Logistics_Trace(nolock)d on d.OrderId=c.OrderId
- join Order_Order(nolock)e on e.id=d.OrderId
- join Logistics_Channel(nolock) f on f.id=e.ChannelId
- join Logistics_Channel(nolock)g on g.id=e.CreateOrderChannelId
- join Logistics_Public(nolock)h on h.Code=g.PublicCode
- where a.CreateTime>'2022-05-01'
- )
- select LadingBillNumber,PublicName,MIN(r)time from t1 where pr>=0.95
- group by LadingBillNumber,PublicName</property>
- <property
- dataType="System.String"
- description="包含要执行的 SQL 命令的变量。"
- name="SqlCommandVariable"></property>
- <property
- dataType="System.Int32"
- description="指定当数据源中没有代码页信息时使用的列代码页。"
- name="DefaultCodePage">936</property>
- <property
- dataType="System.Boolean"
- description="描述字符数据时,强制使用 DefaultCodePage 属性值。"
- name="AlwaysUseDefaultCodePage">false</property>
- <property
- dataType="System.Int32"
- description="指定用于访问数据库的模式。"
- name="AccessMode"
- typeConverter="AccessMode">2</property>
- <property
- dataType="System.String"
- description="SQL 命令中的参数与变量之间的映射。"
- name="ParameterMapping"></property>
- </properties>
- <connections>
- <connection
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Connections[OleDbConnection]"
- connectionManagerID="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- connectionManagerRefId="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- description="指定用于访问数据库的 OLE DB 运行时连接。"
- name="OleDbConnection" />
- </connections>
- <outputs>
- <output
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出]"
- name="OLE DB 源输出">
- <outputColumns>
- <outputColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]"
- dataType="wstr"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[LadingBillNumber]"
- length="50"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]"
- name="提单号"
- truncationRowDisposition="FailComponent" />
- <outputColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]"
- dataType="numeric"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[time]"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]"
- name="分位时间"
- precision="17"
- scale="6"
- truncationRowDisposition="FailComponent" />
- <outputColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]"
- dataType="wstr"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[PublicName]"
- length="64"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]"
- name="派送渠道名称"
- truncationRowDisposition="FailComponent" />
- </outputColumns>
- <externalMetadataColumns
- isUsed="True">
- <externalMetadataColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[LadingBillNumber]"
- dataType="wstr"
- length="50"
- name="LadingBillNumber" />
- <externalMetadataColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[time]"
- dataType="numeric"
- name="time"
- precision="17"
- scale="6" />
- <externalMetadataColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[PublicName]"
- dataType="wstr"
- length="64"
- name="PublicName" />
- </externalMetadataColumns>
- </output>
- <output
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出]"
- isErrorOut="true"
- name="OLE DB 源错误输出">
- <outputColumns>
- <outputColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[LadingBillNumber]"
- dataType="wstr"
- length="50"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[LadingBillNumber]"
- name="LadingBillNumber" />
- <outputColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[PublicName]"
- dataType="wstr"
- length="64"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[PublicName]"
- name="PublicName" />
- <outputColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[time]"
- dataType="numeric"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[time]"
- name="time"
- precision="17"
- scale="6" />
- <outputColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorCode]"
- dataType="i4"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorCode]"
- name="ErrorCode"
- specialFlags="1" />
- <outputColumn
- refId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorColumn]"
- dataType="i4"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorColumn]"
- name="ErrorColumn"
- specialFlags="2" />
- </outputColumns>
- <externalMetadataColumns />
- </output>
- </outputs>
- </component>
- <component
- refId="Package\上网-签收分位数\OLE DB 目标 1"
- componentClassID="Microsoft.OLEDBDestination"
- contactInfo="OLE DB 目标;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; 保留所有权利; http://www.microsoft.com/sql/support;4"
- description="OLE DB 目标"
- name="OLE DB 目标 1"
- usesDispositions="true"
- version="4">
- <properties>
- <property
- dataType="System.Int32"
- description="命令超时前等待的时间(秒)。值为 0,表示无限期等待。"
- name="CommandTimeout">0</property>
- <property
- dataType="System.String"
- description="指定用于打开行集的数据库对象的名称。"
- name="OpenRowset">[BaseETL_95P_Ladding_DeliveryChanne_Online]</property>
- <property
- dataType="System.String"
- description="指定包含用于打开行集的数据库对象名的变量。"
- name="OpenRowsetVariable"></property>
- <property
- dataType="System.String"
- description="要执行的 SQL 命令。"
- name="SqlCommand"
- UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor, Microsoft.DataTransformationServices.Controls, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"></property>
- <property
- dataType="System.Int32"
- description="指定当数据源中没有代码页信息时使用的列代码页。"
- name="DefaultCodePage">936</property>
- <property
- dataType="System.Boolean"
- description="描述字符数据时,强制使用 DefaultCodePage 属性值。"
- name="AlwaysUseDefaultCodePage">false</property>
- <property
- dataType="System.Int32"
- description="指定用于访问数据库的模式。"
- name="AccessMode"
- typeConverter="AccessMode">3</property>
- <property
- dataType="System.Boolean"
- description="指示是否将为标识列提供的值复制到目标。如果设置为 False,则将在目标中为标识列自动生成值。仅当启用了快速加载时适用。"
- name="FastLoadKeepIdentity">false</property>
- <property
- dataType="System.Boolean"
- description="指示对于包含 Null 值的列是否将 Null 值插入目标中。如果为 False,则对于包含 Null 值的列会将其默认值插入目标中。仅当启用了快速加载时适用。"
- name="FastLoadKeepNulls">false</property>
- <property
- dataType="System.String"
- description="指定将用于快速加载的选项。仅当启用了快速加载时适用。"
- name="FastLoadOptions">TABLOCK,CHECK_CONSTRAINTS</property>
- <property
- dataType="System.Int32"
- description="指定在插入数据期间何时发出提交命令。如果值为 0,则指定在数据插入结束时发出一个提交命令。仅当启用了快速加载时适用。"
- name="FastLoadMaxInsertCommitSize">2147483647</property>
- </properties>
- <connections>
- <connection
- refId="Package\上网-签收分位数\OLE DB 目标 1.Connections[OleDbConnection]"
- connectionManagerID="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- connectionManagerRefId="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- description="指定用于访问数据库的 OLE DB 运行时连接。"
- name="OleDbConnection" />
- </connections>
- <inputs>
- <input
- refId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入]"
- errorOrTruncationOperation="插入"
- errorRowDisposition="FailComponent"
- hasSideEffects="true"
- name="OLE DB 目标输入">
- <inputColumns>
- <inputColumn
- refId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入].Columns[提单号]"
- cachedDataType="wstr"
- cachedLength="50"
- cachedName="提单号"
- externalMetadataColumnId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入].ExternalColumns[提单号]"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]" />
- <inputColumn
- refId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入].Columns[分位时间]"
- cachedDataType="numeric"
- cachedName="分位时间"
- cachedPrecision="17"
- cachedScale="6"
- externalMetadataColumnId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入].ExternalColumns[分位时间]"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]" />
- <inputColumn
- refId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入].Columns[派送渠道名称]"
- cachedDataType="wstr"
- cachedLength="64"
- cachedName="派送渠道名称"
- externalMetadataColumnId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入].ExternalColumns[派送渠道名称]"
- lineageId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]" />
- </inputColumns>
- <externalMetadataColumns
- isUsed="True">
- <externalMetadataColumn
- refId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入].ExternalColumns[提单号]"
- dataType="wstr"
- length="50"
- name="提单号" />
- <externalMetadataColumn
- refId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入].ExternalColumns[分位时间]"
- dataType="numeric"
- name="分位时间"
- precision="17"
- scale="6" />
- <externalMetadataColumn
- refId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入].ExternalColumns[派送渠道名称]"
- dataType="wstr"
- length="64"
- name="派送渠道名称" />
- </externalMetadataColumns>
- </input>
- </inputs>
- <outputs>
- <output
- refId="Package\上网-签收分位数\OLE DB 目标 1.Outputs[OLE DB 目标错误输出]"
- exclusionGroup="1"
- isErrorOut="true"
- name="OLE DB 目标错误输出"
- synchronousInputId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入]">
- <outputColumns>
- <outputColumn
- refId="Package\上网-签收分位数\OLE DB 目标 1.Outputs[OLE DB 目标错误输出].Columns[ErrorCode]"
- dataType="i4"
- lineageId="Package\上网-签收分位数\OLE DB 目标 1.Outputs[OLE DB 目标错误输出].Columns[ErrorCode]"
- name="ErrorCode"
- specialFlags="1" />
- <outputColumn
- refId="Package\上网-签收分位数\OLE DB 目标 1.Outputs[OLE DB 目标错误输出].Columns[ErrorColumn]"
- dataType="i4"
- lineageId="Package\上网-签收分位数\OLE DB 目标 1.Outputs[OLE DB 目标错误输出].Columns[ErrorColumn]"
- name="ErrorColumn"
- specialFlags="2" />
- </outputColumns>
- <externalMetadataColumns />
- </output>
- </outputs>
- </component>
- </components>
- <paths>
- <path
- refId="Package\上网-签收分位数.Paths[OLE DB 源输出]"
- endId="Package\上网-签收分位数\OLE DB 目标 1.Inputs[OLE DB 目标输入]"
- name="OLE DB 源输出"
- startId="Package\上网-签收分位数\95%上网签收分位数(提单).Outputs[OLE DB 源输出]" />
- </paths>
- </pipeline>
- </DTS:ObjectData>
- </DTS:Executable>
- <DTS:Executable
- DTS:refId="Package\执行 SQL 任务"
- DTS:CreationName="Microsoft.ExecuteSQLTask"
- DTS:Description="执行 SQL 任务"
- DTS:DTSID="{CDAA4393-ABCD-41C5-AF63-CBD233D72E44}"
- DTS:ExecutableType="Microsoft.ExecuteSQLTask"
- DTS:LocaleID="-1"
- DTS:ObjectName="执行 SQL 任务"
- DTS:ThreadHint="0">
- <DTS:Variables />
- <DTS:ObjectData>
- <SQLTask:SqlTaskData
- SQLTask:Connection="{B4456A38-47A2-4662-B2DF-82A2E4E11628}"
- SQLTask:SqlStatementSource="Truncate table BaseETL_95P_Ladding_DeliveryChanne_Weight
Truncate table BaseETL_90P_Ladding_DeliveryChanne_Weight
Truncate table BaseETL_98P_Ladding_DeliveryChanne_Weight
Truncate table BaseETL_95P_Ladding_DeliveryChanne_Online" xmlns:SQLTask="www.microsoft.com/sqlserver/dts/tasks/sqltask" />
- </DTS:ObjectData>
- </DTS:Executable>
- <DTS:Executable
- DTS:refId="Package\称重-签收分位数"
- DTS:CreationName="Microsoft.Pipeline"
- DTS:Description="数据流任务"
- DTS:DTSID="{10098FED-4B52-4150-97C1-84E1934FAA72}"
- DTS:ExecutableType="Microsoft.Pipeline"
- DTS:LocaleID="-1"
- DTS:ObjectName="称重-签收分位数"
- DTS:TaskContact="Performs high-performance data extraction, transformation and loading;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1">
- <DTS:Variables />
- <DTS:ObjectData>
- <pipeline
- version="1">
- <components>
- <component
- refId="Package\称重-签收分位数\90%称重签收分位数(提单)"
- componentClassID="Microsoft.OLEDBSource"
- contactInfo="OLE DB 源;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; 保留所有权利; http://www.microsoft.com/sql/support;7"
- description="OLE DB 源"
- name="90%称重签收分位数(提单)"
- usesDispositions="true"
- version="7">
- <properties>
- <property
- dataType="System.Int32"
- description="命令超时前等待的时间(秒)。值为 0,表示无限期等待。"
- name="CommandTimeout">0</property>
- <property
- dataType="System.String"
- description="指定用于打开行集的数据库对象的名称。"
- name="OpenRowset"></property>
- <property
- dataType="System.String"
- description="指定包含用于打开行集的数据库对象名的变量。"
- name="OpenRowsetVariable"></property>
- <property
- dataType="System.String"
- description="要执行的 SQL 命令。"
- name="SqlCommand"
- UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor, Microsoft.DataTransformationServices.Controls, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91">with t1 as(
- select
- PERCENT_RANK()
- over ( partition by a.LadingBillNumber,f.PublicName
- order by datediff(HOUR,e.ReceiveTime,d.signtime)/24.0) pr
- ,datediff(HOUR,e.ReceiveTime,d.signtime)/24.0 as r,
- a.LadingBillNumber,d.TrackingNumber,f.PublicName
- from
- Logistics_LadingBill(nolock)a join Logistics_Box(nolock)b on a.LadingBillNumber=b.LadingBillNumber and a.IsDeleted=0 and b.IsDelete=0
- join Logistics_BoxDetail(nolock)c on c.BoxId=b.Id
- join Logistics_Trace(nolock)d on d.OrderId=c.OrderId
- join Order_Order(nolock)e on e.id=d.OrderId
- join Logistics_Channel(nolock) f on f.id=e.ChannelId
- join Logistics_Channel(nolock)g on g.id=e.CreateOrderChannelId
- join Logistics_Public(nolock)h on h.Code=g.PublicCode
- where a.CreateTime>'2022-05-01'
- )
- select LadingBillNumber,PublicName Name,MIN(r)time from t1 where pr>=0.90
- group by LadingBillNumber,PublicName</property>
- <property
- dataType="System.String"
- description="包含要执行的 SQL 命令的变量。"
- name="SqlCommandVariable"></property>
- <property
- dataType="System.Int32"
- description="指定当数据源中没有代码页信息时使用的列代码页。"
- name="DefaultCodePage">936</property>
- <property
- dataType="System.Boolean"
- description="描述字符数据时,强制使用 DefaultCodePage 属性值。"
- name="AlwaysUseDefaultCodePage">false</property>
- <property
- dataType="System.Int32"
- description="指定用于访问数据库的模式。"
- name="AccessMode"
- typeConverter="AccessMode">2</property>
- <property
- dataType="System.String"
- description="SQL 命令中的参数与变量之间的映射。"
- name="ParameterMapping"></property>
- </properties>
- <connections>
- <connection
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Connections[OleDbConnection]"
- connectionManagerID="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- connectionManagerRefId="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- description="指定用于访问数据库的 OLE DB 运行时连接。"
- name="OleDbConnection" />
- </connections>
- <outputs>
- <output
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出]"
- name="OLE DB 源输出">
- <outputColumns>
- <outputColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]"
- dataType="wstr"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[LadingBillNumber]"
- length="50"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]"
- name="提单号"
- truncationRowDisposition="FailComponent" />
- <outputColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]"
- dataType="numeric"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[time]"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]"
- name="分位时间"
- precision="17"
- scale="6"
- truncationRowDisposition="FailComponent" />
- <outputColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]"
- dataType="wstr"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[Name]"
- length="64"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]"
- name="派送渠道名称"
- truncationRowDisposition="FailComponent" />
- </outputColumns>
- <externalMetadataColumns
- isUsed="True">
- <externalMetadataColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[LadingBillNumber]"
- dataType="wstr"
- length="50"
- name="LadingBillNumber" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[time]"
- dataType="numeric"
- name="time"
- precision="17"
- scale="6" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[Name]"
- dataType="wstr"
- length="64"
- name="Name" />
- </externalMetadataColumns>
- </output>
- <output
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出]"
- isErrorOut="true"
- name="OLE DB 源错误输出">
- <outputColumns>
- <outputColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[LadingBillNumber]"
- dataType="wstr"
- length="50"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[LadingBillNumber]"
- name="LadingBillNumber" />
- <outputColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[Name]"
- dataType="wstr"
- length="64"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[Name]"
- name="Name" />
- <outputColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[time]"
- dataType="numeric"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[time]"
- name="time"
- precision="17"
- scale="6" />
- <outputColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorCode]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorCode]"
- name="ErrorCode"
- specialFlags="1" />
- <outputColumn
- refId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorColumn]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorColumn]"
- name="ErrorColumn"
- specialFlags="2" />
- </outputColumns>
- <externalMetadataColumns />
- </output>
- </outputs>
- </component>
- <component
- refId="Package\称重-签收分位数\90称重签收分位数"
- componentClassID="Microsoft.OLEDBDestination"
- contactInfo="OLE DB 目标;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; 保留所有权利; http://www.microsoft.com/sql/support;4"
- description="OLE DB 目标"
- name="90称重签收分位数"
- usesDispositions="true"
- version="4">
- <properties>
- <property
- dataType="System.Int32"
- description="命令超时前等待的时间(秒)。值为 0,表示无限期等待。"
- name="CommandTimeout">0</property>
- <property
- dataType="System.String"
- description="指定用于打开行集的数据库对象的名称。"
- name="OpenRowset">[dbo].[BaseETL_90P_Ladding_DeliveryChanne_Weight]</property>
- <property
- dataType="System.String"
- description="指定包含用于打开行集的数据库对象名的变量。"
- name="OpenRowsetVariable"></property>
- <property
- dataType="System.String"
- description="要执行的 SQL 命令。"
- name="SqlCommand"
- UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor, Microsoft.DataTransformationServices.Controls, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"></property>
- <property
- dataType="System.Int32"
- description="指定当数据源中没有代码页信息时使用的列代码页。"
- name="DefaultCodePage">936</property>
- <property
- dataType="System.Boolean"
- description="描述字符数据时,强制使用 DefaultCodePage 属性值。"
- name="AlwaysUseDefaultCodePage">false</property>
- <property
- dataType="System.Int32"
- description="指定用于访问数据库的模式。"
- name="AccessMode"
- typeConverter="AccessMode">3</property>
- <property
- dataType="System.Boolean"
- description="指示是否将为标识列提供的值复制到目标。如果设置为 False,则将在目标中为标识列自动生成值。仅当启用了快速加载时适用。"
- name="FastLoadKeepIdentity">false</property>
- <property
- dataType="System.Boolean"
- description="指示对于包含 Null 值的列是否将 Null 值插入目标中。如果为 False,则对于包含 Null 值的列会将其默认值插入目标中。仅当启用了快速加载时适用。"
- name="FastLoadKeepNulls">false</property>
- <property
- dataType="System.String"
- description="指定将用于快速加载的选项。仅当启用了快速加载时适用。"
- name="FastLoadOptions">TABLOCK,CHECK_CONSTRAINTS</property>
- <property
- dataType="System.Int32"
- description="指定在插入数据期间何时发出提交命令。如果值为 0,则指定在数据插入结束时发出一个提交命令。仅当启用了快速加载时适用。"
- name="FastLoadMaxInsertCommitSize">2147483647</property>
- </properties>
- <connections>
- <connection
- refId="Package\称重-签收分位数\90称重签收分位数.Connections[OleDbConnection]"
- connectionManagerID="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- connectionManagerRefId="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- description="指定用于访问数据库的 OLE DB 运行时连接。"
- name="OleDbConnection" />
- </connections>
- <inputs>
- <input
- refId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入]"
- errorOrTruncationOperation="插入"
- errorRowDisposition="FailComponent"
- hasSideEffects="true"
- name="OLE DB 目标输入">
- <inputColumns>
- <inputColumn
- refId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入].Columns[提单号]"
- cachedDataType="wstr"
- cachedLength="50"
- cachedName="提单号"
- externalMetadataColumnId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[提单号]"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]" />
- <inputColumn
- refId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入].Columns[分位时间]"
- cachedDataType="numeric"
- cachedName="分位时间"
- cachedPrecision="17"
- cachedScale="6"
- externalMetadataColumnId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[分位时间]"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]" />
- <inputColumn
- refId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入].Columns[派送渠道名称]"
- cachedDataType="wstr"
- cachedLength="64"
- cachedName="派送渠道名称"
- externalMetadataColumnId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[派送渠道名称]"
- lineageId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]" />
- </inputColumns>
- <externalMetadataColumns
- isUsed="True">
- <externalMetadataColumn
- refId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[提单号]"
- dataType="wstr"
- length="50"
- name="提单号" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[分位时间]"
- dataType="numeric"
- name="分位时间"
- precision="17"
- scale="6" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[派送渠道名称]"
- dataType="wstr"
- length="64"
- name="派送渠道名称" />
- </externalMetadataColumns>
- </input>
- </inputs>
- <outputs>
- <output
- refId="Package\称重-签收分位数\90称重签收分位数.Outputs[OLE DB 目标错误输出]"
- exclusionGroup="1"
- isErrorOut="true"
- name="OLE DB 目标错误输出"
- synchronousInputId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入]">
- <outputColumns>
- <outputColumn
- refId="Package\称重-签收分位数\90称重签收分位数.Outputs[OLE DB 目标错误输出].Columns[ErrorCode]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\90称重签收分位数.Outputs[OLE DB 目标错误输出].Columns[ErrorCode]"
- name="ErrorCode"
- specialFlags="1" />
- <outputColumn
- refId="Package\称重-签收分位数\90称重签收分位数.Outputs[OLE DB 目标错误输出].Columns[ErrorColumn]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\90称重签收分位数.Outputs[OLE DB 目标错误输出].Columns[ErrorColumn]"
- name="ErrorColumn"
- specialFlags="2" />
- </outputColumns>
- <externalMetadataColumns />
- </output>
- </outputs>
- </component>
- <component
- refId="Package\称重-签收分位数\95%称重签收分位数(提单)"
- componentClassID="Microsoft.OLEDBSource"
- contactInfo="OLE DB 源;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; 保留所有权利; http://www.microsoft.com/sql/support;7"
- description="OLE DB 源"
- name="95%称重签收分位数(提单)"
- usesDispositions="true"
- version="7">
- <properties>
- <property
- dataType="System.Int32"
- description="命令超时前等待的时间(秒)。值为 0,表示无限期等待。"
- name="CommandTimeout">0</property>
- <property
- dataType="System.String"
- description="指定用于打开行集的数据库对象的名称。"
- name="OpenRowset"></property>
- <property
- dataType="System.String"
- description="指定包含用于打开行集的数据库对象名的变量。"
- name="OpenRowsetVariable"></property>
- <property
- dataType="System.String"
- description="要执行的 SQL 命令。"
- name="SqlCommand"
- UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor, Microsoft.DataTransformationServices.Controls, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91">with t1 as(
- select
- PERCENT_RANK()
- over ( partition by a.LadingBillNumber,f.PublicName
- order by datediff(HOUR,e.ReceiveTime,d.signtime)/24.0) pr
- ,datediff(HOUR,e.ReceiveTime,d.signtime)/24.0 as r,
- a.LadingBillNumber,d.TrackingNumber,f.PublicName
- from
- Logistics_LadingBill(nolock)a join Logistics_Box(nolock)b on a.LadingBillNumber=b.LadingBillNumber and a.IsDeleted=0 and b.IsDelete=0
- join Logistics_BoxDetail(nolock)c on c.BoxId=b.Id
- join Logistics_Trace(nolock)d on d.OrderId=c.OrderId
- join Order_Order(nolock)e on e.id=d.OrderId
- join Logistics_Channel(nolock) f on f.id=e.ChannelId
- join Logistics_Channel(nolock)g on g.id=e.CreateOrderChannelId
- join Logistics_Public(nolock)h on h.Code=g.PublicCode
- where a.CreateTime>'2022-05-01'
- )
- select LadingBillNumber,PublicName Name,MIN(r)time from t1 where pr>=0.95
- group by LadingBillNumber,PublicName</property>
- <property
- dataType="System.String"
- description="包含要执行的 SQL 命令的变量。"
- name="SqlCommandVariable"></property>
- <property
- dataType="System.Int32"
- description="指定当数据源中没有代码页信息时使用的列代码页。"
- name="DefaultCodePage">936</property>
- <property
- dataType="System.Boolean"
- description="描述字符数据时,强制使用 DefaultCodePage 属性值。"
- name="AlwaysUseDefaultCodePage">false</property>
- <property
- dataType="System.Int32"
- description="指定用于访问数据库的模式。"
- name="AccessMode"
- typeConverter="AccessMode">2</property>
- <property
- dataType="System.String"
- description="SQL 命令中的参数与变量之间的映射。"
- name="ParameterMapping"></property>
- </properties>
- <connections>
- <connection
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Connections[OleDbConnection]"
- connectionManagerID="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- connectionManagerRefId="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- description="指定用于访问数据库的 OLE DB 运行时连接。"
- name="OleDbConnection" />
- </connections>
- <outputs>
- <output
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出]"
- name="OLE DB 源输出">
- <outputColumns>
- <outputColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]"
- dataType="wstr"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[LadingBillNumber]"
- length="50"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]"
- name="提单号"
- truncationRowDisposition="FailComponent" />
- <outputColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]"
- dataType="numeric"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[time]"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]"
- name="分位时间"
- precision="17"
- scale="6"
- truncationRowDisposition="FailComponent" />
- <outputColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]"
- dataType="wstr"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[Name]"
- length="64"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]"
- name="派送渠道名称"
- truncationRowDisposition="FailComponent" />
- </outputColumns>
- <externalMetadataColumns
- isUsed="True">
- <externalMetadataColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[LadingBillNumber]"
- dataType="wstr"
- length="50"
- name="LadingBillNumber" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[time]"
- dataType="numeric"
- name="time"
- precision="17"
- scale="6" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[Name]"
- dataType="wstr"
- length="64"
- name="Name" />
- </externalMetadataColumns>
- </output>
- <output
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出]"
- isErrorOut="true"
- name="OLE DB 源错误输出">
- <outputColumns>
- <outputColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[LadingBillNumber]"
- dataType="wstr"
- length="50"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[LadingBillNumber]"
- name="LadingBillNumber" />
- <outputColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[Name]"
- dataType="wstr"
- length="64"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[Name]"
- name="Name" />
- <outputColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[time]"
- dataType="numeric"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[time]"
- name="time"
- precision="17"
- scale="6" />
- <outputColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorCode]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorCode]"
- name="ErrorCode"
- specialFlags="1" />
- <outputColumn
- refId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorColumn]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorColumn]"
- name="ErrorColumn"
- specialFlags="2" />
- </outputColumns>
- <externalMetadataColumns />
- </output>
- </outputs>
- </component>
- <component
- refId="Package\称重-签收分位数\98%称重签收分位数(提单)"
- componentClassID="Microsoft.OLEDBSource"
- contactInfo="OLE DB 源;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; 保留所有权利; http://www.microsoft.com/sql/support;7"
- description="OLE DB 源"
- name="98%称重签收分位数(提单)"
- usesDispositions="true"
- version="7">
- <properties>
- <property
- dataType="System.Int32"
- description="命令超时前等待的时间(秒)。值为 0,表示无限期等待。"
- name="CommandTimeout">0</property>
- <property
- dataType="System.String"
- description="指定用于打开行集的数据库对象的名称。"
- name="OpenRowset"></property>
- <property
- dataType="System.String"
- description="指定包含用于打开行集的数据库对象名的变量。"
- name="OpenRowsetVariable"></property>
- <property
- dataType="System.String"
- description="要执行的 SQL 命令。"
- name="SqlCommand"
- UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor, Microsoft.DataTransformationServices.Controls, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91">with t1 as(
- select
- PERCENT_RANK()
- over ( partition by a.LadingBillNumber,f.PublicName
- order by datediff(HOUR,e.ReceiveTime,d.signtime)/24.0) pr
- ,datediff(HOUR,e.ReceiveTime,d.signtime)/24.0 as r,
- a.LadingBillNumber,d.TrackingNumber,f.PublicName
- from
- Logistics_LadingBill(nolock)a join Logistics_Box(nolock)b on a.LadingBillNumber=b.LadingBillNumber and a.IsDeleted=0 and b.IsDelete=0
- join Logistics_BoxDetail(nolock)c on c.BoxId=b.Id
- join Logistics_Trace(nolock)d on d.OrderId=c.OrderId
- join Order_Order(nolock)e on e.id=d.OrderId
- join Logistics_Channel(nolock) f on f.id=e.ChannelId
- join Logistics_Channel(nolock)g on g.id=e.CreateOrderChannelId
- join Logistics_Public(nolock)h on h.Code=g.PublicCode
- where a.CreateTime>'2022-05-01'
- )
- select LadingBillNumber,PublicName Name,MIN(r)time from t1 where pr>=0.98
- group by LadingBillNumber,PublicName</property>
- <property
- dataType="System.String"
- description="包含要执行的 SQL 命令的变量。"
- name="SqlCommandVariable"></property>
- <property
- dataType="System.Int32"
- description="指定当数据源中没有代码页信息时使用的列代码页。"
- name="DefaultCodePage">936</property>
- <property
- dataType="System.Boolean"
- description="描述字符数据时,强制使用 DefaultCodePage 属性值。"
- name="AlwaysUseDefaultCodePage">false</property>
- <property
- dataType="System.Int32"
- description="指定用于访问数据库的模式。"
- name="AccessMode"
- typeConverter="AccessMode">2</property>
- <property
- dataType="System.String"
- description="SQL 命令中的参数与变量之间的映射。"
- name="ParameterMapping"></property>
- </properties>
- <connections>
- <connection
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Connections[OleDbConnection]"
- connectionManagerID="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- connectionManagerRefId="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- description="指定用于访问数据库的 OLE DB 运行时连接。"
- name="OleDbConnection" />
- </connections>
- <outputs>
- <output
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出]"
- name="OLE DB 源输出">
- <outputColumns>
- <outputColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]"
- dataType="wstr"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[LadingBillNumber]"
- length="50"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]"
- name="提单号"
- truncationRowDisposition="FailComponent" />
- <outputColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]"
- dataType="numeric"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[time]"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]"
- name="分位时间"
- precision="17"
- scale="6"
- truncationRowDisposition="FailComponent" />
- <outputColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]"
- dataType="wstr"
- errorOrTruncationOperation="转换"
- errorRowDisposition="FailComponent"
- externalMetadataColumnId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[Name]"
- length="64"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]"
- name="派送渠道名称"
- truncationRowDisposition="FailComponent" />
- </outputColumns>
- <externalMetadataColumns
- isUsed="True">
- <externalMetadataColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[LadingBillNumber]"
- dataType="wstr"
- length="50"
- name="LadingBillNumber" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[time]"
- dataType="numeric"
- name="time"
- precision="17"
- scale="6" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].ExternalColumns[Name]"
- dataType="wstr"
- length="64"
- name="Name" />
- </externalMetadataColumns>
- </output>
- <output
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出]"
- isErrorOut="true"
- name="OLE DB 源错误输出">
- <outputColumns>
- <outputColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[LadingBillNumber]"
- dataType="wstr"
- length="50"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[LadingBillNumber]"
- name="LadingBillNumber" />
- <outputColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[Name]"
- dataType="wstr"
- length="64"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[Name]"
- name="Name" />
- <outputColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[time]"
- dataType="numeric"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[time]"
- name="time"
- precision="17"
- scale="6" />
- <outputColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorCode]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorCode]"
- name="ErrorCode"
- specialFlags="1" />
- <outputColumn
- refId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorColumn]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源错误输出].Columns[ErrorColumn]"
- name="ErrorColumn"
- specialFlags="2" />
- </outputColumns>
- <externalMetadataColumns />
- </output>
- </outputs>
- </component>
- <component
- refId="Package\称重-签收分位数\98称重签收分位数"
- componentClassID="Microsoft.OLEDBDestination"
- contactInfo="OLE DB 目标;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; 保留所有权利; http://www.microsoft.com/sql/support;4"
- description="OLE DB 目标"
- name="98称重签收分位数"
- usesDispositions="true"
- version="4">
- <properties>
- <property
- dataType="System.Int32"
- description="命令超时前等待的时间(秒)。值为 0,表示无限期等待。"
- name="CommandTimeout">0</property>
- <property
- dataType="System.String"
- description="指定用于打开行集的数据库对象的名称。"
- name="OpenRowset">[dbo].[BaseETL_98P_Ladding_DeliveryChanne_Weight]</property>
- <property
- dataType="System.String"
- description="指定包含用于打开行集的数据库对象名的变量。"
- name="OpenRowsetVariable"></property>
- <property
- dataType="System.String"
- description="要执行的 SQL 命令。"
- name="SqlCommand"
- UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor, Microsoft.DataTransformationServices.Controls, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"></property>
- <property
- dataType="System.Int32"
- description="指定当数据源中没有代码页信息时使用的列代码页。"
- name="DefaultCodePage">936</property>
- <property
- dataType="System.Boolean"
- description="描述字符数据时,强制使用 DefaultCodePage 属性值。"
- name="AlwaysUseDefaultCodePage">false</property>
- <property
- dataType="System.Int32"
- description="指定用于访问数据库的模式。"
- name="AccessMode"
- typeConverter="AccessMode">3</property>
- <property
- dataType="System.Boolean"
- description="指示是否将为标识列提供的值复制到目标。如果设置为 False,则将在目标中为标识列自动生成值。仅当启用了快速加载时适用。"
- name="FastLoadKeepIdentity">false</property>
- <property
- dataType="System.Boolean"
- description="指示对于包含 Null 值的列是否将 Null 值插入目标中。如果为 False,则对于包含 Null 值的列会将其默认值插入目标中。仅当启用了快速加载时适用。"
- name="FastLoadKeepNulls">false</property>
- <property
- dataType="System.String"
- description="指定将用于快速加载的选项。仅当启用了快速加载时适用。"
- name="FastLoadOptions">TABLOCK,CHECK_CONSTRAINTS</property>
- <property
- dataType="System.Int32"
- description="指定在插入数据期间何时发出提交命令。如果值为 0,则指定在数据插入结束时发出一个提交命令。仅当启用了快速加载时适用。"
- name="FastLoadMaxInsertCommitSize">2147483647</property>
- </properties>
- <connections>
- <connection
- refId="Package\称重-签收分位数\98称重签收分位数.Connections[OleDbConnection]"
- connectionManagerID="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- connectionManagerRefId="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- description="指定用于访问数据库的 OLE DB 运行时连接。"
- name="OleDbConnection" />
- </connections>
- <inputs>
- <input
- refId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入]"
- errorOrTruncationOperation="插入"
- errorRowDisposition="FailComponent"
- hasSideEffects="true"
- name="OLE DB 目标输入">
- <inputColumns>
- <inputColumn
- refId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入].Columns[提单号]"
- cachedDataType="wstr"
- cachedLength="50"
- cachedName="提单号"
- externalMetadataColumnId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[提单号]"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]" />
- <inputColumn
- refId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入].Columns[分位时间]"
- cachedDataType="numeric"
- cachedName="分位时间"
- cachedPrecision="17"
- cachedScale="6"
- externalMetadataColumnId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[分位时间]"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]" />
- <inputColumn
- refId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入].Columns[派送渠道名称]"
- cachedDataType="wstr"
- cachedLength="64"
- cachedName="派送渠道名称"
- externalMetadataColumnId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[派送渠道名称]"
- lineageId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]" />
- </inputColumns>
- <externalMetadataColumns
- isUsed="True">
- <externalMetadataColumn
- refId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[提单号]"
- dataType="wstr"
- length="50"
- name="提单号" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[分位时间]"
- dataType="numeric"
- name="分位时间"
- precision="17"
- scale="6" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入].ExternalColumns[派送渠道名称]"
- dataType="wstr"
- length="64"
- name="派送渠道名称" />
- </externalMetadataColumns>
- </input>
- </inputs>
- <outputs>
- <output
- refId="Package\称重-签收分位数\98称重签收分位数.Outputs[OLE DB 目标错误输出]"
- exclusionGroup="1"
- isErrorOut="true"
- name="OLE DB 目标错误输出"
- synchronousInputId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入]">
- <outputColumns>
- <outputColumn
- refId="Package\称重-签收分位数\98称重签收分位数.Outputs[OLE DB 目标错误输出].Columns[ErrorCode]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\98称重签收分位数.Outputs[OLE DB 目标错误输出].Columns[ErrorCode]"
- name="ErrorCode"
- specialFlags="1" />
- <outputColumn
- refId="Package\称重-签收分位数\98称重签收分位数.Outputs[OLE DB 目标错误输出].Columns[ErrorColumn]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\98称重签收分位数.Outputs[OLE DB 目标错误输出].Columns[ErrorColumn]"
- name="ErrorColumn"
- specialFlags="2" />
- </outputColumns>
- <externalMetadataColumns />
- </output>
- </outputs>
- </component>
- <component
- refId="Package\称重-签收分位数\OLE DB 目标 1 1"
- componentClassID="Microsoft.OLEDBDestination"
- contactInfo="OLE DB 目标;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; 保留所有权利; http://www.microsoft.com/sql/support;4"
- description="OLE DB 目标"
- name="OLE DB 目标 1 1"
- usesDispositions="true"
- version="4">
- <properties>
- <property
- dataType="System.Int32"
- description="命令超时前等待的时间(秒)。值为 0,表示无限期等待。"
- name="CommandTimeout">0</property>
- <property
- dataType="System.String"
- description="指定用于打开行集的数据库对象的名称。"
- name="OpenRowset">[BaseETL_95P_Ladding_DeliveryChanne_Weight]</property>
- <property
- dataType="System.String"
- description="指定包含用于打开行集的数据库对象名的变量。"
- name="OpenRowsetVariable"></property>
- <property
- dataType="System.String"
- description="要执行的 SQL 命令。"
- name="SqlCommand"
- UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor, Microsoft.DataTransformationServices.Controls, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"></property>
- <property
- dataType="System.Int32"
- description="指定当数据源中没有代码页信息时使用的列代码页。"
- name="DefaultCodePage">936</property>
- <property
- dataType="System.Boolean"
- description="描述字符数据时,强制使用 DefaultCodePage 属性值。"
- name="AlwaysUseDefaultCodePage">false</property>
- <property
- dataType="System.Int32"
- description="指定用于访问数据库的模式。"
- name="AccessMode"
- typeConverter="AccessMode">3</property>
- <property
- dataType="System.Boolean"
- description="指示是否将为标识列提供的值复制到目标。如果设置为 False,则将在目标中为标识列自动生成值。仅当启用了快速加载时适用。"
- name="FastLoadKeepIdentity">false</property>
- <property
- dataType="System.Boolean"
- description="指示对于包含 Null 值的列是否将 Null 值插入目标中。如果为 False,则对于包含 Null 值的列会将其默认值插入目标中。仅当启用了快速加载时适用。"
- name="FastLoadKeepNulls">false</property>
- <property
- dataType="System.String"
- description="指定将用于快速加载的选项。仅当启用了快速加载时适用。"
- name="FastLoadOptions">TABLOCK,CHECK_CONSTRAINTS</property>
- <property
- dataType="System.Int32"
- description="指定在插入数据期间何时发出提交命令。如果值为 0,则指定在数据插入结束时发出一个提交命令。仅当启用了快速加载时适用。"
- name="FastLoadMaxInsertCommitSize">2147483647</property>
- </properties>
- <connections>
- <connection
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Connections[OleDbConnection]"
- connectionManagerID="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- connectionManagerRefId="Package.ConnectionManagers[rm-wz96o72qd45w3d6mvyo.sqlserver.rds.aliyuncs.com,3433.xyy_wms.xyy1]"
- description="指定用于访问数据库的 OLE DB 运行时连接。"
- name="OleDbConnection" />
- </connections>
- <inputs>
- <input
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入]"
- errorOrTruncationOperation="插入"
- errorRowDisposition="FailComponent"
- hasSideEffects="true"
- name="OLE DB 目标输入">
- <inputColumns>
- <inputColumn
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入].Columns[提单号]"
- cachedDataType="wstr"
- cachedLength="50"
- cachedName="提单号"
- externalMetadataColumnId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入].ExternalColumns[提单号]"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[提单号]" />
- <inputColumn
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入].Columns[分位时间]"
- cachedDataType="numeric"
- cachedName="分位时间"
- cachedPrecision="17"
- cachedScale="6"
- externalMetadataColumnId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入].ExternalColumns[分位时间]"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[分位时间]" />
- <inputColumn
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入].Columns[派送渠道名称]"
- cachedDataType="wstr"
- cachedLength="64"
- cachedName="派送渠道名称"
- externalMetadataColumnId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入].ExternalColumns[派送渠道名称]"
- lineageId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出].Columns[派送渠道名称]" />
- </inputColumns>
- <externalMetadataColumns
- isUsed="True">
- <externalMetadataColumn
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入].ExternalColumns[提单号]"
- dataType="wstr"
- length="50"
- name="提单号" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入].ExternalColumns[分位时间]"
- dataType="numeric"
- name="分位时间"
- precision="17"
- scale="6" />
- <externalMetadataColumn
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入].ExternalColumns[派送渠道名称]"
- dataType="wstr"
- length="64"
- name="派送渠道名称" />
- </externalMetadataColumns>
- </input>
- </inputs>
- <outputs>
- <output
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Outputs[OLE DB 目标错误输出]"
- exclusionGroup="1"
- isErrorOut="true"
- name="OLE DB 目标错误输出"
- synchronousInputId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入]">
- <outputColumns>
- <outputColumn
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Outputs[OLE DB 目标错误输出].Columns[ErrorCode]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\OLE DB 目标 1 1.Outputs[OLE DB 目标错误输出].Columns[ErrorCode]"
- name="ErrorCode"
- specialFlags="1" />
- <outputColumn
- refId="Package\称重-签收分位数\OLE DB 目标 1 1.Outputs[OLE DB 目标错误输出].Columns[ErrorColumn]"
- dataType="i4"
- lineageId="Package\称重-签收分位数\OLE DB 目标 1 1.Outputs[OLE DB 目标错误输出].Columns[ErrorColumn]"
- name="ErrorColumn"
- specialFlags="2" />
- </outputColumns>
- <externalMetadataColumns />
- </output>
- </outputs>
- </component>
- </components>
- <paths>
- <path
- refId="Package\称重-签收分位数.Paths[OLE DB 源输出]"
- endId="Package\称重-签收分位数\OLE DB 目标 1 1.Inputs[OLE DB 目标输入]"
- name="OLE DB 源输出"
- startId="Package\称重-签收分位数\95%称重签收分位数(提单).Outputs[OLE DB 源输出]" />
- <path
- refId="Package\称重-签收分位数.Paths[OLE DB 源输出1]"
- endId="Package\称重-签收分位数\90称重签收分位数.Inputs[OLE DB 目标输入]"
- name="OLE DB 源输出"
- startId="Package\称重-签收分位数\90%称重签收分位数(提单).Outputs[OLE DB 源输出]" />
- <path
- refId="Package\称重-签收分位数.Paths[OLE DB 源输出2]"
- endId="Package\称重-签收分位数\98称重签收分位数.Inputs[OLE DB 目标输入]"
- name="OLE DB 源输出"
- startId="Package\称重-签收分位数\98%称重签收分位数(提单).Outputs[OLE DB 源输出]" />
- </paths>
- </pipeline>
- </DTS:ObjectData>
- </DTS:Executable>
- </DTS:Executables>
- <DTS:PrecedenceConstraints>
- <DTS:PrecedenceConstraint
- DTS:refId="Package.PrecedenceConstraints[Constraint]"
- DTS:CreationName=""
- DTS:DTSID="{7486B693-64FB-481F-9DBD-FD486FC3A8B6}"
- DTS:From="Package\称重-签收分位数"
- DTS:LogicalAnd="True"
- DTS:ObjectName="Constraint"
- DTS:To="Package\上网-签收分位数" />
- <DTS:PrecedenceConstraint
- DTS:refId="Package.PrecedenceConstraints[Constraint 1]"
- DTS:CreationName=""
- DTS:DTSID="{565B2EE5-3B20-4E29-B659-EC4C37FFCE38}"
- DTS:From="Package\执行 SQL 任务"
- DTS:LogicalAnd="True"
- DTS:ObjectName="Constraint 1"
- DTS:To="Package\称重-签收分位数" />
- </DTS:PrecedenceConstraints>
- <DTS:DesignTimeProperties><![CDATA[<?xml version="1.0"?>
- <!--This CDATA section contains the layout information of the package. The section includes information such as (x,y) coordinates, width, and height.-->
- <!--If you manually edit this section and make a mistake, you can delete it. -->
- <!--The package will still be able to load normally but the previous layout information will be lost and the designer will automatically re-arrange the elements on the design surface.-->
- <Objects
- Version="8">
- <!--Each node below will contain properties that do not affect runtime behavior.-->
- <Package
- design-time-name="Package">
- <LayoutInfo>
- <GraphLayout
- Capacity="8" xmlns="clr-namespace:Microsoft.SqlServer.IntegrationServices.Designer.Model.Serialization;assembly=Microsoft.SqlServer.IntegrationServices.Graph" xmlns:mssgle="clr-namespace:Microsoft.SqlServer.Graph.LayoutEngine;assembly=Microsoft.SqlServer.Graph" xmlns:assembly="http://schemas.microsoft.com/winfx/2006/xaml">
- <NodeLayout
- Size="168.8,41.6"
- Id="Package\称重-签收分位数"
- TopLeft="238.333323862818,148.57142098096" />
- <NodeLayout
- Size="168.8,41.6"
- Id="Package\上网-签收分位数"
- TopLeft="237.499990562598,262.785700860073" />
- <NodeLayout
- Size="156.8,41.6"
- Id="Package\执行 SQL 任务"
- TopLeft="234.16665736172,48.285711818812" />
- <EdgeLayout
- Id="Package.PrecedenceConstraints[Constraint]"
- TopLeft="322.416657212708,190.57142098096">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="0,72.214279879113"
- Start="0,0"
- End="0,64.714279879113">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,64.714279879113" />
- </mssgle:SegmentCollection>
- </mssgle:Curve.Segments>
- </mssgle:Curve>
- </EdgeLayout.Curve>
- <EdgeLayout.Labels>
- <EdgeLabelCollection />
- </EdgeLayout.Labels>
- </EdgeLayout>
- <EdgeLayout
- Id="Package.PrecedenceConstraints[Constraint 1]"
- TopLeft="312.66665736172,90.285711818812">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="10.1666665010978,58.285709162148"
- Start="0,0"
- End="10.1666665010978,50.785709162148">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,25.142854581074" />
- <mssgle:CubicBezierSegment
- Point1="0,25.142854581074"
- Point2="0,29.142854581074"
- Point3="4,29.142854581074" />
- <mssgle:LineSegment
- End="6.16666650109778,29.142854581074" />
- <mssgle:CubicBezierSegment
- Point1="6.16666650109778,29.142854581074"
- Point2="10.1666665010978,29.142854581074"
- Point3="10.1666665010978,33.142854581074" />
- <mssgle:LineSegment
- End="10.1666665010978,50.785709162148" />
- </mssgle:SegmentCollection>
- </mssgle:Curve.Segments>
- </mssgle:Curve>
- </EdgeLayout.Curve>
- <EdgeLayout.Labels>
- <EdgeLabelCollection />
- </EdgeLayout.Labels>
- </EdgeLayout>
- </GraphLayout>
- </LayoutInfo>
- </Package>
- <TaskHost
- design-time-name="Package\称重-签收分位数">
- <LayoutInfo>
- <GraphLayout
- Capacity="16" xmlns="clr-namespace:Microsoft.SqlServer.IntegrationServices.Designer.Model.Serialization;assembly=Microsoft.SqlServer.IntegrationServices.Graph" xmlns:mssgle="clr-namespace:Microsoft.SqlServer.Graph.LayoutEngine;assembly=Microsoft.SqlServer.Graph" xmlns:assembly="http://schemas.microsoft.com/winfx/2006/xaml">
- <NodeLayout
- Size="168.8,89.6"
- Id="Package\称重-签收分位数\95%称重签收分位数(提单)"
- TopLeft="323.458331502767,60.7222222030899" />
- <NodeLayout
- Size="174.4,41.6"
- Id="Package\称重-签收分位数\98称重签收分位数"
- TopLeft="343.749994877726,469.444432008414" />
- <NodeLayout
- Size="174.4,41.6"
- Id="Package\称重-签收分位数\90称重签收分位数"
- TopLeft="694.374989653006,233.277771598027" />
- <NodeLayout
- Size="216.8,41.6"
- Id="Package\称重-签收分位数\98%称重签收分位数(提单)"
- TopLeft="355.624994700775,344.499990873867" />
- <NodeLayout
- Size="216.8,41.6"
- Id="Package\称重-签收分位数\90%称重签收分位数(提单)"
- TopLeft="685.624989783391,64.999998278088" />
- <NodeLayout
- Size="156.8,41.6"
- Id="Package\称重-签收分位数\OLE DB 目标 1 1"
- TopLeft="368.666663024161,241.999990701676" />
- <EdgeLayout
- Id="Package\称重-签收分位数.Paths[OLE DB 源输出2]"
- TopLeft="464.024994700775,386.099990873867">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="-33.0749998230486,83.344441134547"
- Start="0,0"
- End="-33.0749998230486,75.844441134547">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,37.6722205672735" />
- <mssgle:CubicBezierSegment
- Point1="0,37.6722205672735"
- Point2="0,41.6722205672735"
- Point3="-4,41.6722205672735" />
- <mssgle:LineSegment
- End="-29.0749998230486,41.6722205672735" />
- <mssgle:CubicBezierSegment
- Point1="-29.0749998230486,41.6722205672735"
- Point2="-33.0749998230486,41.6722205672735"
- Point3="-33.0749998230486,45.6722205672735" />
- <mssgle:LineSegment
- End="-33.0749998230486,75.844441134547" />
- </mssgle:SegmentCollection>
- </mssgle:Curve.Segments>
- </mssgle:Curve>
- </EdgeLayout.Curve>
- <EdgeLayout.Labels>
- <EdgeLabelCollection />
- </EdgeLayout.Labels>
- </EdgeLayout>
- <EdgeLayout
- Id="Package\称重-签收分位数.Paths[OLE DB 源输出1]"
- TopLeft="794.024989783391,106.599998278088">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="-12.4500001303852,126.677773319939"
- Start="0,0"
- End="-12.4500001303852,119.177773319939">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,59.3388866599696" />
- <mssgle:CubicBezierSegment
- Point1="0,59.3388866599696"
- Point2="0,63.3388866599696"
- Point3="-4,63.3388866599696" />
- <mssgle:LineSegment
- End="-8.45000013038521,63.3388866599696" />
- <mssgle:CubicBezierSegment
- Point1="-8.45000013038521,63.3388866599696"
- Point2="-12.4500001303852,63.3388866599696"
- Point3="-12.4500001303852,67.3388866599696" />
- <mssgle:LineSegment
- End="-12.4500001303852,119.177773319939" />
- </mssgle:SegmentCollection>
- </mssgle:Curve.Segments>
- </mssgle:Curve>
- </EdgeLayout.Curve>
- <EdgeLayout.Labels>
- <EdgeLabelCollection />
- </EdgeLayout.Labels>
- </EdgeLayout>
- <EdgeLayout
- Id="Package\称重-签收分位数.Paths[OLE DB 源输出]"
- TopLeft="407.858331502767,150.32222220309">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="39.2083315213943,91.6777684985861"
- Start="0,0"
- End="39.2083315213943,84.1777684985861">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,41.838884249293" />
- <mssgle:CubicBezierSegment
- Point1="0,41.838884249293"
- Point2="0,45.838884249293"
- Point3="4,45.838884249293" />
- <mssgle:LineSegment
- End="35.2083315213943,45.838884249293" />
- <mssgle:CubicBezierSegment
- Point1="35.2083315213943,45.838884249293"
- Point2="39.2083315213943,45.838884249293"
- Point3="39.2083315213943,49.838884249293" />
- <mssgle:LineSegment
- End="39.2083315213943,84.1777684985861" />
- </mssgle:SegmentCollection>
- </mssgle:Curve.Segments>
- </mssgle:Curve>
- </EdgeLayout.Curve>
- <EdgeLayout.Labels>
- <EdgeLabelCollection />
- </EdgeLayout.Labels>
- </EdgeLayout>
- </GraphLayout>
- </LayoutInfo>
- </TaskHost>
- <PipelineComponentMetadata
- design-time-name="Package\称重-签收分位数\95%称重签收分位数(提单)">
- <Properties>
- <Property>
- <Name>DataSourceViewID</Name>
- </Property>
- </Properties>
- </PipelineComponentMetadata>
- <PipelineComponentMetadata
- design-time-name="Package\称重-签收分位数\98称重签收分位数">
- <Properties>
- <Property>
- <Name>DataSourceViewID</Name>
- </Property>
- <Property>
- <Name>TableInfoObjectType</Name>
- <Value
- type="q2:string">Table</Value>
- </Property>
- </Properties>
- </PipelineComponentMetadata>
- <PipelineComponentMetadata
- design-time-name="Package\称重-签收分位数\90称重签收分位数">
- <Properties>
- <Property>
- <Name>DataSourceViewID</Name>
- </Property>
- <Property>
- <Name>TableInfoObjectType</Name>
- <Value
- type="q2:string">Table</Value>
- </Property>
- </Properties>
- </PipelineComponentMetadata>
- <PipelineComponentMetadata
- design-time-name="Package\称重-签收分位数\98%称重签收分位数(提单)">
- <Properties>
- <Property>
- <Name>DataSourceViewID</Name>
- </Property>
- </Properties>
- </PipelineComponentMetadata>
- <PipelineComponentMetadata
- design-time-name="Package\称重-签收分位数\90%称重签收分位数(提单)">
- <Properties>
- <Property>
- <Name>DataSourceViewID</Name>
- </Property>
- </Properties>
- </PipelineComponentMetadata>
- <PipelineComponentMetadata
- design-time-name="Package\称重-签收分位数\OLE DB 目标 1 1">
- <Properties>
- <Property>
- <Name>DataSourceViewID</Name>
- </Property>
- <Property>
- <Name>TableInfoObjectType</Name>
- <Value
- type="q2:string">Table</Value>
- </Property>
- </Properties>
- </PipelineComponentMetadata>
- <TaskHost
- design-time-name="Package\上网-签收分位数">
- <LayoutInfo>
- <GraphLayout
- Capacity="4" xmlns="clr-namespace:Microsoft.SqlServer.IntegrationServices.Designer.Model.Serialization;assembly=Microsoft.SqlServer.IntegrationServices.Graph" xmlns:mssgle="clr-namespace:Microsoft.SqlServer.Graph.LayoutEngine;assembly=Microsoft.SqlServer.Graph" xmlns:assembly="http://schemas.microsoft.com/winfx/2006/xaml">
- <NodeLayout
- Size="156.8,41.6"
- Id="Package\上网-签收分位数\OLE DB 目标 1"
- TopLeft="105.83333151208,241.999990701676" />
- <NodeLayout
- Size="168.8,89.6"
- Id="Package\上网-签收分位数\95%上网签收分位数(提单)"
- TopLeft="60,60" />
- <EdgeLayout
- Id="Package\上网-签收分位数.Paths[OLE DB 源输出]"
- TopLeft="144.5,150">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="39.8333315120803,91.9999907016759"
- Start="0,0"
- End="39.8333315120803,84.4999907016759">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,41.999995350838" />
- <mssgle:CubicBezierSegment
- Point1="0,41.999995350838"
- Point2="0,45.999995350838"
- Point3="4,45.999995350838" />
- <mssgle:LineSegment
- End="35.8333315120803,45.999995350838" />
- <mssgle:CubicBezierSegment
- Point1="35.8333315120803,45.999995350838"
- Point2="39.8333315120803,45.999995350838"
- Point3="39.8333315120803,49.999995350838" />
- <mssgle:LineSegment
- End="39.8333315120803,84.4999907016759" />
- </mssgle:SegmentCollection>
- </mssgle:Curve.Segments>
- </mssgle:Curve>
- </EdgeLayout.Curve>
- <EdgeLayout.Labels>
- <EdgeLabelCollection />
- </EdgeLayout.Labels>
- </EdgeLayout>
- </GraphLayout>
- </LayoutInfo>
- </TaskHost>
- <PipelineComponentMetadata
- design-time-name="Package\上网-签收分位数\95%上网签收分位数(提单)">
- <Properties>
- <Property>
- <Name>DataSourceViewID</Name>
- </Property>
- </Properties>
- </PipelineComponentMetadata>
- <PipelineComponentMetadata
- design-time-name="Package\上网-签收分位数\OLE DB 目标 1">
- <Properties>
- <Property>
- <Name>DataSourceViewID</Name>
- </Property>
- <Property>
- <Name>TableInfoObjectType</Name>
- <Value
- type="q2:string">Table</Value>
- </Property>
- </Properties>
- </PipelineComponentMetadata>
- </Objects>]]></DTS:DesignTimeProperties>
- </DTS:Executable>
|