销售退货单子表数据同步.ktr 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <transformation>
  3. <info>
  4. <name>销售退货单子表数据同步</name>
  5. <description/>
  6. <extended_description/>
  7. <trans_version/>
  8. <trans_type>Normal</trans_type>
  9. <trans_status>0</trans_status>
  10. <directory>/</directory>
  11. <parameters>
  12. <parameter>
  13. <name>interface_id</name>
  14. <default_value/>
  15. <description/>
  16. </parameter>
  17. </parameters>
  18. <log>
  19. <trans-log-table>
  20. <connection/>
  21. <schema/>
  22. <table/>
  23. <size_limit_lines/>
  24. <interval/>
  25. <timeout_days/>
  26. <field>
  27. <id>ID_BATCH</id>
  28. <enabled>Y</enabled>
  29. <name>ID_BATCH</name>
  30. </field>
  31. <field>
  32. <id>CHANNEL_ID</id>
  33. <enabled>Y</enabled>
  34. <name>CHANNEL_ID</name>
  35. </field>
  36. <field>
  37. <id>TRANSNAME</id>
  38. <enabled>Y</enabled>
  39. <name>TRANSNAME</name>
  40. </field>
  41. <field>
  42. <id>STATUS</id>
  43. <enabled>Y</enabled>
  44. <name>STATUS</name>
  45. </field>
  46. <field>
  47. <id>LINES_READ</id>
  48. <enabled>Y</enabled>
  49. <name>LINES_READ</name>
  50. <subject/>
  51. </field>
  52. <field>
  53. <id>LINES_WRITTEN</id>
  54. <enabled>Y</enabled>
  55. <name>LINES_WRITTEN</name>
  56. <subject/>
  57. </field>
  58. <field>
  59. <id>LINES_UPDATED</id>
  60. <enabled>Y</enabled>
  61. <name>LINES_UPDATED</name>
  62. <subject/>
  63. </field>
  64. <field>
  65. <id>LINES_INPUT</id>
  66. <enabled>Y</enabled>
  67. <name>LINES_INPUT</name>
  68. <subject/>
  69. </field>
  70. <field>
  71. <id>LINES_OUTPUT</id>
  72. <enabled>Y</enabled>
  73. <name>LINES_OUTPUT</name>
  74. <subject/>
  75. </field>
  76. <field>
  77. <id>LINES_REJECTED</id>
  78. <enabled>Y</enabled>
  79. <name>LINES_REJECTED</name>
  80. <subject/>
  81. </field>
  82. <field>
  83. <id>ERRORS</id>
  84. <enabled>Y</enabled>
  85. <name>ERRORS</name>
  86. </field>
  87. <field>
  88. <id>STARTDATE</id>
  89. <enabled>Y</enabled>
  90. <name>STARTDATE</name>
  91. </field>
  92. <field>
  93. <id>ENDDATE</id>
  94. <enabled>Y</enabled>
  95. <name>ENDDATE</name>
  96. </field>
  97. <field>
  98. <id>LOGDATE</id>
  99. <enabled>Y</enabled>
  100. <name>LOGDATE</name>
  101. </field>
  102. <field>
  103. <id>DEPDATE</id>
  104. <enabled>Y</enabled>
  105. <name>DEPDATE</name>
  106. </field>
  107. <field>
  108. <id>REPLAYDATE</id>
  109. <enabled>Y</enabled>
  110. <name>REPLAYDATE</name>
  111. </field>
  112. <field>
  113. <id>LOG_FIELD</id>
  114. <enabled>Y</enabled>
  115. <name>LOG_FIELD</name>
  116. </field>
  117. <field>
  118. <id>EXECUTING_SERVER</id>
  119. <enabled>N</enabled>
  120. <name>EXECUTING_SERVER</name>
  121. </field>
  122. <field>
  123. <id>EXECUTING_USER</id>
  124. <enabled>N</enabled>
  125. <name>EXECUTING_USER</name>
  126. </field>
  127. <field>
  128. <id>CLIENT</id>
  129. <enabled>N</enabled>
  130. <name>CLIENT</name>
  131. </field>
  132. </trans-log-table>
  133. <perf-log-table>
  134. <connection/>
  135. <schema/>
  136. <table/>
  137. <interval/>
  138. <timeout_days/>
  139. <field>
  140. <id>ID_BATCH</id>
  141. <enabled>Y</enabled>
  142. <name>ID_BATCH</name>
  143. </field>
  144. <field>
  145. <id>SEQ_NR</id>
  146. <enabled>Y</enabled>
  147. <name>SEQ_NR</name>
  148. </field>
  149. <field>
  150. <id>LOGDATE</id>
  151. <enabled>Y</enabled>
  152. <name>LOGDATE</name>
  153. </field>
  154. <field>
  155. <id>TRANSNAME</id>
  156. <enabled>Y</enabled>
  157. <name>TRANSNAME</name>
  158. </field>
  159. <field>
  160. <id>STEPNAME</id>
  161. <enabled>Y</enabled>
  162. <name>STEPNAME</name>
  163. </field>
  164. <field>
  165. <id>STEP_COPY</id>
  166. <enabled>Y</enabled>
  167. <name>STEP_COPY</name>
  168. </field>
  169. <field>
  170. <id>LINES_READ</id>
  171. <enabled>Y</enabled>
  172. <name>LINES_READ</name>
  173. </field>
  174. <field>
  175. <id>LINES_WRITTEN</id>
  176. <enabled>Y</enabled>
  177. <name>LINES_WRITTEN</name>
  178. </field>
  179. <field>
  180. <id>LINES_UPDATED</id>
  181. <enabled>Y</enabled>
  182. <name>LINES_UPDATED</name>
  183. </field>
  184. <field>
  185. <id>LINES_INPUT</id>
  186. <enabled>Y</enabled>
  187. <name>LINES_INPUT</name>
  188. </field>
  189. <field>
  190. <id>LINES_OUTPUT</id>
  191. <enabled>Y</enabled>
  192. <name>LINES_OUTPUT</name>
  193. </field>
  194. <field>
  195. <id>LINES_REJECTED</id>
  196. <enabled>Y</enabled>
  197. <name>LINES_REJECTED</name>
  198. </field>
  199. <field>
  200. <id>ERRORS</id>
  201. <enabled>Y</enabled>
  202. <name>ERRORS</name>
  203. </field>
  204. <field>
  205. <id>INPUT_BUFFER_ROWS</id>
  206. <enabled>Y</enabled>
  207. <name>INPUT_BUFFER_ROWS</name>
  208. </field>
  209. <field>
  210. <id>OUTPUT_BUFFER_ROWS</id>
  211. <enabled>Y</enabled>
  212. <name>OUTPUT_BUFFER_ROWS</name>
  213. </field>
  214. </perf-log-table>
  215. <channel-log-table>
  216. <connection/>
  217. <schema/>
  218. <table/>
  219. <timeout_days/>
  220. <field>
  221. <id>ID_BATCH</id>
  222. <enabled>Y</enabled>
  223. <name>ID_BATCH</name>
  224. </field>
  225. <field>
  226. <id>CHANNEL_ID</id>
  227. <enabled>Y</enabled>
  228. <name>CHANNEL_ID</name>
  229. </field>
  230. <field>
  231. <id>LOG_DATE</id>
  232. <enabled>Y</enabled>
  233. <name>LOG_DATE</name>
  234. </field>
  235. <field>
  236. <id>LOGGING_OBJECT_TYPE</id>
  237. <enabled>Y</enabled>
  238. <name>LOGGING_OBJECT_TYPE</name>
  239. </field>
  240. <field>
  241. <id>OBJECT_NAME</id>
  242. <enabled>Y</enabled>
  243. <name>OBJECT_NAME</name>
  244. </field>
  245. <field>
  246. <id>OBJECT_COPY</id>
  247. <enabled>Y</enabled>
  248. <name>OBJECT_COPY</name>
  249. </field>
  250. <field>
  251. <id>REPOSITORY_DIRECTORY</id>
  252. <enabled>Y</enabled>
  253. <name>REPOSITORY_DIRECTORY</name>
  254. </field>
  255. <field>
  256. <id>FILENAME</id>
  257. <enabled>Y</enabled>
  258. <name>FILENAME</name>
  259. </field>
  260. <field>
  261. <id>OBJECT_ID</id>
  262. <enabled>Y</enabled>
  263. <name>OBJECT_ID</name>
  264. </field>
  265. <field>
  266. <id>OBJECT_REVISION</id>
  267. <enabled>Y</enabled>
  268. <name>OBJECT_REVISION</name>
  269. </field>
  270. <field>
  271. <id>PARENT_CHANNEL_ID</id>
  272. <enabled>Y</enabled>
  273. <name>PARENT_CHANNEL_ID</name>
  274. </field>
  275. <field>
  276. <id>ROOT_CHANNEL_ID</id>
  277. <enabled>Y</enabled>
  278. <name>ROOT_CHANNEL_ID</name>
  279. </field>
  280. </channel-log-table>
  281. <step-log-table>
  282. <connection/>
  283. <schema/>
  284. <table/>
  285. <timeout_days/>
  286. <field>
  287. <id>ID_BATCH</id>
  288. <enabled>Y</enabled>
  289. <name>ID_BATCH</name>
  290. </field>
  291. <field>
  292. <id>CHANNEL_ID</id>
  293. <enabled>Y</enabled>
  294. <name>CHANNEL_ID</name>
  295. </field>
  296. <field>
  297. <id>LOG_DATE</id>
  298. <enabled>Y</enabled>
  299. <name>LOG_DATE</name>
  300. </field>
  301. <field>
  302. <id>TRANSNAME</id>
  303. <enabled>Y</enabled>
  304. <name>TRANSNAME</name>
  305. </field>
  306. <field>
  307. <id>STEPNAME</id>
  308. <enabled>Y</enabled>
  309. <name>STEPNAME</name>
  310. </field>
  311. <field>
  312. <id>STEP_COPY</id>
  313. <enabled>Y</enabled>
  314. <name>STEP_COPY</name>
  315. </field>
  316. <field>
  317. <id>LINES_READ</id>
  318. <enabled>Y</enabled>
  319. <name>LINES_READ</name>
  320. </field>
  321. <field>
  322. <id>LINES_WRITTEN</id>
  323. <enabled>Y</enabled>
  324. <name>LINES_WRITTEN</name>
  325. </field>
  326. <field>
  327. <id>LINES_UPDATED</id>
  328. <enabled>Y</enabled>
  329. <name>LINES_UPDATED</name>
  330. </field>
  331. <field>
  332. <id>LINES_INPUT</id>
  333. <enabled>Y</enabled>
  334. <name>LINES_INPUT</name>
  335. </field>
  336. <field>
  337. <id>LINES_OUTPUT</id>
  338. <enabled>Y</enabled>
  339. <name>LINES_OUTPUT</name>
  340. </field>
  341. <field>
  342. <id>LINES_REJECTED</id>
  343. <enabled>Y</enabled>
  344. <name>LINES_REJECTED</name>
  345. </field>
  346. <field>
  347. <id>ERRORS</id>
  348. <enabled>Y</enabled>
  349. <name>ERRORS</name>
  350. </field>
  351. <field>
  352. <id>LOG_FIELD</id>
  353. <enabled>N</enabled>
  354. <name>LOG_FIELD</name>
  355. </field>
  356. </step-log-table>
  357. <metrics-log-table>
  358. <connection/>
  359. <schema/>
  360. <table/>
  361. <timeout_days/>
  362. <field>
  363. <id>ID_BATCH</id>
  364. <enabled>Y</enabled>
  365. <name>ID_BATCH</name>
  366. </field>
  367. <field>
  368. <id>CHANNEL_ID</id>
  369. <enabled>Y</enabled>
  370. <name>CHANNEL_ID</name>
  371. </field>
  372. <field>
  373. <id>LOG_DATE</id>
  374. <enabled>Y</enabled>
  375. <name>LOG_DATE</name>
  376. </field>
  377. <field>
  378. <id>METRICS_DATE</id>
  379. <enabled>Y</enabled>
  380. <name>METRICS_DATE</name>
  381. </field>
  382. <field>
  383. <id>METRICS_CODE</id>
  384. <enabled>Y</enabled>
  385. <name>METRICS_CODE</name>
  386. </field>
  387. <field>
  388. <id>METRICS_DESCRIPTION</id>
  389. <enabled>Y</enabled>
  390. <name>METRICS_DESCRIPTION</name>
  391. </field>
  392. <field>
  393. <id>METRICS_SUBJECT</id>
  394. <enabled>Y</enabled>
  395. <name>METRICS_SUBJECT</name>
  396. </field>
  397. <field>
  398. <id>METRICS_TYPE</id>
  399. <enabled>Y</enabled>
  400. <name>METRICS_TYPE</name>
  401. </field>
  402. <field>
  403. <id>METRICS_VALUE</id>
  404. <enabled>Y</enabled>
  405. <name>METRICS_VALUE</name>
  406. </field>
  407. </metrics-log-table>
  408. </log>
  409. <maxdate>
  410. <connection/>
  411. <table/>
  412. <field/>
  413. <offset>0.0</offset>
  414. <maxdiff>0.0</maxdiff>
  415. </maxdate>
  416. <size_rowset>10000</size_rowset>
  417. <sleep_time_empty>50</sleep_time_empty>
  418. <sleep_time_full>50</sleep_time_full>
  419. <unique_connections>N</unique_connections>
  420. <feedback_shown>Y</feedback_shown>
  421. <feedback_size>50000</feedback_size>
  422. <using_thread_priorities>Y</using_thread_priorities>
  423. <shared_objects_file/>
  424. <capture_step_performance>N</capture_step_performance>
  425. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  426. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  427. <dependencies>
  428. </dependencies>
  429. <partitionschemas>
  430. </partitionschemas>
  431. <slaveservers>
  432. </slaveservers>
  433. <clusterschemas>
  434. </clusterschemas>
  435. <created_user>-</created_user>
  436. <created_date>2024/01/10 11:03:15.382</created_date>
  437. <modified_user>-</modified_user>
  438. <modified_date>2024/01/10 11:03:15.382</modified_date>
  439. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  440. <is_key_private>N</is_key_private>
  441. </info>
  442. <notepads>
  443. </notepads>
  444. <connection>
  445. <name>MOM</name>
  446. <server>${MOMDB_HOST}</server>
  447. <type>MYSQL</type>
  448. <access>Native</access>
  449. <database>${MOMDB_NAME}</database>
  450. <port>3306</port>
  451. <username>${MOMDB_USER}</username>
  452. <password>${MOMDB_PASSWORD}</password>
  453. <servername/>
  454. <data_tablespace/>
  455. <index_tablespace/>
  456. <attributes>
  457. <attribute>
  458. <code>EXTRA_OPTION_MYSQL.characterEncoding</code>
  459. <attribute>utf-8</attribute>
  460. </attribute>
  461. <attribute>
  462. <code>EXTRA_OPTION_MYSQL.defaultFetchSize</code>
  463. <attribute>5000</attribute>
  464. </attribute>
  465. <attribute>
  466. <code>EXTRA_OPTION_MYSQL.rewriteBatchedStatements</code>
  467. <attribute>true</attribute>
  468. </attribute>
  469. <attribute>
  470. <code>EXTRA_OPTION_MYSQL.useCompression</code>
  471. <attribute>true</attribute>
  472. </attribute>
  473. <attribute>
  474. <code>EXTRA_OPTION_MYSQL.useCursorFetch</code>
  475. <attribute>true</attribute>
  476. </attribute>
  477. <attribute>
  478. <code>EXTRA_OPTION_MYSQL.useServerPrepStmts</code>
  479. <attribute>true</attribute>
  480. </attribute>
  481. <attribute>
  482. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  483. <attribute>N</attribute>
  484. </attribute>
  485. <attribute>
  486. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  487. <attribute>N</attribute>
  488. </attribute>
  489. <attribute>
  490. <code>IS_CLUSTERED</code>
  491. <attribute>N</attribute>
  492. </attribute>
  493. <attribute>
  494. <code>PORT_NUMBER</code>
  495. <attribute>3306</attribute>
  496. </attribute>
  497. <attribute>
  498. <code>PRESERVE_RESERVED_WORD_CASE</code>
  499. <attribute>Y</attribute>
  500. </attribute>
  501. <attribute>
  502. <code>QUOTE_ALL_FIELDS</code>
  503. <attribute>N</attribute>
  504. </attribute>
  505. <attribute>
  506. <code>STREAM_RESULTS</code>
  507. <attribute>N</attribute>
  508. </attribute>
  509. <attribute>
  510. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  511. <attribute>Y</attribute>
  512. </attribute>
  513. <attribute>
  514. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  515. <attribute>Y</attribute>
  516. </attribute>
  517. <attribute>
  518. <code>USE_POOLING</code>
  519. <attribute>N</attribute>
  520. </attribute>
  521. </attributes>
  522. </connection>
  523. <connection>
  524. <name>U8</name>
  525. <server>${U8DB_HOST}</server>
  526. <type>MSSQL</type>
  527. <access>Native</access>
  528. <database>${U8DB_NAME}</database>
  529. <port>1433</port>
  530. <username>${U8DB_USER}</username>
  531. <password>${U8DB_PASSWORD}</password>
  532. <servername/>
  533. <data_tablespace/>
  534. <index_tablespace/>
  535. <attributes>
  536. <attribute>
  537. <code>EXTRA_OPTION_MSSQL.instance</code>
  538. <attribute>dbo</attribute>
  539. </attribute>
  540. <attribute>
  541. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  542. <attribute>N</attribute>
  543. </attribute>
  544. <attribute>
  545. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  546. <attribute>N</attribute>
  547. </attribute>
  548. <attribute>
  549. <code>IS_CLUSTERED</code>
  550. <attribute>N</attribute>
  551. </attribute>
  552. <attribute>
  553. <code>MSSQL_DOUBLE_DECIMAL_SEPARATOR</code>
  554. <attribute>N</attribute>
  555. </attribute>
  556. <attribute>
  557. <code>PORT_NUMBER</code>
  558. <attribute>1433</attribute>
  559. </attribute>
  560. <attribute>
  561. <code>PRESERVE_RESERVED_WORD_CASE</code>
  562. <attribute>Y</attribute>
  563. </attribute>
  564. <attribute>
  565. <code>QUOTE_ALL_FIELDS</code>
  566. <attribute>N</attribute>
  567. </attribute>
  568. <attribute>
  569. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  570. <attribute>Y</attribute>
  571. </attribute>
  572. <attribute>
  573. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  574. <attribute>Y</attribute>
  575. </attribute>
  576. <attribute>
  577. <code>USE_POOLING</code>
  578. <attribute>N</attribute>
  579. </attribute>
  580. </attributes>
  581. </connection>
  582. <order>
  583. <hop>
  584. <from>表输入</from>
  585. <to>Java 代码-id</to>
  586. <enabled>Y</enabled>
  587. </hop>
  588. <hop>
  589. <from>表输入-mom物料档案</from>
  590. <to>流查询-物料档案</to>
  591. <enabled>Y</enabled>
  592. </hop>
  593. <hop>
  594. <from>表输入-mom出库任务</from>
  595. <to>流查询-出库任务</to>
  596. <enabled>Y</enabled>
  597. </hop>
  598. <hop>
  599. <from>流查询-物料档案</from>
  600. <to>流查询-出库任务</to>
  601. <enabled>Y</enabled>
  602. </hop>
  603. <hop>
  604. <from>流查询-出库任务</from>
  605. <to>插入 / 更新</to>
  606. <enabled>Y</enabled>
  607. </hop>
  608. <hop>
  609. <from>插入 / 更新</from>
  610. <to>执行SQL脚本-更新任务出库退数量</to>
  611. <enabled>Y</enabled>
  612. </hop>
  613. <hop>
  614. <from>表输入-主id</from>
  615. <to>流查询-主id</to>
  616. <enabled>Y</enabled>
  617. </hop>
  618. <hop>
  619. <from>Java 代码-id</from>
  620. <to>流查询-主id</to>
  621. <enabled>Y</enabled>
  622. </hop>
  623. <hop>
  624. <from>流查询-主id</from>
  625. <to>流查询-物料档案</to>
  626. <enabled>Y</enabled>
  627. </hop>
  628. </order>
  629. <step>
  630. <name>Java 代码-id</name>
  631. <type>UserDefinedJavaClass</type>
  632. <description/>
  633. <distribute>N</distribute>
  634. <custom_distribution/>
  635. <copies>1</copies>
  636. <partitioning>
  637. <method>none</method>
  638. <schema_name/>
  639. </partitioning>
  640. <definitions>
  641. <definition>
  642. <class_type>TRANSFORM_CLASS</class_type>
  643. <class_name>Processor</class_name>
  644. <class_source>//import com.cath.set.util.CodeRuleUtil;
  645. import com.cath.util.SnowflakeIdWorkerUtil;
  646. SnowflakeIdWorkerUtil snowflakeIdWorkerUtil = new SnowflakeIdWorkerUtil(3, 5, 5);
  647. public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException {
  648. if (first) {
  649. first = false;
  650. }
  651. Object[] r = getRow();
  652. if (r == null) {
  653. setOutputDone();
  654. return false;
  655. }
  656. r = createOutputRow(r, data.outputRowMeta.size());
  657. String id = String.valueOf(snowflakeIdWorkerUtil.nextId());
  658. get(Fields.Out, "id").setValue(r, id);
  659. putRow(data.outputRowMeta, r);
  660. return true;
  661. }
  662. </class_source>
  663. </definition>
  664. </definitions>
  665. <fields>
  666. <field>
  667. <field_name>id</field_name>
  668. <field_type>String</field_type>
  669. <field_length>-1</field_length>
  670. <field_precision>-1</field_precision>
  671. </field>
  672. </fields>
  673. <clear_result_fields>N</clear_result_fields>
  674. <info_steps/>
  675. <target_steps/>
  676. <usage_parameters/>
  677. <attributes/>
  678. <cluster_schema/>
  679. <remotesteps>
  680. <input>
  681. </input>
  682. <output>
  683. </output>
  684. </remotesteps>
  685. <GUI>
  686. <xloc>192</xloc>
  687. <yloc>64</yloc>
  688. <draw>Y</draw>
  689. </GUI>
  690. </step>
  691. <step>
  692. <name>执行SQL脚本-更新任务出库退数量</name>
  693. <type>ExecSQL</type>
  694. <description/>
  695. <distribute>Y</distribute>
  696. <custom_distribution/>
  697. <copies>1</copies>
  698. <partitioning>
  699. <method>none</method>
  700. <schema_name/>
  701. </partitioning>
  702. <connection>MOM</connection>
  703. <execute_each_row>Y</execute_each_row>
  704. <single_statement>N</single_statement>
  705. <replace_variables>Y</replace_variables>
  706. <quoteString>N</quoteString>
  707. <sql>UPDATE wms_task_outs SET
  708. back_task_qty = IFNULL(back_task_qty,0) + ?
  709. WHERE id = '?';</sql>
  710. <set_params>N</set_params>
  711. <insert_field/>
  712. <update_field/>
  713. <delete_field/>
  714. <read_field/>
  715. <arguments>
  716. <argument>
  717. <name>task_qty</name>
  718. </argument>
  719. <argument>
  720. <name>mom_task_outs_id</name>
  721. </argument>
  722. </arguments>
  723. <attributes/>
  724. <cluster_schema/>
  725. <remotesteps>
  726. <input>
  727. </input>
  728. <output>
  729. </output>
  730. </remotesteps>
  731. <GUI>
  732. <xloc>880</xloc>
  733. <yloc>64</yloc>
  734. <draw>Y</draw>
  735. </GUI>
  736. </step>
  737. <step>
  738. <name>插入 / 更新</name>
  739. <type>InsertUpdate</type>
  740. <description/>
  741. <distribute>Y</distribute>
  742. <custom_distribution/>
  743. <copies>1</copies>
  744. <partitioning>
  745. <method>none</method>
  746. <schema_name/>
  747. </partitioning>
  748. <connection>MOM</connection>
  749. <commit>1000</commit>
  750. <update_bypassed>Y</update_bypassed>
  751. <lookup>
  752. <schema/>
  753. <table>wms_task_outs</table>
  754. <key>
  755. <name>interface_id</name>
  756. <field>interface_id</field>
  757. <condition>=</condition>
  758. <name2/>
  759. </key>
  760. <key>
  761. <name>mom_task_out_id</name>
  762. <field>task_out_id</field>
  763. <condition>=</condition>
  764. <name2/>
  765. </key>
  766. <value>
  767. <name>interface_id</name>
  768. <rename>interface_id</rename>
  769. <update>N</update>
  770. </value>
  771. <value>
  772. <name>interface_row</name>
  773. <rename>interface_row</rename>
  774. <update>N</update>
  775. </value>
  776. <value>
  777. <name>id</name>
  778. <rename>id</rename>
  779. <update>N</update>
  780. </value>
  781. <value>
  782. <name>task_out_id</name>
  783. <rename>mom_task_out_id</rename>
  784. <update>N</update>
  785. </value>
  786. <value>
  787. <name>row_number</name>
  788. <rename>row_number</rename>
  789. <update>N</update>
  790. </value>
  791. <value>
  792. <name>material_code</name>
  793. <rename>material_code</rename>
  794. <update>N</update>
  795. </value>
  796. <value>
  797. <name>task_qty</name>
  798. <rename>task_qty</rename>
  799. <update>N</update>
  800. </value>
  801. <value>
  802. <name>unit_code</name>
  803. <rename>unit_code</rename>
  804. <update>N</update>
  805. </value>
  806. <value>
  807. <name>excess_ratio_out</name>
  808. <rename>mom_excess_ratio_out</rename>
  809. <update>N</update>
  810. </value>
  811. <value>
  812. <name>warehouse_code</name>
  813. <rename>mom_warehouse_code</rename>
  814. <update>N</update>
  815. </value>
  816. <value>
  817. <name>location_code</name>
  818. <rename>mom_location_code</rename>
  819. <update>N</update>
  820. </value>
  821. <value>
  822. <name>batch1</name>
  823. <rename>batch1</rename>
  824. <update>N</update>
  825. </value>
  826. <value>
  827. <name>batch2</name>
  828. <rename>batch2</rename>
  829. <update>N</update>
  830. </value>
  831. <value>
  832. <name>task_outs_id</name>
  833. <rename>mom_task_outs_id</rename>
  834. <update>N</update>
  835. </value>
  836. <value>
  837. <name>status</name>
  838. <rename>status</rename>
  839. <update>N</update>
  840. </value>
  841. <value>
  842. <name>is_close</name>
  843. <rename>is_close</rename>
  844. <update>N</update>
  845. </value>
  846. <value>
  847. <name>create_id</name>
  848. <rename>sync_id</rename>
  849. <update>N</update>
  850. </value>
  851. <value>
  852. <name>create_by</name>
  853. <rename>sync_name</rename>
  854. <update>N</update>
  855. </value>
  856. <value>
  857. <name>create_time</name>
  858. <rename>sync_time</rename>
  859. <update>N</update>
  860. </value>
  861. <value>
  862. <name>audit_by</name>
  863. <rename>sync_name</rename>
  864. <update>N</update>
  865. </value>
  866. <value>
  867. <name>audit_time</name>
  868. <rename>sync_time</rename>
  869. <update>N</update>
  870. </value>
  871. </lookup>
  872. <attributes/>
  873. <cluster_schema/>
  874. <remotesteps>
  875. <input>
  876. </input>
  877. <output>
  878. </output>
  879. </remotesteps>
  880. <GUI>
  881. <xloc>736</xloc>
  882. <yloc>64</yloc>
  883. <draw>Y</draw>
  884. </GUI>
  885. </step>
  886. <step>
  887. <name>流查询-出库任务</name>
  888. <type>StreamLookup</type>
  889. <description/>
  890. <distribute>Y</distribute>
  891. <custom_distribution/>
  892. <copies>1</copies>
  893. <partitioning>
  894. <method>none</method>
  895. <schema_name/>
  896. </partitioning>
  897. <from>表输入-mom出库任务</from>
  898. <input_sorted>N</input_sorted>
  899. <preserve_memory>N</preserve_memory>
  900. <sorted_list>N</sorted_list>
  901. <integer_pair>N</integer_pair>
  902. <lookup>
  903. <key>
  904. <name>interface_pid</name>
  905. <field>interface_pid</field>
  906. </key>
  907. <key>
  908. <name>mom_bill_type</name>
  909. <field>mom_bill_type</field>
  910. </key>
  911. <value>
  912. <name>mom_task_outs_id</name>
  913. <rename>mom_task_outs_id</rename>
  914. <default/>
  915. <type>String</type>
  916. </value>
  917. </lookup>
  918. <attributes/>
  919. <cluster_schema/>
  920. <remotesteps>
  921. <input>
  922. </input>
  923. <output>
  924. </output>
  925. </remotesteps>
  926. <GUI>
  927. <xloc>624</xloc>
  928. <yloc>64</yloc>
  929. <draw>Y</draw>
  930. </GUI>
  931. </step>
  932. <step>
  933. <name>流查询-物料档案</name>
  934. <type>StreamLookup</type>
  935. <description/>
  936. <distribute>Y</distribute>
  937. <custom_distribution/>
  938. <copies>1</copies>
  939. <partitioning>
  940. <method>none</method>
  941. <schema_name/>
  942. </partitioning>
  943. <from>表输入-mom物料档案</from>
  944. <input_sorted>N</input_sorted>
  945. <preserve_memory>N</preserve_memory>
  946. <sorted_list>N</sorted_list>
  947. <integer_pair>N</integer_pair>
  948. <lookup>
  949. <key>
  950. <name>material_code</name>
  951. <field>mom_material_code</field>
  952. </key>
  953. <value>
  954. <name>mom_warehouse_code</name>
  955. <rename>mom_warehouse_code</rename>
  956. <default/>
  957. <type>String</type>
  958. </value>
  959. <value>
  960. <name>mom_location_code</name>
  961. <rename>mom_location_code</rename>
  962. <default/>
  963. <type>String</type>
  964. </value>
  965. <value>
  966. <name>mom_excess_ratio_out</name>
  967. <rename>mom_excess_ratio_out</rename>
  968. <default/>
  969. <type>BigNumber</type>
  970. </value>
  971. </lookup>
  972. <attributes/>
  973. <cluster_schema/>
  974. <remotesteps>
  975. <input>
  976. </input>
  977. <output>
  978. </output>
  979. </remotesteps>
  980. <GUI>
  981. <xloc>464</xloc>
  982. <yloc>64</yloc>
  983. <draw>Y</draw>
  984. </GUI>
  985. </step>
  986. <step>
  987. <name>表输入</name>
  988. <type>TableInput</type>
  989. <description/>
  990. <distribute>Y</distribute>
  991. <custom_distribution/>
  992. <copies>1</copies>
  993. <partitioning>
  994. <method>none</method>
  995. <schema_name/>
  996. </partitioning>
  997. <connection>U8</connection>
  998. <sql>DECLARE @USER_NAME VARCHAR(50),@USER_ID INT
  999. SET @USER_NAME = CASE '${USER_NAME}' WHEN '' THEN '管理员(kettle)' ELSE '${USER_NAME}' END
  1000. SET @USER_ID = CASE 0${USER_ID} WHEN 0 THEN 1 ELSE 0${USER_ID} END
  1001. SELECT
  1002. 0${interface_id} AS master_interface_id
  1003. ,T2.iDLsID AS interface_id
  1004. ,T2.irowno AS interface_row
  1005. ,ROW_NUMBER()OVER(ORDER BY T2.irowno) AS row_number
  1006. ,T2.cInvCode AS material_code
  1007. ,ABS(T2.iQuantity) AS task_qty
  1008. ,T6.cComUnitCode AS unit_code
  1009. ,T2.cBatch AS batch1
  1010. ,T2.cBatchProperty6 AS batch2
  1011. ,0 AS status
  1012. ,1 AS is_close
  1013. ,@USER_NAME AS sync_name
  1014. ,@USER_ID AS sync_id
  1015. ,GETDATE() AS sync_time
  1016. --1生产订单、2委外订单、3委外到货单、4采购订单、5采购到货单、6销售订单、7销售发货单
  1017. ,CASE WHEN ISNULL(T2.iCorID,0) &lt;&gt;0 THEN 7
  1018. WHEN ISNULL(T2.iCorID,0) =0 AND ISNULL(T2.iSOsID,0)&lt;&gt;0 THEN 6 ELSE 0 END AS mom_bill_type
  1019. ,CASE WHEN ISNULL(T2.iCorID,0) &lt;&gt;0 THEN T2.iCorID
  1020. WHEN ISNULL(T2.iCorID,0) =0 AND ISNULL(T2.iSOsID,0)&lt;&gt;0 THEN T2.iSOsID ELSE 0 END AS interface_pid
  1021. FROM DispatchList T1
  1022. LEFT JOIN DispatchLists T2 ON T1.DLID =T2.DLID
  1023. LEFT JOIN Inventory T6 ON T2.cInvCode =T6.cInvCode
  1024. WHERE 1=1
  1025. AND T1.DLID =0${interface_id}
  1026. </sql>
  1027. <limit>0</limit>
  1028. <lookup/>
  1029. <execute_each_row>N</execute_each_row>
  1030. <variables_active>Y</variables_active>
  1031. <lazy_conversion_active>N</lazy_conversion_active>
  1032. <cached_row_meta_active>N</cached_row_meta_active>
  1033. <row-meta>
  1034. <value-meta>
  1035. <type>Integer</type>
  1036. <storagetype>normal</storagetype>
  1037. <name>interface_id</name>
  1038. <length>9</length>
  1039. <precision>0</precision>
  1040. <origin>表输入</origin>
  1041. <comments>interface_id</comments>
  1042. <conversion_Mask>####0;-####0</conversion_Mask>
  1043. <decimal_symbol>.</decimal_symbol>
  1044. <grouping_symbol>,</grouping_symbol>
  1045. <currency_symbol/>
  1046. <trim_type>none</trim_type>
  1047. <case_insensitive>N</case_insensitive>
  1048. <collator_disabled>Y</collator_disabled>
  1049. <collator_strength>0</collator_strength>
  1050. <sort_descending>N</sort_descending>
  1051. <output_padding>N</output_padding>
  1052. <date_format_lenient>N</date_format_lenient>
  1053. <date_format_locale>zh_CN</date_format_locale>
  1054. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1055. <lenient_string_to_number>N</lenient_string_to_number>
  1056. </value-meta>
  1057. <value-meta>
  1058. <type>Integer</type>
  1059. <storagetype>normal</storagetype>
  1060. <name>interface_row</name>
  1061. <length>15</length>
  1062. <precision>0</precision>
  1063. <origin>表输入</origin>
  1064. <comments>interface_row</comments>
  1065. <conversion_Mask>####0;-####0</conversion_Mask>
  1066. <decimal_symbol>.</decimal_symbol>
  1067. <grouping_symbol>,</grouping_symbol>
  1068. <currency_symbol/>
  1069. <trim_type>none</trim_type>
  1070. <case_insensitive>N</case_insensitive>
  1071. <collator_disabled>Y</collator_disabled>
  1072. <collator_strength>0</collator_strength>
  1073. <sort_descending>N</sort_descending>
  1074. <output_padding>N</output_padding>
  1075. <date_format_lenient>N</date_format_lenient>
  1076. <date_format_locale>zh_CN</date_format_locale>
  1077. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1078. <lenient_string_to_number>N</lenient_string_to_number>
  1079. </value-meta>
  1080. <value-meta>
  1081. <type>Integer</type>
  1082. <storagetype>normal</storagetype>
  1083. <name>task_out_id</name>
  1084. <length>9</length>
  1085. <precision>0</precision>
  1086. <origin>表输入</origin>
  1087. <comments>task_out_id</comments>
  1088. <conversion_Mask>####0;-####0</conversion_Mask>
  1089. <decimal_symbol>.</decimal_symbol>
  1090. <grouping_symbol>,</grouping_symbol>
  1091. <currency_symbol/>
  1092. <trim_type>none</trim_type>
  1093. <case_insensitive>N</case_insensitive>
  1094. <collator_disabled>Y</collator_disabled>
  1095. <collator_strength>0</collator_strength>
  1096. <sort_descending>N</sort_descending>
  1097. <output_padding>N</output_padding>
  1098. <date_format_lenient>N</date_format_lenient>
  1099. <date_format_locale>zh_CN</date_format_locale>
  1100. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1101. <lenient_string_to_number>N</lenient_string_to_number>
  1102. </value-meta>
  1103. <value-meta>
  1104. <type>Integer</type>
  1105. <storagetype>normal</storagetype>
  1106. <name>row_number</name>
  1107. <length>15</length>
  1108. <precision>0</precision>
  1109. <origin>表输入</origin>
  1110. <comments>row_number</comments>
  1111. <conversion_Mask>####0;-####0</conversion_Mask>
  1112. <decimal_symbol>.</decimal_symbol>
  1113. <grouping_symbol>,</grouping_symbol>
  1114. <currency_symbol/>
  1115. <trim_type>none</trim_type>
  1116. <case_insensitive>N</case_insensitive>
  1117. <collator_disabled>Y</collator_disabled>
  1118. <collator_strength>0</collator_strength>
  1119. <sort_descending>N</sort_descending>
  1120. <output_padding>N</output_padding>
  1121. <date_format_lenient>N</date_format_lenient>
  1122. <date_format_locale>zh_CN</date_format_locale>
  1123. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1124. <lenient_string_to_number>N</lenient_string_to_number>
  1125. </value-meta>
  1126. <value-meta>
  1127. <type>String</type>
  1128. <storagetype>normal</storagetype>
  1129. <name>material_code</name>
  1130. <length>60</length>
  1131. <precision>-1</precision>
  1132. <origin>表输入</origin>
  1133. <comments>material_code</comments>
  1134. <conversion_Mask/>
  1135. <decimal_symbol>.</decimal_symbol>
  1136. <grouping_symbol>,</grouping_symbol>
  1137. <currency_symbol/>
  1138. <trim_type>none</trim_type>
  1139. <case_insensitive>N</case_insensitive>
  1140. <collator_disabled>Y</collator_disabled>
  1141. <collator_strength>0</collator_strength>
  1142. <sort_descending>N</sort_descending>
  1143. <output_padding>N</output_padding>
  1144. <date_format_lenient>N</date_format_lenient>
  1145. <date_format_locale>zh_CN</date_format_locale>
  1146. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1147. <lenient_string_to_number>N</lenient_string_to_number>
  1148. </value-meta>
  1149. <value-meta>
  1150. <type>BigNumber</type>
  1151. <storagetype>normal</storagetype>
  1152. <name>task_qty</name>
  1153. <length>30</length>
  1154. <precision>10</precision>
  1155. <origin>表输入</origin>
  1156. <comments>task_qty</comments>
  1157. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1158. <decimal_symbol>.</decimal_symbol>
  1159. <grouping_symbol/>
  1160. <currency_symbol/>
  1161. <trim_type>none</trim_type>
  1162. <case_insensitive>N</case_insensitive>
  1163. <collator_disabled>Y</collator_disabled>
  1164. <collator_strength>0</collator_strength>
  1165. <sort_descending>N</sort_descending>
  1166. <output_padding>N</output_padding>
  1167. <date_format_lenient>N</date_format_lenient>
  1168. <date_format_locale>zh_CN</date_format_locale>
  1169. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1170. <lenient_string_to_number>N</lenient_string_to_number>
  1171. </value-meta>
  1172. <value-meta>
  1173. <type>String</type>
  1174. <storagetype>normal</storagetype>
  1175. <name>unit_code</name>
  1176. <length>35</length>
  1177. <precision>-1</precision>
  1178. <origin>表输入</origin>
  1179. <comments>unit_code</comments>
  1180. <conversion_Mask/>
  1181. <decimal_symbol>.</decimal_symbol>
  1182. <grouping_symbol>,</grouping_symbol>
  1183. <currency_symbol/>
  1184. <trim_type>none</trim_type>
  1185. <case_insensitive>N</case_insensitive>
  1186. <collator_disabled>Y</collator_disabled>
  1187. <collator_strength>0</collator_strength>
  1188. <sort_descending>N</sort_descending>
  1189. <output_padding>N</output_padding>
  1190. <date_format_lenient>N</date_format_lenient>
  1191. <date_format_locale>zh_CN</date_format_locale>
  1192. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1193. <lenient_string_to_number>N</lenient_string_to_number>
  1194. </value-meta>
  1195. <value-meta>
  1196. <type>String</type>
  1197. <storagetype>normal</storagetype>
  1198. <name>batch1</name>
  1199. <length>60</length>
  1200. <precision>-1</precision>
  1201. <origin>表输入</origin>
  1202. <comments>batch1</comments>
  1203. <conversion_Mask/>
  1204. <decimal_symbol>.</decimal_symbol>
  1205. <grouping_symbol>,</grouping_symbol>
  1206. <currency_symbol/>
  1207. <trim_type>none</trim_type>
  1208. <case_insensitive>N</case_insensitive>
  1209. <collator_disabled>Y</collator_disabled>
  1210. <collator_strength>0</collator_strength>
  1211. <sort_descending>N</sort_descending>
  1212. <output_padding>N</output_padding>
  1213. <date_format_lenient>N</date_format_lenient>
  1214. <date_format_locale>zh_CN</date_format_locale>
  1215. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1216. <lenient_string_to_number>N</lenient_string_to_number>
  1217. </value-meta>
  1218. <value-meta>
  1219. <type>String</type>
  1220. <storagetype>normal</storagetype>
  1221. <name>batch2</name>
  1222. <length>120</length>
  1223. <precision>-1</precision>
  1224. <origin>表输入</origin>
  1225. <comments>batch2</comments>
  1226. <conversion_Mask/>
  1227. <decimal_symbol>.</decimal_symbol>
  1228. <grouping_symbol>,</grouping_symbol>
  1229. <currency_symbol/>
  1230. <trim_type>none</trim_type>
  1231. <case_insensitive>N</case_insensitive>
  1232. <collator_disabled>Y</collator_disabled>
  1233. <collator_strength>0</collator_strength>
  1234. <sort_descending>N</sort_descending>
  1235. <output_padding>N</output_padding>
  1236. <date_format_lenient>N</date_format_lenient>
  1237. <date_format_locale>zh_CN</date_format_locale>
  1238. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1239. <lenient_string_to_number>N</lenient_string_to_number>
  1240. </value-meta>
  1241. <value-meta>
  1242. <type>Integer</type>
  1243. <storagetype>normal</storagetype>
  1244. <name>status</name>
  1245. <length>9</length>
  1246. <precision>0</precision>
  1247. <origin>表输入</origin>
  1248. <comments>status</comments>
  1249. <conversion_Mask>####0;-####0</conversion_Mask>
  1250. <decimal_symbol>.</decimal_symbol>
  1251. <grouping_symbol>,</grouping_symbol>
  1252. <currency_symbol/>
  1253. <trim_type>none</trim_type>
  1254. <case_insensitive>N</case_insensitive>
  1255. <collator_disabled>Y</collator_disabled>
  1256. <collator_strength>0</collator_strength>
  1257. <sort_descending>N</sort_descending>
  1258. <output_padding>N</output_padding>
  1259. <date_format_lenient>N</date_format_lenient>
  1260. <date_format_locale>zh_CN</date_format_locale>
  1261. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1262. <lenient_string_to_number>N</lenient_string_to_number>
  1263. </value-meta>
  1264. <value-meta>
  1265. <type>Integer</type>
  1266. <storagetype>normal</storagetype>
  1267. <name>is_close</name>
  1268. <length>9</length>
  1269. <precision>0</precision>
  1270. <origin>表输入</origin>
  1271. <comments>is_close</comments>
  1272. <conversion_Mask>####0;-####0</conversion_Mask>
  1273. <decimal_symbol>.</decimal_symbol>
  1274. <grouping_symbol>,</grouping_symbol>
  1275. <currency_symbol/>
  1276. <trim_type>none</trim_type>
  1277. <case_insensitive>N</case_insensitive>
  1278. <collator_disabled>Y</collator_disabled>
  1279. <collator_strength>0</collator_strength>
  1280. <sort_descending>N</sort_descending>
  1281. <output_padding>N</output_padding>
  1282. <date_format_lenient>N</date_format_lenient>
  1283. <date_format_locale>zh_CN</date_format_locale>
  1284. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1285. <lenient_string_to_number>N</lenient_string_to_number>
  1286. </value-meta>
  1287. <value-meta>
  1288. <type>String</type>
  1289. <storagetype>normal</storagetype>
  1290. <name>sync_name</name>
  1291. <length>6</length>
  1292. <precision>-1</precision>
  1293. <origin>表输入</origin>
  1294. <comments>sync_name</comments>
  1295. <conversion_Mask/>
  1296. <decimal_symbol>.</decimal_symbol>
  1297. <grouping_symbol>,</grouping_symbol>
  1298. <currency_symbol/>
  1299. <trim_type>none</trim_type>
  1300. <case_insensitive>N</case_insensitive>
  1301. <collator_disabled>Y</collator_disabled>
  1302. <collator_strength>0</collator_strength>
  1303. <sort_descending>N</sort_descending>
  1304. <output_padding>N</output_padding>
  1305. <date_format_lenient>N</date_format_lenient>
  1306. <date_format_locale>zh_CN</date_format_locale>
  1307. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1308. <lenient_string_to_number>N</lenient_string_to_number>
  1309. </value-meta>
  1310. <value-meta>
  1311. <type>Integer</type>
  1312. <storagetype>normal</storagetype>
  1313. <name>sync_id</name>
  1314. <length>9</length>
  1315. <precision>0</precision>
  1316. <origin>表输入</origin>
  1317. <comments>sync_id</comments>
  1318. <conversion_Mask>####0;-####0</conversion_Mask>
  1319. <decimal_symbol>.</decimal_symbol>
  1320. <grouping_symbol>,</grouping_symbol>
  1321. <currency_symbol/>
  1322. <trim_type>none</trim_type>
  1323. <case_insensitive>N</case_insensitive>
  1324. <collator_disabled>Y</collator_disabled>
  1325. <collator_strength>0</collator_strength>
  1326. <sort_descending>N</sort_descending>
  1327. <output_padding>N</output_padding>
  1328. <date_format_lenient>N</date_format_lenient>
  1329. <date_format_locale>zh_CN</date_format_locale>
  1330. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1331. <lenient_string_to_number>N</lenient_string_to_number>
  1332. </value-meta>
  1333. <value-meta>
  1334. <type>Timestamp</type>
  1335. <storagetype>normal</storagetype>
  1336. <name>sync_time</name>
  1337. <length>3</length>
  1338. <precision>-1</precision>
  1339. <origin>表输入</origin>
  1340. <comments>sync_time</comments>
  1341. <conversion_Mask/>
  1342. <decimal_symbol>.</decimal_symbol>
  1343. <grouping_symbol>,</grouping_symbol>
  1344. <currency_symbol/>
  1345. <trim_type>none</trim_type>
  1346. <case_insensitive>N</case_insensitive>
  1347. <collator_disabled>Y</collator_disabled>
  1348. <collator_strength>0</collator_strength>
  1349. <sort_descending>N</sort_descending>
  1350. <output_padding>N</output_padding>
  1351. <date_format_lenient>N</date_format_lenient>
  1352. <date_format_locale>zh_CN</date_format_locale>
  1353. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1354. <lenient_string_to_number>N</lenient_string_to_number>
  1355. </value-meta>
  1356. <value-meta>
  1357. <type>Integer</type>
  1358. <storagetype>normal</storagetype>
  1359. <name>mom_bill_type</name>
  1360. <length>9</length>
  1361. <precision>0</precision>
  1362. <origin>表输入</origin>
  1363. <comments>mom_bill_type</comments>
  1364. <conversion_Mask>####0;-####0</conversion_Mask>
  1365. <decimal_symbol>.</decimal_symbol>
  1366. <grouping_symbol>,</grouping_symbol>
  1367. <currency_symbol/>
  1368. <trim_type>none</trim_type>
  1369. <case_insensitive>N</case_insensitive>
  1370. <collator_disabled>Y</collator_disabled>
  1371. <collator_strength>0</collator_strength>
  1372. <sort_descending>N</sort_descending>
  1373. <output_padding>N</output_padding>
  1374. <date_format_lenient>N</date_format_lenient>
  1375. <date_format_locale>zh_CN</date_format_locale>
  1376. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1377. <lenient_string_to_number>N</lenient_string_to_number>
  1378. </value-meta>
  1379. <value-meta>
  1380. <type>Integer</type>
  1381. <storagetype>normal</storagetype>
  1382. <name>interface_pid</name>
  1383. <length>9</length>
  1384. <precision>0</precision>
  1385. <origin>表输入</origin>
  1386. <comments>interface_pid</comments>
  1387. <conversion_Mask>####0;-####0</conversion_Mask>
  1388. <decimal_symbol>.</decimal_symbol>
  1389. <grouping_symbol>,</grouping_symbol>
  1390. <currency_symbol/>
  1391. <trim_type>none</trim_type>
  1392. <case_insensitive>N</case_insensitive>
  1393. <collator_disabled>Y</collator_disabled>
  1394. <collator_strength>0</collator_strength>
  1395. <sort_descending>N</sort_descending>
  1396. <output_padding>N</output_padding>
  1397. <date_format_lenient>N</date_format_lenient>
  1398. <date_format_locale>zh_CN</date_format_locale>
  1399. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1400. <lenient_string_to_number>N</lenient_string_to_number>
  1401. </value-meta>
  1402. </row-meta>
  1403. <attributes/>
  1404. <cluster_schema/>
  1405. <remotesteps>
  1406. <input>
  1407. </input>
  1408. <output>
  1409. </output>
  1410. </remotesteps>
  1411. <GUI>
  1412. <xloc>64</xloc>
  1413. <yloc>64</yloc>
  1414. <draw>Y</draw>
  1415. </GUI>
  1416. </step>
  1417. <step>
  1418. <name>表输入-mom出库任务</name>
  1419. <type>TableInput</type>
  1420. <description/>
  1421. <distribute>Y</distribute>
  1422. <custom_distribution/>
  1423. <copies>1</copies>
  1424. <partitioning>
  1425. <method>none</method>
  1426. <schema_name/>
  1427. </partitioning>
  1428. <connection>MOM</connection>
  1429. <sql>SELECT
  1430. T2.interface_id AS interface_pid,
  1431. T1.bill_type AS mom_bill_type,
  1432. T2.id AS mom_task_outs_id
  1433. FROM wms_task_out T1
  1434. LEFT JOIN wms_task_outs T2 ON T1.id =T2.task_out_id
  1435. WHERE 1=1
  1436. AND T1.task_type =-1
  1437. AND T1.bill_type IN (6,7)
  1438. AND IFNULL(T2.interface_id,'')&lt;&gt;''</sql>
  1439. <limit>0</limit>
  1440. <lookup/>
  1441. <execute_each_row>N</execute_each_row>
  1442. <variables_active>N</variables_active>
  1443. <lazy_conversion_active>N</lazy_conversion_active>
  1444. <cached_row_meta_active>N</cached_row_meta_active>
  1445. <row-meta>
  1446. <value-meta>
  1447. <type>Integer</type>
  1448. <storagetype>normal</storagetype>
  1449. <name>interface_pid</name>
  1450. <length>9</length>
  1451. <precision>0</precision>
  1452. <origin>表输入-mom入库任务</origin>
  1453. <comments>interface_pid</comments>
  1454. <conversion_Mask>####0;-####0</conversion_Mask>
  1455. <decimal_symbol>.</decimal_symbol>
  1456. <grouping_symbol>,</grouping_symbol>
  1457. <currency_symbol/>
  1458. <trim_type>none</trim_type>
  1459. <case_insensitive>N</case_insensitive>
  1460. <collator_disabled>Y</collator_disabled>
  1461. <collator_strength>0</collator_strength>
  1462. <sort_descending>N</sort_descending>
  1463. <output_padding>N</output_padding>
  1464. <date_format_lenient>N</date_format_lenient>
  1465. <date_format_locale>zh_CN</date_format_locale>
  1466. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1467. <lenient_string_to_number>N</lenient_string_to_number>
  1468. </value-meta>
  1469. <value-meta>
  1470. <type>Integer</type>
  1471. <storagetype>normal</storagetype>
  1472. <name>mom_bill_type</name>
  1473. <length>9</length>
  1474. <precision>0</precision>
  1475. <origin>表输入-mom入库任务</origin>
  1476. <comments>mom_bill_type</comments>
  1477. <conversion_Mask>####0;-####0</conversion_Mask>
  1478. <decimal_symbol>.</decimal_symbol>
  1479. <grouping_symbol>,</grouping_symbol>
  1480. <currency_symbol/>
  1481. <trim_type>none</trim_type>
  1482. <case_insensitive>N</case_insensitive>
  1483. <collator_disabled>Y</collator_disabled>
  1484. <collator_strength>0</collator_strength>
  1485. <sort_descending>N</sort_descending>
  1486. <output_padding>N</output_padding>
  1487. <date_format_lenient>N</date_format_lenient>
  1488. <date_format_locale>zh_CN</date_format_locale>
  1489. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1490. <lenient_string_to_number>N</lenient_string_to_number>
  1491. </value-meta>
  1492. <value-meta>
  1493. <type>String</type>
  1494. <storagetype>normal</storagetype>
  1495. <name>mom_task_outs_id</name>
  1496. <length>20</length>
  1497. <precision>-1</precision>
  1498. <origin>表输入-mom入库任务</origin>
  1499. <comments>mom_task_outs_id</comments>
  1500. <conversion_Mask/>
  1501. <decimal_symbol>.</decimal_symbol>
  1502. <grouping_symbol>,</grouping_symbol>
  1503. <currency_symbol/>
  1504. <trim_type>none</trim_type>
  1505. <case_insensitive>N</case_insensitive>
  1506. <collator_disabled>Y</collator_disabled>
  1507. <collator_strength>0</collator_strength>
  1508. <sort_descending>N</sort_descending>
  1509. <output_padding>N</output_padding>
  1510. <date_format_lenient>N</date_format_lenient>
  1511. <date_format_locale>zh_CN</date_format_locale>
  1512. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1513. <lenient_string_to_number>N</lenient_string_to_number>
  1514. </value-meta>
  1515. </row-meta>
  1516. <attributes/>
  1517. <cluster_schema/>
  1518. <remotesteps>
  1519. <input>
  1520. </input>
  1521. <output>
  1522. </output>
  1523. </remotesteps>
  1524. <GUI>
  1525. <xloc>480</xloc>
  1526. <yloc>144</yloc>
  1527. <draw>Y</draw>
  1528. </GUI>
  1529. </step>
  1530. <step>
  1531. <name>表输入-mom物料档案</name>
  1532. <type>TableInput</type>
  1533. <description/>
  1534. <distribute>Y</distribute>
  1535. <custom_distribution/>
  1536. <copies>1</copies>
  1537. <partitioning>
  1538. <method>none</method>
  1539. <schema_name/>
  1540. </partitioning>
  1541. <connection>MOM</connection>
  1542. <sql>SELECT
  1543. material_code AS mom_material_code
  1544. ,excess_ratio_out AS mom_excess_ratio_out
  1545. ,warehouse_code_out AS mom_warehouse_code
  1546. ,location_code_out AS mom_location_code
  1547. FROM base_material</sql>
  1548. <limit>0</limit>
  1549. <lookup/>
  1550. <execute_each_row>N</execute_each_row>
  1551. <variables_active>N</variables_active>
  1552. <lazy_conversion_active>N</lazy_conversion_active>
  1553. <cached_row_meta_active>N</cached_row_meta_active>
  1554. <row-meta>
  1555. <value-meta>
  1556. <type>String</type>
  1557. <storagetype>normal</storagetype>
  1558. <name>mom_material_code</name>
  1559. <length>50</length>
  1560. <precision>-1</precision>
  1561. <origin>表输入-mom物料档案</origin>
  1562. <comments>mom_material_code</comments>
  1563. <conversion_Mask/>
  1564. <decimal_symbol>.</decimal_symbol>
  1565. <grouping_symbol>,</grouping_symbol>
  1566. <currency_symbol/>
  1567. <trim_type>none</trim_type>
  1568. <case_insensitive>N</case_insensitive>
  1569. <collator_disabled>Y</collator_disabled>
  1570. <collator_strength>0</collator_strength>
  1571. <sort_descending>N</sort_descending>
  1572. <output_padding>N</output_padding>
  1573. <date_format_lenient>N</date_format_lenient>
  1574. <date_format_locale>zh_CN</date_format_locale>
  1575. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1576. <lenient_string_to_number>N</lenient_string_to_number>
  1577. </value-meta>
  1578. <value-meta>
  1579. <type>BigNumber</type>
  1580. <storagetype>normal</storagetype>
  1581. <name>mom_excess_ratio_out</name>
  1582. <length>24</length>
  1583. <precision>6</precision>
  1584. <origin>表输入-mom物料档案</origin>
  1585. <comments>mom_excess_ratio_out</comments>
  1586. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1587. <decimal_symbol>.</decimal_symbol>
  1588. <grouping_symbol/>
  1589. <currency_symbol/>
  1590. <trim_type>none</trim_type>
  1591. <case_insensitive>N</case_insensitive>
  1592. <collator_disabled>Y</collator_disabled>
  1593. <collator_strength>0</collator_strength>
  1594. <sort_descending>N</sort_descending>
  1595. <output_padding>N</output_padding>
  1596. <date_format_lenient>N</date_format_lenient>
  1597. <date_format_locale>zh_CN</date_format_locale>
  1598. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1599. <lenient_string_to_number>N</lenient_string_to_number>
  1600. </value-meta>
  1601. <value-meta>
  1602. <type>String</type>
  1603. <storagetype>normal</storagetype>
  1604. <name>mom_warehouse_code</name>
  1605. <length>50</length>
  1606. <precision>-1</precision>
  1607. <origin>表输入-mom物料档案</origin>
  1608. <comments>mom_warehouse_code</comments>
  1609. <conversion_Mask/>
  1610. <decimal_symbol>.</decimal_symbol>
  1611. <grouping_symbol>,</grouping_symbol>
  1612. <currency_symbol/>
  1613. <trim_type>none</trim_type>
  1614. <case_insensitive>N</case_insensitive>
  1615. <collator_disabled>Y</collator_disabled>
  1616. <collator_strength>0</collator_strength>
  1617. <sort_descending>N</sort_descending>
  1618. <output_padding>N</output_padding>
  1619. <date_format_lenient>N</date_format_lenient>
  1620. <date_format_locale>zh_CN</date_format_locale>
  1621. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1622. <lenient_string_to_number>N</lenient_string_to_number>
  1623. </value-meta>
  1624. <value-meta>
  1625. <type>String</type>
  1626. <storagetype>normal</storagetype>
  1627. <name>mom_location_code</name>
  1628. <length>50</length>
  1629. <precision>-1</precision>
  1630. <origin>表输入-mom物料档案</origin>
  1631. <comments>mom_location_code</comments>
  1632. <conversion_Mask/>
  1633. <decimal_symbol>.</decimal_symbol>
  1634. <grouping_symbol>,</grouping_symbol>
  1635. <currency_symbol/>
  1636. <trim_type>none</trim_type>
  1637. <case_insensitive>N</case_insensitive>
  1638. <collator_disabled>Y</collator_disabled>
  1639. <collator_strength>0</collator_strength>
  1640. <sort_descending>N</sort_descending>
  1641. <output_padding>N</output_padding>
  1642. <date_format_lenient>N</date_format_lenient>
  1643. <date_format_locale>zh_CN</date_format_locale>
  1644. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1645. <lenient_string_to_number>N</lenient_string_to_number>
  1646. </value-meta>
  1647. </row-meta>
  1648. <attributes/>
  1649. <cluster_schema/>
  1650. <remotesteps>
  1651. <input>
  1652. </input>
  1653. <output>
  1654. </output>
  1655. </remotesteps>
  1656. <GUI>
  1657. <xloc>352</xloc>
  1658. <yloc>144</yloc>
  1659. <draw>Y</draw>
  1660. </GUI>
  1661. </step>
  1662. <step>
  1663. <name>流查询-主id</name>
  1664. <type>StreamLookup</type>
  1665. <description/>
  1666. <distribute>Y</distribute>
  1667. <custom_distribution/>
  1668. <copies>1</copies>
  1669. <partitioning>
  1670. <method>none</method>
  1671. <schema_name/>
  1672. </partitioning>
  1673. <from>表输入-主id</from>
  1674. <input_sorted>N</input_sorted>
  1675. <preserve_memory>N</preserve_memory>
  1676. <sorted_list>N</sorted_list>
  1677. <integer_pair>N</integer_pair>
  1678. <lookup>
  1679. <key>
  1680. <name>master_interface_id</name>
  1681. <field>master_interface_id</field>
  1682. </key>
  1683. <value>
  1684. <name>mom_task_out_id</name>
  1685. <rename>mom_task_out_id</rename>
  1686. <default/>
  1687. <type>String</type>
  1688. </value>
  1689. </lookup>
  1690. <attributes/>
  1691. <cluster_schema/>
  1692. <remotesteps>
  1693. <input>
  1694. </input>
  1695. <output>
  1696. </output>
  1697. </remotesteps>
  1698. <GUI>
  1699. <xloc>336</xloc>
  1700. <yloc>64</yloc>
  1701. <draw>Y</draw>
  1702. </GUI>
  1703. </step>
  1704. <step>
  1705. <name>表输入-主id</name>
  1706. <type>TableInput</type>
  1707. <description/>
  1708. <distribute>Y</distribute>
  1709. <custom_distribution/>
  1710. <copies>1</copies>
  1711. <partitioning>
  1712. <method>none</method>
  1713. <schema_name/>
  1714. </partitioning>
  1715. <connection>MOM</connection>
  1716. <sql>SELECT
  1717. interface_id as master_interface_id,
  1718. id as mom_task_out_id
  1719. FROM wms_task_out
  1720. WHERE interface_id =0${interface_id} AND bill_type =7</sql>
  1721. <limit>0</limit>
  1722. <lookup/>
  1723. <execute_each_row>N</execute_each_row>
  1724. <variables_active>Y</variables_active>
  1725. <lazy_conversion_active>N</lazy_conversion_active>
  1726. <cached_row_meta_active>N</cached_row_meta_active>
  1727. <row-meta>
  1728. <value-meta>
  1729. <type>Integer</type>
  1730. <storagetype>normal</storagetype>
  1731. <name>master_interface_id</name>
  1732. <length>9</length>
  1733. <precision>0</precision>
  1734. <origin>表输入-主id</origin>
  1735. <comments>master_interface_id</comments>
  1736. <conversion_Mask>####0;-####0</conversion_Mask>
  1737. <decimal_symbol>.</decimal_symbol>
  1738. <grouping_symbol>,</grouping_symbol>
  1739. <currency_symbol/>
  1740. <trim_type>none</trim_type>
  1741. <case_insensitive>N</case_insensitive>
  1742. <collator_disabled>Y</collator_disabled>
  1743. <collator_strength>0</collator_strength>
  1744. <sort_descending>N</sort_descending>
  1745. <output_padding>N</output_padding>
  1746. <date_format_lenient>N</date_format_lenient>
  1747. <date_format_locale>zh_CN</date_format_locale>
  1748. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1749. <lenient_string_to_number>N</lenient_string_to_number>
  1750. </value-meta>
  1751. <value-meta>
  1752. <type>String</type>
  1753. <storagetype>normal</storagetype>
  1754. <name>mom_task_out_id</name>
  1755. <length>20</length>
  1756. <precision>-1</precision>
  1757. <origin>表输入-主id</origin>
  1758. <comments>mom_task_out_id</comments>
  1759. <conversion_Mask/>
  1760. <decimal_symbol>.</decimal_symbol>
  1761. <grouping_symbol>,</grouping_symbol>
  1762. <currency_symbol/>
  1763. <trim_type>none</trim_type>
  1764. <case_insensitive>N</case_insensitive>
  1765. <collator_disabled>Y</collator_disabled>
  1766. <collator_strength>0</collator_strength>
  1767. <sort_descending>N</sort_descending>
  1768. <output_padding>N</output_padding>
  1769. <date_format_lenient>N</date_format_lenient>
  1770. <date_format_locale>zh_CN</date_format_locale>
  1771. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1772. <lenient_string_to_number>N</lenient_string_to_number>
  1773. </value-meta>
  1774. </row-meta>
  1775. <attributes/>
  1776. <cluster_schema/>
  1777. <remotesteps>
  1778. <input>
  1779. </input>
  1780. <output>
  1781. </output>
  1782. </remotesteps>
  1783. <GUI>
  1784. <xloc>208</xloc>
  1785. <yloc>144</yloc>
  1786. <draw>Y</draw>
  1787. </GUI>
  1788. </step>
  1789. <step_error_handling>
  1790. </step_error_handling>
  1791. <slave-step-copy-partition-distribution>
  1792. </slave-step-copy-partition-distribution>
  1793. <slave_transformation>N</slave_transformation>
  1794. <attributes/>
  1795. </transformation>