委外订单产品子表数据同步.ktr 43 KB

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