采购退货单子表数据同步.ktr 55 KB

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