采购到货单子表数据同步.ktr 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531
  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>流查询-mom物料档案</from>
  585. <to>插入 / 更新</to>
  586. <enabled>Y</enabled>
  587. </hop>
  588. <hop>
  589. <from>表输入-mom物料档案</from>
  590. <to>流查询-mom物料档案</to>
  591. <enabled>Y</enabled>
  592. </hop>
  593. <hop>
  594. <from>流查询-主id</from>
  595. <to>流查询-mom物料档案</to>
  596. <enabled>Y</enabled>
  597. </hop>
  598. <hop>
  599. <from>表输入</from>
  600. <to>Java 代码-子id</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. </order>
  614. <step>
  615. <name>Java 代码-子id</name>
  616. <type>UserDefinedJavaClass</type>
  617. <description/>
  618. <distribute>Y</distribute>
  619. <custom_distribution/>
  620. <copies>1</copies>
  621. <partitioning>
  622. <method>none</method>
  623. <schema_name/>
  624. </partitioning>
  625. <definitions>
  626. <definition>
  627. <class_type>TRANSFORM_CLASS</class_type>
  628. <class_name>Processor</class_name>
  629. <class_source>//import com.cath.set.util.CodeRuleUtil;
  630. import com.cath.util.SnowflakeIdWorkerUtil;
  631. SnowflakeIdWorkerUtil snowflakeIdWorkerUtil = new SnowflakeIdWorkerUtil(3, 5, 5);
  632. public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException {
  633. if (first) {
  634. first = false;
  635. }
  636. Object[] r = getRow();
  637. if (r == null) {
  638. setOutputDone();
  639. return false;
  640. }
  641. r = createOutputRow(r, data.outputRowMeta.size());
  642. String id = String.valueOf(snowflakeIdWorkerUtil.nextId());
  643. get(Fields.Out, "id").setValue(r, id);
  644. putRow(data.outputRowMeta, r);
  645. return true;
  646. }
  647. </class_source>
  648. </definition>
  649. </definitions>
  650. <fields>
  651. <field>
  652. <field_name>id</field_name>
  653. <field_type>String</field_type>
  654. <field_length>-1</field_length>
  655. <field_precision>-1</field_precision>
  656. </field>
  657. </fields>
  658. <clear_result_fields>N</clear_result_fields>
  659. <info_steps/>
  660. <target_steps/>
  661. <usage_parameters/>
  662. <attributes/>
  663. <cluster_schema/>
  664. <remotesteps>
  665. <input>
  666. </input>
  667. <output>
  668. </output>
  669. </remotesteps>
  670. <GUI>
  671. <xloc>256</xloc>
  672. <yloc>128</yloc>
  673. <draw>Y</draw>
  674. </GUI>
  675. </step>
  676. <step>
  677. <name>插入 / 更新</name>
  678. <type>InsertUpdate</type>
  679. <description/>
  680. <distribute>Y</distribute>
  681. <custom_distribution/>
  682. <copies>1</copies>
  683. <partitioning>
  684. <method>none</method>
  685. <schema_name/>
  686. </partitioning>
  687. <connection>MOM</connection>
  688. <commit>1000</commit>
  689. <update_bypassed>Y</update_bypassed>
  690. <lookup>
  691. <schema/>
  692. <table>wms_task_ins</table>
  693. <key>
  694. <name>interface_id</name>
  695. <field>interface_id</field>
  696. <condition>=</condition>
  697. <name2/>
  698. </key>
  699. <key>
  700. <name>mom_task_in_id</name>
  701. <field>task_in_id</field>
  702. <condition>=</condition>
  703. <name2/>
  704. </key>
  705. <value>
  706. <name>interface_id</name>
  707. <rename>interface_id</rename>
  708. <update>N</update>
  709. </value>
  710. <value>
  711. <name>interface_row</name>
  712. <rename>interface_row</rename>
  713. <update>N</update>
  714. </value>
  715. <value>
  716. <name>id</name>
  717. <rename>id</rename>
  718. <update>N</update>
  719. </value>
  720. <value>
  721. <name>task_in_id</name>
  722. <rename>mom_task_in_id</rename>
  723. <update>N</update>
  724. </value>
  725. <value>
  726. <name>row_number</name>
  727. <rename>row_number</rename>
  728. <update>N</update>
  729. </value>
  730. <value>
  731. <name>material_code</name>
  732. <rename>material_code</rename>
  733. <update>N</update>
  734. </value>
  735. <value>
  736. <name>task_qty</name>
  737. <rename>task_qty</rename>
  738. <update>N</update>
  739. </value>
  740. <value>
  741. <name>unit_code</name>
  742. <rename>unit_code</rename>
  743. <update>N</update>
  744. </value>
  745. <value>
  746. <name>excess_ratio_in</name>
  747. <rename>mom_excess_ratio_in</rename>
  748. <update>N</update>
  749. </value>
  750. <value>
  751. <name>warehouse_code</name>
  752. <rename>mom_warehouse_code</rename>
  753. <update>N</update>
  754. </value>
  755. <value>
  756. <name>location_code</name>
  757. <rename>mom_location_code</rename>
  758. <update>N</update>
  759. </value>
  760. <value>
  761. <name>batch1</name>
  762. <rename>batch1</rename>
  763. <update>N</update>
  764. </value>
  765. <value>
  766. <name>batch2</name>
  767. <rename>batch2</rename>
  768. <update>N</update>
  769. </value>
  770. <value>
  771. <name>status</name>
  772. <rename>status</rename>
  773. <update>N</update>
  774. </value>
  775. <value>
  776. <name>is_close</name>
  777. <rename>is_close</rename>
  778. <update>N</update>
  779. </value>
  780. <value>
  781. <name>create_id</name>
  782. <rename>sync_id</rename>
  783. <update>N</update>
  784. </value>
  785. <value>
  786. <name>create_by</name>
  787. <rename>sync_name</rename>
  788. <update>N</update>
  789. </value>
  790. <value>
  791. <name>create_time</name>
  792. <rename>sync_time</rename>
  793. <update>N</update>
  794. </value>
  795. <value>
  796. <name>audit_by</name>
  797. <rename>sync_name</rename>
  798. <update>N</update>
  799. </value>
  800. <value>
  801. <name>audit_time</name>
  802. <rename>sync_time</rename>
  803. <update>N</update>
  804. </value>
  805. </lookup>
  806. <attributes/>
  807. <cluster_schema/>
  808. <remotesteps>
  809. <input>
  810. </input>
  811. <output>
  812. </output>
  813. </remotesteps>
  814. <GUI>
  815. <xloc>736</xloc>
  816. <yloc>128</yloc>
  817. <draw>Y</draw>
  818. </GUI>
  819. </step>
  820. <step>
  821. <name>流查询-mom物料档案</name>
  822. <type>StreamLookup</type>
  823. <description/>
  824. <distribute>Y</distribute>
  825. <custom_distribution/>
  826. <copies>1</copies>
  827. <partitioning>
  828. <method>none</method>
  829. <schema_name/>
  830. </partitioning>
  831. <from>表输入-mom物料档案</from>
  832. <input_sorted>N</input_sorted>
  833. <preserve_memory>N</preserve_memory>
  834. <sorted_list>N</sorted_list>
  835. <integer_pair>N</integer_pair>
  836. <lookup>
  837. <key>
  838. <name>material_code</name>
  839. <field>mom_material_code</field>
  840. </key>
  841. <value>
  842. <name>mom_warehouse_code</name>
  843. <rename>mom_warehouse_code</rename>
  844. <default/>
  845. <type>String</type>
  846. </value>
  847. <value>
  848. <name>mom_location_code</name>
  849. <rename>mom_location_code</rename>
  850. <default/>
  851. <type>String</type>
  852. </value>
  853. <value>
  854. <name>mom_excess_ratio_in</name>
  855. <rename>mom_excess_ratio_in</rename>
  856. <default/>
  857. <type>BigNumber</type>
  858. </value>
  859. </lookup>
  860. <attributes/>
  861. <cluster_schema/>
  862. <remotesteps>
  863. <input>
  864. </input>
  865. <output>
  866. </output>
  867. </remotesteps>
  868. <GUI>
  869. <xloc>592</xloc>
  870. <yloc>128</yloc>
  871. <draw>Y</draw>
  872. </GUI>
  873. </step>
  874. <step>
  875. <name>流查询-主id</name>
  876. <type>StreamLookup</type>
  877. <description/>
  878. <distribute>Y</distribute>
  879. <custom_distribution/>
  880. <copies>1</copies>
  881. <partitioning>
  882. <method>none</method>
  883. <schema_name/>
  884. </partitioning>
  885. <from>表输入-主id</from>
  886. <input_sorted>N</input_sorted>
  887. <preserve_memory>N</preserve_memory>
  888. <sorted_list>N</sorted_list>
  889. <integer_pair>N</integer_pair>
  890. <lookup>
  891. <key>
  892. <name>master_interface_id</name>
  893. <field>master_interface_id</field>
  894. </key>
  895. <value>
  896. <name>mom_task_in_id</name>
  897. <rename>mom_task_in_id</rename>
  898. <default/>
  899. <type>String</type>
  900. </value>
  901. </lookup>
  902. <attributes/>
  903. <cluster_schema/>
  904. <remotesteps>
  905. <input>
  906. </input>
  907. <output>
  908. </output>
  909. </remotesteps>
  910. <GUI>
  911. <xloc>432</xloc>
  912. <yloc>128</yloc>
  913. <draw>Y</draw>
  914. </GUI>
  915. </step>
  916. <step>
  917. <name>表输入</name>
  918. <type>TableInput</type>
  919. <description/>
  920. <distribute>Y</distribute>
  921. <custom_distribution/>
  922. <copies>1</copies>
  923. <partitioning>
  924. <method>none</method>
  925. <schema_name/>
  926. </partitioning>
  927. <connection>U8</connection>
  928. <sql>DECLARE @USER_NAME VARCHAR(50),@USER_ID INT
  929. SET @USER_NAME = CASE '${USER_NAME}' WHEN '' THEN '管理员(kettle)' ELSE '${USER_NAME}' END
  930. SET @USER_ID = CASE 0${USER_ID} WHEN 0 THEN 1 ELSE 0${USER_ID} END
  931. SELECT
  932. 0${interface_id} AS master_interface_id
  933. ,T2.Autoid AS interface_id
  934. ,T2.iVouchRowNo AS interface_row
  935. ,ROW_NUMBER()OVER(ORDER BY T2.iVouchRowNo) AS row_number
  936. ,T2.cInvCode AS material_code
  937. ,T2.iQuantity AS task_qty
  938. ,T6.cComUnitCode AS unit_code
  939. ,T2.cBatch AS batch1
  940. ,T2.cBatchProperty6 AS batch2
  941. ,0 AS status
  942. ,1 AS is_close
  943. ,@USER_NAME AS sync_name
  944. ,@USER_ID AS sync_id
  945. ,GETDATE() AS sync_time
  946. FROM PU_ArrivalVouch T1
  947. LEFT JOIN PU_ArrivalVouchs T2 ON T1.ID =T2.ID
  948. LEFT JOIN Inventory T6 ON T2.cInvCode =T6.cInvCode
  949. WHERE 1=1
  950. AND T1.ID =0${interface_id}
  951. </sql>
  952. <limit>0</limit>
  953. <lookup/>
  954. <execute_each_row>N</execute_each_row>
  955. <variables_active>Y</variables_active>
  956. <lazy_conversion_active>N</lazy_conversion_active>
  957. <cached_row_meta_active>N</cached_row_meta_active>
  958. <row-meta>
  959. <value-meta>
  960. <type>Integer</type>
  961. <storagetype>normal</storagetype>
  962. <name>interface_id</name>
  963. <length>9</length>
  964. <precision>0</precision>
  965. <origin>表输入</origin>
  966. <comments>interface_id</comments>
  967. <conversion_Mask>####0;-####0</conversion_Mask>
  968. <decimal_symbol>.</decimal_symbol>
  969. <grouping_symbol>,</grouping_symbol>
  970. <currency_symbol/>
  971. <trim_type>none</trim_type>
  972. <case_insensitive>N</case_insensitive>
  973. <collator_disabled>Y</collator_disabled>
  974. <collator_strength>0</collator_strength>
  975. <sort_descending>N</sort_descending>
  976. <output_padding>N</output_padding>
  977. <date_format_lenient>N</date_format_lenient>
  978. <date_format_locale>zh_CN</date_format_locale>
  979. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  980. <lenient_string_to_number>N</lenient_string_to_number>
  981. </value-meta>
  982. <value-meta>
  983. <type>Integer</type>
  984. <storagetype>normal</storagetype>
  985. <name>interface_row</name>
  986. <length>9</length>
  987. <precision>0</precision>
  988. <origin>表输入</origin>
  989. <comments>interface_row</comments>
  990. <conversion_Mask>####0;-####0</conversion_Mask>
  991. <decimal_symbol>.</decimal_symbol>
  992. <grouping_symbol>,</grouping_symbol>
  993. <currency_symbol/>
  994. <trim_type>none</trim_type>
  995. <case_insensitive>N</case_insensitive>
  996. <collator_disabled>Y</collator_disabled>
  997. <collator_strength>0</collator_strength>
  998. <sort_descending>N</sort_descending>
  999. <output_padding>N</output_padding>
  1000. <date_format_lenient>N</date_format_lenient>
  1001. <date_format_locale>zh_CN</date_format_locale>
  1002. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1003. <lenient_string_to_number>N</lenient_string_to_number>
  1004. </value-meta>
  1005. <value-meta>
  1006. <type>Integer</type>
  1007. <storagetype>normal</storagetype>
  1008. <name>task_in_id</name>
  1009. <length>9</length>
  1010. <precision>0</precision>
  1011. <origin>表输入</origin>
  1012. <comments>task_in_id</comments>
  1013. <conversion_Mask>####0;-####0</conversion_Mask>
  1014. <decimal_symbol>.</decimal_symbol>
  1015. <grouping_symbol>,</grouping_symbol>
  1016. <currency_symbol/>
  1017. <trim_type>none</trim_type>
  1018. <case_insensitive>N</case_insensitive>
  1019. <collator_disabled>Y</collator_disabled>
  1020. <collator_strength>0</collator_strength>
  1021. <sort_descending>N</sort_descending>
  1022. <output_padding>N</output_padding>
  1023. <date_format_lenient>N</date_format_lenient>
  1024. <date_format_locale>zh_CN</date_format_locale>
  1025. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1026. <lenient_string_to_number>N</lenient_string_to_number>
  1027. </value-meta>
  1028. <value-meta>
  1029. <type>Integer</type>
  1030. <storagetype>normal</storagetype>
  1031. <name>row_number</name>
  1032. <length>15</length>
  1033. <precision>0</precision>
  1034. <origin>表输入</origin>
  1035. <comments>row_number</comments>
  1036. <conversion_Mask>####0;-####0</conversion_Mask>
  1037. <decimal_symbol>.</decimal_symbol>
  1038. <grouping_symbol>,</grouping_symbol>
  1039. <currency_symbol/>
  1040. <trim_type>none</trim_type>
  1041. <case_insensitive>N</case_insensitive>
  1042. <collator_disabled>Y</collator_disabled>
  1043. <collator_strength>0</collator_strength>
  1044. <sort_descending>N</sort_descending>
  1045. <output_padding>N</output_padding>
  1046. <date_format_lenient>N</date_format_lenient>
  1047. <date_format_locale>zh_CN</date_format_locale>
  1048. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1049. <lenient_string_to_number>N</lenient_string_to_number>
  1050. </value-meta>
  1051. <value-meta>
  1052. <type>String</type>
  1053. <storagetype>normal</storagetype>
  1054. <name>material_code</name>
  1055. <length>60</length>
  1056. <precision>-1</precision>
  1057. <origin>表输入</origin>
  1058. <comments>material_code</comments>
  1059. <conversion_Mask/>
  1060. <decimal_symbol>.</decimal_symbol>
  1061. <grouping_symbol>,</grouping_symbol>
  1062. <currency_symbol/>
  1063. <trim_type>none</trim_type>
  1064. <case_insensitive>N</case_insensitive>
  1065. <collator_disabled>Y</collator_disabled>
  1066. <collator_strength>0</collator_strength>
  1067. <sort_descending>N</sort_descending>
  1068. <output_padding>N</output_padding>
  1069. <date_format_lenient>N</date_format_lenient>
  1070. <date_format_locale>zh_CN</date_format_locale>
  1071. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1072. <lenient_string_to_number>N</lenient_string_to_number>
  1073. </value-meta>
  1074. <value-meta>
  1075. <type>BigNumber</type>
  1076. <storagetype>normal</storagetype>
  1077. <name>task_qty</name>
  1078. <length>20</length>
  1079. <precision>6</precision>
  1080. <origin>表输入</origin>
  1081. <comments>task_qty</comments>
  1082. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1083. <decimal_symbol>.</decimal_symbol>
  1084. <grouping_symbol/>
  1085. <currency_symbol/>
  1086. <trim_type>none</trim_type>
  1087. <case_insensitive>N</case_insensitive>
  1088. <collator_disabled>Y</collator_disabled>
  1089. <collator_strength>0</collator_strength>
  1090. <sort_descending>N</sort_descending>
  1091. <output_padding>N</output_padding>
  1092. <date_format_lenient>N</date_format_lenient>
  1093. <date_format_locale>zh_CN</date_format_locale>
  1094. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1095. <lenient_string_to_number>N</lenient_string_to_number>
  1096. </value-meta>
  1097. <value-meta>
  1098. <type>String</type>
  1099. <storagetype>normal</storagetype>
  1100. <name>unit_code</name>
  1101. <length>35</length>
  1102. <precision>-1</precision>
  1103. <origin>表输入</origin>
  1104. <comments>unit_code</comments>
  1105. <conversion_Mask/>
  1106. <decimal_symbol>.</decimal_symbol>
  1107. <grouping_symbol>,</grouping_symbol>
  1108. <currency_symbol/>
  1109. <trim_type>none</trim_type>
  1110. <case_insensitive>N</case_insensitive>
  1111. <collator_disabled>Y</collator_disabled>
  1112. <collator_strength>0</collator_strength>
  1113. <sort_descending>N</sort_descending>
  1114. <output_padding>N</output_padding>
  1115. <date_format_lenient>N</date_format_lenient>
  1116. <date_format_locale>zh_CN</date_format_locale>
  1117. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1118. <lenient_string_to_number>N</lenient_string_to_number>
  1119. </value-meta>
  1120. <value-meta>
  1121. <type>String</type>
  1122. <storagetype>normal</storagetype>
  1123. <name>batch1</name>
  1124. <length>60</length>
  1125. <precision>-1</precision>
  1126. <origin>表输入</origin>
  1127. <comments>batch1</comments>
  1128. <conversion_Mask/>
  1129. <decimal_symbol>.</decimal_symbol>
  1130. <grouping_symbol>,</grouping_symbol>
  1131. <currency_symbol/>
  1132. <trim_type>none</trim_type>
  1133. <case_insensitive>N</case_insensitive>
  1134. <collator_disabled>Y</collator_disabled>
  1135. <collator_strength>0</collator_strength>
  1136. <sort_descending>N</sort_descending>
  1137. <output_padding>N</output_padding>
  1138. <date_format_lenient>N</date_format_lenient>
  1139. <date_format_locale>zh_CN</date_format_locale>
  1140. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1141. <lenient_string_to_number>N</lenient_string_to_number>
  1142. </value-meta>
  1143. <value-meta>
  1144. <type>String</type>
  1145. <storagetype>normal</storagetype>
  1146. <name>batch2</name>
  1147. <length>120</length>
  1148. <precision>-1</precision>
  1149. <origin>表输入</origin>
  1150. <comments>batch2</comments>
  1151. <conversion_Mask/>
  1152. <decimal_symbol>.</decimal_symbol>
  1153. <grouping_symbol>,</grouping_symbol>
  1154. <currency_symbol/>
  1155. <trim_type>none</trim_type>
  1156. <case_insensitive>N</case_insensitive>
  1157. <collator_disabled>Y</collator_disabled>
  1158. <collator_strength>0</collator_strength>
  1159. <sort_descending>N</sort_descending>
  1160. <output_padding>N</output_padding>
  1161. <date_format_lenient>N</date_format_lenient>
  1162. <date_format_locale>zh_CN</date_format_locale>
  1163. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1164. <lenient_string_to_number>N</lenient_string_to_number>
  1165. </value-meta>
  1166. <value-meta>
  1167. <type>Integer</type>
  1168. <storagetype>normal</storagetype>
  1169. <name>status</name>
  1170. <length>9</length>
  1171. <precision>0</precision>
  1172. <origin>表输入</origin>
  1173. <comments>status</comments>
  1174. <conversion_Mask>####0;-####0</conversion_Mask>
  1175. <decimal_symbol>.</decimal_symbol>
  1176. <grouping_symbol>,</grouping_symbol>
  1177. <currency_symbol/>
  1178. <trim_type>none</trim_type>
  1179. <case_insensitive>N</case_insensitive>
  1180. <collator_disabled>Y</collator_disabled>
  1181. <collator_strength>0</collator_strength>
  1182. <sort_descending>N</sort_descending>
  1183. <output_padding>N</output_padding>
  1184. <date_format_lenient>N</date_format_lenient>
  1185. <date_format_locale>zh_CN</date_format_locale>
  1186. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1187. <lenient_string_to_number>N</lenient_string_to_number>
  1188. </value-meta>
  1189. <value-meta>
  1190. <type>Integer</type>
  1191. <storagetype>normal</storagetype>
  1192. <name>is_close</name>
  1193. <length>9</length>
  1194. <precision>0</precision>
  1195. <origin>表输入</origin>
  1196. <comments>is_close</comments>
  1197. <conversion_Mask>####0;-####0</conversion_Mask>
  1198. <decimal_symbol>.</decimal_symbol>
  1199. <grouping_symbol>,</grouping_symbol>
  1200. <currency_symbol/>
  1201. <trim_type>none</trim_type>
  1202. <case_insensitive>N</case_insensitive>
  1203. <collator_disabled>Y</collator_disabled>
  1204. <collator_strength>0</collator_strength>
  1205. <sort_descending>N</sort_descending>
  1206. <output_padding>N</output_padding>
  1207. <date_format_lenient>N</date_format_lenient>
  1208. <date_format_locale>zh_CN</date_format_locale>
  1209. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1210. <lenient_string_to_number>N</lenient_string_to_number>
  1211. </value-meta>
  1212. <value-meta>
  1213. <type>String</type>
  1214. <storagetype>normal</storagetype>
  1215. <name>sync_name</name>
  1216. <length>6</length>
  1217. <precision>-1</precision>
  1218. <origin>表输入</origin>
  1219. <comments>sync_name</comments>
  1220. <conversion_Mask/>
  1221. <decimal_symbol>.</decimal_symbol>
  1222. <grouping_symbol>,</grouping_symbol>
  1223. <currency_symbol/>
  1224. <trim_type>none</trim_type>
  1225. <case_insensitive>N</case_insensitive>
  1226. <collator_disabled>Y</collator_disabled>
  1227. <collator_strength>0</collator_strength>
  1228. <sort_descending>N</sort_descending>
  1229. <output_padding>N</output_padding>
  1230. <date_format_lenient>N</date_format_lenient>
  1231. <date_format_locale>zh_CN</date_format_locale>
  1232. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1233. <lenient_string_to_number>N</lenient_string_to_number>
  1234. </value-meta>
  1235. <value-meta>
  1236. <type>Integer</type>
  1237. <storagetype>normal</storagetype>
  1238. <name>sync_id</name>
  1239. <length>9</length>
  1240. <precision>0</precision>
  1241. <origin>表输入</origin>
  1242. <comments>sync_id</comments>
  1243. <conversion_Mask>####0;-####0</conversion_Mask>
  1244. <decimal_symbol>.</decimal_symbol>
  1245. <grouping_symbol>,</grouping_symbol>
  1246. <currency_symbol/>
  1247. <trim_type>none</trim_type>
  1248. <case_insensitive>N</case_insensitive>
  1249. <collator_disabled>Y</collator_disabled>
  1250. <collator_strength>0</collator_strength>
  1251. <sort_descending>N</sort_descending>
  1252. <output_padding>N</output_padding>
  1253. <date_format_lenient>N</date_format_lenient>
  1254. <date_format_locale>zh_CN</date_format_locale>
  1255. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1256. <lenient_string_to_number>N</lenient_string_to_number>
  1257. </value-meta>
  1258. <value-meta>
  1259. <type>Timestamp</type>
  1260. <storagetype>normal</storagetype>
  1261. <name>sync_time</name>
  1262. <length>3</length>
  1263. <precision>-1</precision>
  1264. <origin>表输入</origin>
  1265. <comments>sync_time</comments>
  1266. <conversion_Mask/>
  1267. <decimal_symbol>.</decimal_symbol>
  1268. <grouping_symbol>,</grouping_symbol>
  1269. <currency_symbol/>
  1270. <trim_type>none</trim_type>
  1271. <case_insensitive>N</case_insensitive>
  1272. <collator_disabled>Y</collator_disabled>
  1273. <collator_strength>0</collator_strength>
  1274. <sort_descending>N</sort_descending>
  1275. <output_padding>N</output_padding>
  1276. <date_format_lenient>N</date_format_lenient>
  1277. <date_format_locale>zh_CN</date_format_locale>
  1278. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1279. <lenient_string_to_number>N</lenient_string_to_number>
  1280. </value-meta>
  1281. </row-meta>
  1282. <attributes/>
  1283. <cluster_schema/>
  1284. <remotesteps>
  1285. <input>
  1286. </input>
  1287. <output>
  1288. </output>
  1289. </remotesteps>
  1290. <GUI>
  1291. <xloc>128</xloc>
  1292. <yloc>128</yloc>
  1293. <draw>Y</draw>
  1294. </GUI>
  1295. </step>
  1296. <step>
  1297. <name>表输入-mom物料档案</name>
  1298. <type>TableInput</type>
  1299. <description/>
  1300. <distribute>Y</distribute>
  1301. <custom_distribution/>
  1302. <copies>1</copies>
  1303. <partitioning>
  1304. <method>none</method>
  1305. <schema_name/>
  1306. </partitioning>
  1307. <connection>MOM</connection>
  1308. <sql>SELECT
  1309. material_code AS mom_material_code
  1310. ,excess_ratio_in AS mom_excess_ratio_in
  1311. ,warehouse_code_in AS mom_warehouse_code
  1312. ,location_code_in AS mom_location_code
  1313. FROM base_material</sql>
  1314. <limit>0</limit>
  1315. <lookup/>
  1316. <execute_each_row>N</execute_each_row>
  1317. <variables_active>N</variables_active>
  1318. <lazy_conversion_active>N</lazy_conversion_active>
  1319. <cached_row_meta_active>N</cached_row_meta_active>
  1320. <row-meta>
  1321. <value-meta>
  1322. <type>String</type>
  1323. <storagetype>normal</storagetype>
  1324. <name>material_code</name>
  1325. <length>50</length>
  1326. <precision>-1</precision>
  1327. <origin>表输入-mom物料档案</origin>
  1328. <comments>material_code</comments>
  1329. <conversion_Mask/>
  1330. <decimal_symbol>.</decimal_symbol>
  1331. <grouping_symbol>,</grouping_symbol>
  1332. <currency_symbol/>
  1333. <trim_type>none</trim_type>
  1334. <case_insensitive>N</case_insensitive>
  1335. <collator_disabled>Y</collator_disabled>
  1336. <collator_strength>0</collator_strength>
  1337. <sort_descending>N</sort_descending>
  1338. <output_padding>N</output_padding>
  1339. <date_format_lenient>N</date_format_lenient>
  1340. <date_format_locale>zh_CN</date_format_locale>
  1341. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1342. <lenient_string_to_number>N</lenient_string_to_number>
  1343. </value-meta>
  1344. <value-meta>
  1345. <type>BigNumber</type>
  1346. <storagetype>normal</storagetype>
  1347. <name>excess_ratio_in</name>
  1348. <length>24</length>
  1349. <precision>6</precision>
  1350. <origin>表输入-mom物料档案</origin>
  1351. <comments>excess_ratio_in</comments>
  1352. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1353. <decimal_symbol>.</decimal_symbol>
  1354. <grouping_symbol/>
  1355. <currency_symbol/>
  1356. <trim_type>none</trim_type>
  1357. <case_insensitive>N</case_insensitive>
  1358. <collator_disabled>Y</collator_disabled>
  1359. <collator_strength>0</collator_strength>
  1360. <sort_descending>N</sort_descending>
  1361. <output_padding>N</output_padding>
  1362. <date_format_lenient>N</date_format_lenient>
  1363. <date_format_locale>zh_CN</date_format_locale>
  1364. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1365. <lenient_string_to_number>N</lenient_string_to_number>
  1366. </value-meta>
  1367. <value-meta>
  1368. <type>String</type>
  1369. <storagetype>normal</storagetype>
  1370. <name>warehouse_code</name>
  1371. <length>50</length>
  1372. <precision>-1</precision>
  1373. <origin>表输入-mom物料档案</origin>
  1374. <comments>warehouse_code</comments>
  1375. <conversion_Mask/>
  1376. <decimal_symbol>.</decimal_symbol>
  1377. <grouping_symbol>,</grouping_symbol>
  1378. <currency_symbol/>
  1379. <trim_type>none</trim_type>
  1380. <case_insensitive>N</case_insensitive>
  1381. <collator_disabled>Y</collator_disabled>
  1382. <collator_strength>0</collator_strength>
  1383. <sort_descending>N</sort_descending>
  1384. <output_padding>N</output_padding>
  1385. <date_format_lenient>N</date_format_lenient>
  1386. <date_format_locale>zh_CN</date_format_locale>
  1387. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1388. <lenient_string_to_number>N</lenient_string_to_number>
  1389. </value-meta>
  1390. <value-meta>
  1391. <type>String</type>
  1392. <storagetype>normal</storagetype>
  1393. <name>location_code</name>
  1394. <length>50</length>
  1395. <precision>-1</precision>
  1396. <origin>表输入-mom物料档案</origin>
  1397. <comments>location_code</comments>
  1398. <conversion_Mask/>
  1399. <decimal_symbol>.</decimal_symbol>
  1400. <grouping_symbol>,</grouping_symbol>
  1401. <currency_symbol/>
  1402. <trim_type>none</trim_type>
  1403. <case_insensitive>N</case_insensitive>
  1404. <collator_disabled>Y</collator_disabled>
  1405. <collator_strength>0</collator_strength>
  1406. <sort_descending>N</sort_descending>
  1407. <output_padding>N</output_padding>
  1408. <date_format_lenient>N</date_format_lenient>
  1409. <date_format_locale>zh_CN</date_format_locale>
  1410. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1411. <lenient_string_to_number>N</lenient_string_to_number>
  1412. </value-meta>
  1413. </row-meta>
  1414. <attributes/>
  1415. <cluster_schema/>
  1416. <remotesteps>
  1417. <input>
  1418. </input>
  1419. <output>
  1420. </output>
  1421. </remotesteps>
  1422. <GUI>
  1423. <xloc>464</xloc>
  1424. <yloc>224</yloc>
  1425. <draw>Y</draw>
  1426. </GUI>
  1427. </step>
  1428. <step>
  1429. <name>表输入-主id</name>
  1430. <type>TableInput</type>
  1431. <description/>
  1432. <distribute>Y</distribute>
  1433. <custom_distribution/>
  1434. <copies>1</copies>
  1435. <partitioning>
  1436. <method>none</method>
  1437. <schema_name/>
  1438. </partitioning>
  1439. <connection>MOM</connection>
  1440. <sql>SELECT
  1441. 0${interface_id} as master_interface_id,
  1442. id as mom_task_in_id
  1443. FROM wms_task_in
  1444. WHERE interface_id =0${interface_id} AND bill_type =5
  1445. </sql>
  1446. <limit>0</limit>
  1447. <lookup/>
  1448. <execute_each_row>N</execute_each_row>
  1449. <variables_active>Y</variables_active>
  1450. <lazy_conversion_active>N</lazy_conversion_active>
  1451. <cached_row_meta_active>N</cached_row_meta_active>
  1452. <row-meta>
  1453. <value-meta>
  1454. <type>Integer</type>
  1455. <storagetype>normal</storagetype>
  1456. <name>master_interface_id</name>
  1457. <length>15</length>
  1458. <precision>0</precision>
  1459. <origin>表输入-主id</origin>
  1460. <comments>master_interface_id</comments>
  1461. <conversion_Mask>####0;-####0</conversion_Mask>
  1462. <decimal_symbol>.</decimal_symbol>
  1463. <grouping_symbol>,</grouping_symbol>
  1464. <currency_symbol/>
  1465. <trim_type>none</trim_type>
  1466. <case_insensitive>N</case_insensitive>
  1467. <collator_disabled>Y</collator_disabled>
  1468. <collator_strength>0</collator_strength>
  1469. <sort_descending>N</sort_descending>
  1470. <output_padding>N</output_padding>
  1471. <date_format_lenient>N</date_format_lenient>
  1472. <date_format_locale>zh_CN</date_format_locale>
  1473. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1474. <lenient_string_to_number>N</lenient_string_to_number>
  1475. </value-meta>
  1476. <value-meta>
  1477. <type>String</type>
  1478. <storagetype>normal</storagetype>
  1479. <name>mom_task_in_id</name>
  1480. <length>20</length>
  1481. <precision>-1</precision>
  1482. <origin>表输入-主id</origin>
  1483. <comments>mom_task_in_id</comments>
  1484. <conversion_Mask/>
  1485. <decimal_symbol>.</decimal_symbol>
  1486. <grouping_symbol>,</grouping_symbol>
  1487. <currency_symbol/>
  1488. <trim_type>none</trim_type>
  1489. <case_insensitive>N</case_insensitive>
  1490. <collator_disabled>Y</collator_disabled>
  1491. <collator_strength>0</collator_strength>
  1492. <sort_descending>N</sort_descending>
  1493. <output_padding>N</output_padding>
  1494. <date_format_lenient>N</date_format_lenient>
  1495. <date_format_locale>zh_CN</date_format_locale>
  1496. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1497. <lenient_string_to_number>N</lenient_string_to_number>
  1498. </value-meta>
  1499. </row-meta>
  1500. <attributes/>
  1501. <cluster_schema/>
  1502. <remotesteps>
  1503. <input>
  1504. </input>
  1505. <output>
  1506. </output>
  1507. </remotesteps>
  1508. <GUI>
  1509. <xloc>272</xloc>
  1510. <yloc>224</yloc>
  1511. <draw>Y</draw>
  1512. </GUI>
  1513. </step>
  1514. <step_error_handling>
  1515. </step_error_handling>
  1516. <slave-step-copy-partition-distribution>
  1517. </slave-step-copy-partition-distribution>
  1518. <slave_transformation>N</slave_transformation>
  1519. <attributes/>
  1520. </transformation>