123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707 |
- <?xml version="1.0"?>
- <DTS:Executable xmlns:DTS="www.microsoft.com/SqlServer/Dts"
- DTS:refId="Package"
- DTS:CreationDate="3/25/2023 5:03:35 PM"
- DTS:CreationName="Microsoft.Package"
- DTS:CreatorComputerName="LZKPC20200625"
- DTS:CreatorName="LZKPC20200625\lzk"
- DTS:DTSID="{935E9618-C898-45EA-9BAB-6705F8D37BD4}"
- DTS:ExecutableType="Microsoft.Package"
- DTS:LastModifiedProductVersion="16.0.694.0"
- DTS:LocaleID="2052"
- DTS:ObjectName="渠道称重上网分位数"
- DTS:PackageType="5"
- DTS:VersionBuild="4"
- DTS:VersionGUID="{81FCF896-EEF8-431E-98F2-BC13172DA983}">
- <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+sBAAAAYaXc47IOuU6ltmljCrTt9wAAAAAIAAAARABUAFMAAAAQZgAAAAEAACAAAAAkCORNe3vUhr9kRfZEmQJ6E9W/iuF+QLdtBkZTW2ldvQAAAAAOgAAAAAIAACAAAADyBHVtibcZYqdbaRV13DwbrDod1WHZ26IK5fUnDLVTEDAAAAA8LrPTvixw5/J1sCXdTIZHCk1GUfbgiuGXvu5+mWabgbRzoWecfiJwfQZ07swJfqZAAAAARGgtdO9OGZnEkrqxZybiWLafBnLR2Znd3rPiax434VWzHQf8w8/7eMrpP4z816MFtSdxaMKz1hUvlBKvy26aMQ</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="{5fd7ad8e-d9d6-4aff-9654-bdd808237a6b}"
- 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">[dbo].[BaseETL_95P_Ladding_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[分位时间]" />
- </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="50"
- 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="{1981a4fb-7000-4a68-b0bc-83612ecef9bb}"
- 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_90P_Ladding_Weight
Truncate table BaseETL_95P_Ladding_Weight
Truncate table BaseETL_98P_Ladding_Weight
Truncate table BaseETL_95P_Ladding_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="{cb31c860-b612-4389-880d-f65546a202ae}"
- 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,case when h.name ='美国快线YSW' then '美国快线' else h.name end
- 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,case when h.name ='美国快线YSW' then '美国快线' else h.name end name
- 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,Name,MIN(r)time from t1 where pr>=0.90
- group by LadingBillNumber,Name</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="50"
- 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="50"
- 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_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="50"
- 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,case when h.name ='美国快线YSW' then '美国快线' else h.name end
- 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,case when h.name ='美国快线YSW' then '美国快线' else h.name end name
- 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,Name,MIN(r)time from t1 where pr>=0.95
- group by LadingBillNumber,Name</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="50"
- 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="50"
- 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,case when h.name ='美国快线YSW' then '美国快线' else h.name end
- 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,case when h.name ='美国快线YSW' then '美国快线' else h.name end name
- 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,Name,MIN(r)time from t1 where pr>=0.98
- group by LadingBillNumber,Name</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="50"
- 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="50"
- 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_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="50"
- 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">[dbo].[BaseETL_95P_Ladding_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="50"
- 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="{ACAAA00C-9952-4A14-9D61-861946C1D47C}"
- DTS:From="Package\执行 SQL 任务"
- DTS:LogicalAnd="True"
- DTS:ObjectName="Constraint"
- DTS:To="Package\称重-签收分位数" />
- <DTS:PrecedenceConstraint
- DTS:refId="Package.PrecedenceConstraints[Constraint 1]"
- DTS:CreationName=""
- DTS:DTSID="{B7C27891-255F-496C-A1A9-F82AF7896C92}"
- DTS:From="Package\称重-签收分位数"
- 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="440.416660894536,177.619042036305" />
- <NodeLayout
- Size="168.8,41.6"
- Id="Package\上网-签收分位数"
- TopLeft="439.583327594316,291.833321915418" />
- <NodeLayout
- Size="156.8,41.6"
- Id="Package\执行 SQL 任务"
- TopLeft="436.249994393438,77.3333328741568" />
- <EdgeLayout
- Id="Package.PrecedenceConstraints[Constraint]"
- TopLeft="514.649994393438,118.933332874157">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="10.166666501098,58.685709162148"
- Start="0,0"
- End="10.166666501098,51.185709162148">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,25.342854581074" />
- <mssgle:CubicBezierSegment
- Point1="0,25.342854581074"
- Point2="0,29.342854581074"
- Point3="4,29.342854581074" />
- <mssgle:LineSegment
- End="6.16666650109801,29.342854581074" />
- <mssgle:CubicBezierSegment
- Point1="6.16666650109801,29.342854581074"
- Point2="10.166666501098,29.342854581074"
- Point3="10.166666501098,33.342854581074" />
- <mssgle:LineSegment
- End="10.166666501098,51.185709162148" />
- </mssgle:SegmentCollection>
- </mssgle:Curve.Segments>
- </mssgle:Curve>
- </EdgeLayout.Curve>
- <EdgeLayout.Labels>
- <EdgeLabelCollection />
- </EdgeLayout.Labels>
- </EdgeLayout>
- <EdgeLayout
- Id="Package.PrecedenceConstraints[Constraint 1]"
- TopLeft="524.399994244426,219.219042036305">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="0,72.6142798791129"
- Start="0,0"
- End="0,65.1142798791129">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,65.1142798791129" />
- </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="156.8,41.6"
- Id="Package\称重-签收分位数\OLE DB 目标 1 1"
- TopLeft="368.666663024161,241.999990701676" />
- <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>
- <NodeLayout
- Size="216.8,41.6"
- Id="Package\称重-签收分位数\90%称重签收分位数(提单)"
- TopLeft="689.999989718199,51.2777764193805" />
- <NodeLayout
- Size="138.4,41.6"
- Id="Package\称重-签收分位数\90称重签收"
- TopLeft="735.208321239593,232.555544917967" />
- <EdgeLayout
- Id="Package\称重-签收分位数.Paths[OLE DB 源输出1]"
- TopLeft="801.404155478896,92.8777764193805">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="0,139.677768498586"
- Start="0,0"
- End="0,132.177768498586">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,132.177768498586" />
- </mssgle:SegmentCollection>
- </mssgle:Curve.Segments>
- </mssgle:Curve>
- </EdgeLayout.Curve>
- <EdgeLayout.Labels>
- <EdgeLabelCollection />
- </EdgeLayout.Labels>
- </EdgeLayout>
- <NodeLayout
- Size="216.8,41.6"
- Id="Package\称重-签收分位数\98%称重签收分位数(提单)"
- TopLeft="544.999991878867,294.666658860666" />
- <NodeLayout
- Size="138.4,41.6"
- Id="Package\称重-签收分位数\98称重签收"
- TopLeft="590.208323400261,475.944427359252" />
- <EdgeLayout
- Id="Package\称重-签收分位数.Paths[OLE DB 源输出2]"
- TopLeft="656.404157639564,336.266658860666">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="0,139.677768498586"
- Start="0,0"
- End="0,132.177768498586">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,132.177768498586" />
- </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="168.8,89.6"
- Id="Package\上网-签收分位数\95%上网签收分位数(提单)"
- TopLeft="60,60" />
- <NodeLayout
- Size="156,41.6"
- Id="Package\上网-签收分位数\OLE DB 目标 1"
- TopLeft="105.83333151208,241.999990701676" />
- <EdgeLayout
- Id="Package\上网-签收分位数.Paths[OLE DB 源输出]"
- TopLeft="144.4,149.6">
- <EdgeLayout.Curve>
- <mssgle:Curve
- StartConnector="{assembly:Null}"
- EndConnector="39.43333151208,92.399990701676"
- Start="0,0"
- End="39.43333151208,84.899990701676">
- <mssgle:Curve.Segments>
- <mssgle:SegmentCollection
- Capacity="5">
- <mssgle:LineSegment
- End="0,42.199995350838" />
- <mssgle:CubicBezierSegment
- Point1="0,42.199995350838"
- Point2="0,46.199995350838"
- Point3="4,46.199995350838" />
- <mssgle:LineSegment
- End="35.43333151208,46.199995350838" />
- <mssgle:CubicBezierSegment
- Point1="35.43333151208,46.199995350838"
- Point2="39.43333151208,46.199995350838"
- Point3="39.43333151208,50.199995350838" />
- <mssgle:LineSegment
- End="39.43333151208,84.899990701676" />
- </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>
|