销售发货单子表数据同步.ktr 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816
  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>${mysql_host}</server>
  447. <type>MYSQL</type>
  448. <access>Native</access>
  449. <database>${mysql_dbname}</database>
  450. <port>3306</port>
  451. <username>${mysql_username}</username>
  452. <password>${mysql_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>GENERIC</type>
  527. <access>Native</access>
  528. <database>${U8DB_NAME}</database>
  529. <port>1433</port>
  530. <username>${sqlserver_username}</username>
  531. <password>${sqlserver_password}</password>
  532. <servername/>
  533. <data_tablespace/>
  534. <index_tablespace/>
  535. <attributes>
  536. <attribute>
  537. <code>CUSTOM_DRIVER_CLASS</code>
  538. <attribute>${sqlserver_driverclassname}</attribute>
  539. </attribute>
  540. <attribute>
  541. <code>CUSTOM_URL</code>
  542. <attribute>${sqlserver_url}</attribute>
  543. </attribute>
  544. <attribute>
  545. <code>DATABASE_DIALECT_ID</code>
  546. <attribute>Generic database</attribute>
  547. </attribute>
  548. <attribute>
  549. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  550. <attribute>N</attribute>
  551. </attribute>
  552. <attribute>
  553. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  554. <attribute>N</attribute>
  555. </attribute>
  556. <attribute>
  557. <code>IS_CLUSTERED</code>
  558. <attribute>N</attribute>
  559. </attribute>
  560. <attribute>
  561. <code>PORT_NUMBER</code>
  562. <attribute>1433</attribute>
  563. </attribute>
  564. <attribute>
  565. <code>PRESERVE_RESERVED_WORD_CASE</code>
  566. <attribute>Y</attribute>
  567. </attribute>
  568. <attribute>
  569. <code>QUOTE_ALL_FIELDS</code>
  570. <attribute>N</attribute>
  571. </attribute>
  572. <attribute>
  573. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  574. <attribute>Y</attribute>
  575. </attribute>
  576. <attribute>
  577. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  578. <attribute>Y</attribute>
  579. </attribute>
  580. <attribute>
  581. <code>USE_POOLING</code>
  582. <attribute>N</attribute>
  583. </attribute>
  584. </attributes>
  585. </connection>
  586. <order>
  587. <hop>
  588. <from>表输入</from>
  589. <to>Java 代码-id</to>
  590. <enabled>Y</enabled>
  591. </hop>
  592. <hop>
  593. <from>表输入-mom物料档案</from>
  594. <to>流查询-物料档案</to>
  595. <enabled>Y</enabled>
  596. </hop>
  597. <hop>
  598. <from>流查询-物料档案</from>
  599. <to>插入 / 更新</to>
  600. <enabled>Y</enabled>
  601. </hop>
  602. <hop>
  603. <from>表输入-主id</from>
  604. <to>流查询-主id</to>
  605. <enabled>Y</enabled>
  606. </hop>
  607. <hop>
  608. <from>Java 代码-id</from>
  609. <to>流查询-主id</to>
  610. <enabled>Y</enabled>
  611. </hop>
  612. <hop>
  613. <from>流查询-主id</from>
  614. <to>流查询-物料档案</to>
  615. <enabled>Y</enabled>
  616. </hop>
  617. <hop>
  618. <from>获取变量</from>
  619. <to>表输入</to>
  620. <enabled>Y</enabled>
  621. </hop>
  622. <hop>
  623. <from>获取变量</from>
  624. <to>表输入-主id</to>
  625. <enabled>Y</enabled>
  626. </hop>
  627. <hop>
  628. <from>获取变量</from>
  629. <to>表输入-mom物料档案</to>
  630. <enabled>Y</enabled>
  631. </hop>
  632. </order>
  633. <step>
  634. <name>Java 代码-id</name>
  635. <type>UserDefinedJavaClass</type>
  636. <description/>
  637. <distribute>N</distribute>
  638. <custom_distribution/>
  639. <copies>1</copies>
  640. <partitioning>
  641. <method>none</method>
  642. <schema_name/>
  643. </partitioning>
  644. <definitions>
  645. <definition>
  646. <class_type>TRANSFORM_CLASS</class_type>
  647. <class_name>Processor</class_name>
  648. <class_source>public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException {
  649. Object[] r = getRow();
  650. if (r == null) {
  651. setOutputDone();
  652. return false;
  653. }
  654. r = createOutputRow(r, data.outputRowMeta.size());
  655. if (snowflakeIdWorker == null) {
  656. snowflakeIdWorker = new SnowflakeIdWorker(1, 1); // 设置你的workerId和datacenterId
  657. }
  658. String id = String.valueOf(snowflakeIdWorker.nextId());
  659. get(Fields.Out, "id").setValue(r, id);
  660. putRow(data.outputRowMeta, r);
  661. return true;
  662. }
  663. // 定义全局变量(放在类顶部)
  664. private static SnowflakeIdWorker snowflakeIdWorker = null;
  665. // 内部类:雪花算法实现
  666. public static class SnowflakeIdWorker {
  667. private final long twepoch = 1288834974657L;
  668. private final long workerIdBits = 5L;
  669. private final long datacenterIdBits = 5L;
  670. private final long maxWorkerId = -1L ^ (-1L &lt;&lt; workerIdBits);
  671. private final long maxDatacenterId = -1L ^ (-1L &lt;&lt; datacenterIdBits);
  672. private final long sequenceBits = 12L;
  673. private final long workerIdShift = sequenceBits;
  674. private final long datacenterIdShift = sequenceBits + workerIdBits;
  675. private final long timestampLeftShift = sequenceBits + workerIdBits + datacenterIdBits;
  676. private final long sequenceMask = -1L ^ (-1L &lt;&lt; sequenceBits);
  677. private long workerId;
  678. private long datacenterId;
  679. private long sequence = 0L;
  680. private long lastTimestamp = -1L;
  681. public SnowflakeIdWorker(long workerId, long datacenterId) {
  682. if (workerId > maxWorkerId || workerId &lt; 0) {
  683. throw new IllegalArgumentException(String.format("worker Id can't be greater than %d or less than 0", maxWorkerId));
  684. }
  685. if (datacenterId > maxDatacenterId || datacenterId &lt; 0) {
  686. throw new IllegalArgumentException(String.format("datacenter Id can't be greater than %d or less than 0", maxDatacenterId));
  687. }
  688. this.workerId = workerId;
  689. this.datacenterId = datacenterId;
  690. }
  691. public synchronized long nextId() {
  692. long timestamp = timeGen();
  693. if (timestamp &lt; lastTimestamp) {
  694. throw new RuntimeException("Clock moved backwards. Refusing to generate id for " + (lastTimestamp - timestamp) + " milliseconds");
  695. }
  696. if (lastTimestamp == timestamp) {
  697. sequence = (sequence + 1) &amp; sequenceMask;
  698. if (sequence == 0) {
  699. timestamp = tilNextMillis(lastTimestamp);
  700. }
  701. } else {
  702. sequence = 0L;
  703. }
  704. lastTimestamp = timestamp;
  705. return ((timestamp - twepoch) &lt;&lt; timestampLeftShift)
  706. | (datacenterId &lt;&lt; datacenterIdShift)
  707. | (workerId &lt;&lt; workerIdShift)
  708. | sequence;
  709. }
  710. private long tilNextMillis(long lastTimestamp) {
  711. long timestamp = timeGen();
  712. while (timestamp &lt;= lastTimestamp) {
  713. timestamp = timeGen();
  714. }
  715. return timestamp;
  716. }
  717. private long timeGen() {
  718. return System.currentTimeMillis();
  719. }
  720. }</class_source>
  721. </definition>
  722. </definitions>
  723. <fields>
  724. <field>
  725. <field_name>id</field_name>
  726. <field_type>String</field_type>
  727. <field_length>-1</field_length>
  728. <field_precision>-1</field_precision>
  729. </field>
  730. </fields>
  731. <clear_result_fields>N</clear_result_fields>
  732. <info_steps/>
  733. <target_steps/>
  734. <usage_parameters/>
  735. <attributes/>
  736. <cluster_schema/>
  737. <remotesteps>
  738. <input>
  739. </input>
  740. <output>
  741. </output>
  742. </remotesteps>
  743. <GUI>
  744. <xloc>224</xloc>
  745. <yloc>64</yloc>
  746. <draw>Y</draw>
  747. </GUI>
  748. </step>
  749. <step>
  750. <name>插入 / 更新</name>
  751. <type>InsertUpdate</type>
  752. <description/>
  753. <distribute>Y</distribute>
  754. <custom_distribution/>
  755. <copies>1</copies>
  756. <partitioning>
  757. <method>none</method>
  758. <schema_name/>
  759. </partitioning>
  760. <connection>MOM</connection>
  761. <commit>1000</commit>
  762. <update_bypassed>Y</update_bypassed>
  763. <lookup>
  764. <schema/>
  765. <table>wms_task_outs</table>
  766. <key>
  767. <name>interface_id</name>
  768. <field>interface_id</field>
  769. <condition>=</condition>
  770. <name2/>
  771. </key>
  772. <value>
  773. <name>interface_id</name>
  774. <rename>interface_id</rename>
  775. <update>N</update>
  776. </value>
  777. <value>
  778. <name>interface_row</name>
  779. <rename>interface_row</rename>
  780. <update>N</update>
  781. </value>
  782. <value>
  783. <name>id</name>
  784. <rename>id</rename>
  785. <update>N</update>
  786. </value>
  787. <value>
  788. <name>task_out_id</name>
  789. <rename>mom_task_out_id</rename>
  790. <update>N</update>
  791. </value>
  792. <value>
  793. <name>row_number</name>
  794. <rename>row_number</rename>
  795. <update>N</update>
  796. </value>
  797. <value>
  798. <name>material_code</name>
  799. <rename>material_code</rename>
  800. <update>N</update>
  801. </value>
  802. <value>
  803. <name>task_qty</name>
  804. <rename>task_qty</rename>
  805. <update>N</update>
  806. </value>
  807. <value>
  808. <name>unit_code</name>
  809. <rename>unit_code</rename>
  810. <update>N</update>
  811. </value>
  812. <value>
  813. <name>excess_ratio_out</name>
  814. <rename>mom_excess_ratio_out</rename>
  815. <update>N</update>
  816. </value>
  817. <value>
  818. <name>warehouse_code</name>
  819. <rename>mom_warehouse_code</rename>
  820. <update>N</update>
  821. </value>
  822. <value>
  823. <name>location_code</name>
  824. <rename>mom_location_code</rename>
  825. <update>N</update>
  826. </value>
  827. <value>
  828. <name>batch1</name>
  829. <rename>batch1</rename>
  830. <update>N</update>
  831. </value>
  832. <value>
  833. <name>batch2</name>
  834. <rename>batch2</rename>
  835. <update>N</update>
  836. </value>
  837. <value>
  838. <name>status</name>
  839. <rename>status</rename>
  840. <update>N</update>
  841. </value>
  842. <value>
  843. <name>is_close</name>
  844. <rename>is_close</rename>
  845. <update>N</update>
  846. </value>
  847. <value>
  848. <name>create_id</name>
  849. <rename>sync_id</rename>
  850. <update>N</update>
  851. </value>
  852. <value>
  853. <name>create_by</name>
  854. <rename>sync_name</rename>
  855. <update>N</update>
  856. </value>
  857. <value>
  858. <name>create_time</name>
  859. <rename>sync_time</rename>
  860. <update>N</update>
  861. </value>
  862. <value>
  863. <name>audit_by</name>
  864. <rename>sync_name</rename>
  865. <update>N</update>
  866. </value>
  867. <value>
  868. <name>audit_time</name>
  869. <rename>sync_time</rename>
  870. <update>N</update>
  871. </value>
  872. </lookup>
  873. <attributes/>
  874. <cluster_schema/>
  875. <remotesteps>
  876. <input>
  877. </input>
  878. <output>
  879. </output>
  880. </remotesteps>
  881. <GUI>
  882. <xloc>768</xloc>
  883. <yloc>64</yloc>
  884. <draw>Y</draw>
  885. </GUI>
  886. </step>
  887. <step>
  888. <name>流查询-主id</name>
  889. <type>StreamLookup</type>
  890. <description/>
  891. <distribute>Y</distribute>
  892. <custom_distribution/>
  893. <copies>1</copies>
  894. <partitioning>
  895. <method>none</method>
  896. <schema_name/>
  897. </partitioning>
  898. <from>表输入-主id</from>
  899. <input_sorted>N</input_sorted>
  900. <preserve_memory>N</preserve_memory>
  901. <sorted_list>N</sorted_list>
  902. <integer_pair>N</integer_pair>
  903. <lookup>
  904. <key>
  905. <name>master_interface_id</name>
  906. <field>master_interface_id</field>
  907. </key>
  908. <value>
  909. <name>mom_task_out_id</name>
  910. <rename>mom_task_out_id</rename>
  911. <default/>
  912. <type>String</type>
  913. </value>
  914. </lookup>
  915. <attributes/>
  916. <cluster_schema/>
  917. <remotesteps>
  918. <input>
  919. </input>
  920. <output>
  921. </output>
  922. </remotesteps>
  923. <GUI>
  924. <xloc>416</xloc>
  925. <yloc>64</yloc>
  926. <draw>Y</draw>
  927. </GUI>
  928. </step>
  929. <step>
  930. <name>流查询-物料档案</name>
  931. <type>StreamLookup</type>
  932. <description/>
  933. <distribute>Y</distribute>
  934. <custom_distribution/>
  935. <copies>1</copies>
  936. <partitioning>
  937. <method>none</method>
  938. <schema_name/>
  939. </partitioning>
  940. <from>表输入-mom物料档案</from>
  941. <input_sorted>N</input_sorted>
  942. <preserve_memory>N</preserve_memory>
  943. <sorted_list>N</sorted_list>
  944. <integer_pair>N</integer_pair>
  945. <lookup>
  946. <key>
  947. <name>material_code</name>
  948. <field>mom_material_code</field>
  949. </key>
  950. <value>
  951. <name>mom_warehouse_code</name>
  952. <rename>mom_warehouse_code</rename>
  953. <default/>
  954. <type>String</type>
  955. </value>
  956. <value>
  957. <name>mom_location_code</name>
  958. <rename>mom_location_code</rename>
  959. <default/>
  960. <type>String</type>
  961. </value>
  962. <value>
  963. <name>mom_excess_ratio_out</name>
  964. <rename>mom_excess_ratio_out</rename>
  965. <default/>
  966. <type>BigNumber</type>
  967. </value>
  968. </lookup>
  969. <attributes/>
  970. <cluster_schema/>
  971. <remotesteps>
  972. <input>
  973. </input>
  974. <output>
  975. </output>
  976. </remotesteps>
  977. <GUI>
  978. <xloc>608</xloc>
  979. <yloc>64</yloc>
  980. <draw>Y</draw>
  981. </GUI>
  982. </step>
  983. <step>
  984. <name>表输入</name>
  985. <type>TableInput</type>
  986. <description/>
  987. <distribute>Y</distribute>
  988. <custom_distribution/>
  989. <copies>1</copies>
  990. <partitioning>
  991. <method>none</method>
  992. <schema_name/>
  993. </partitioning>
  994. <connection>U8</connection>
  995. <sql>DECLARE @USER_NAME VARCHAR(50),@USER_ID INT
  996. SET @USER_NAME = CASE '${USER_NAME}' WHEN '' THEN '管理员(kettle)' ELSE '${USER_NAME}' END
  997. SET @USER_ID = CASE 0${USER_ID} WHEN 0 THEN 1 ELSE 0${USER_ID} END
  998. SELECT
  999. 0${interface_id} AS master_interface_id
  1000. ,T2.iDLsID AS interface_id
  1001. ,T2.irowno AS interface_row
  1002. ,T2.irowno AS row_number
  1003. --,ROW_NUMBER()OVER(ORDER BY T2.irowno) AS row_number
  1004. ,T2.cInvCode AS material_code
  1005. ,T2.iQuantity AS task_qty
  1006. ,T6.cComUnitCode AS unit_code
  1007. ,T2.cBatch AS batch1
  1008. ,T2.cBatchProperty6 AS batch2
  1009. ,0 AS status
  1010. ,1 AS is_close
  1011. ,@USER_NAME AS sync_name
  1012. ,@USER_ID AS sync_id
  1013. ,GETDATE() AS sync_time
  1014. FROM DispatchList T1
  1015. LEFT JOIN DispatchLists T2 ON T1.DLID =T2.DLID
  1016. LEFT JOIN Inventory T6 ON T2.cInvCode =T6.cInvCode
  1017. WHERE 1=1
  1018. AND T1.DLID =0${interface_id}
  1019. </sql>
  1020. <limit>0</limit>
  1021. <lookup/>
  1022. <execute_each_row>N</execute_each_row>
  1023. <variables_active>Y</variables_active>
  1024. <lazy_conversion_active>N</lazy_conversion_active>
  1025. <cached_row_meta_active>N</cached_row_meta_active>
  1026. <row-meta>
  1027. <value-meta>
  1028. <type>Integer</type>
  1029. <storagetype>normal</storagetype>
  1030. <name>master_interface_id</name>
  1031. <length>9</length>
  1032. <precision>0</precision>
  1033. <origin>表输入</origin>
  1034. <comments>master_interface_id</comments>
  1035. <conversion_Mask>####0;-####0</conversion_Mask>
  1036. <decimal_symbol>.</decimal_symbol>
  1037. <grouping_symbol>,</grouping_symbol>
  1038. <currency_symbol/>
  1039. <trim_type>none</trim_type>
  1040. <case_insensitive>N</case_insensitive>
  1041. <collator_disabled>Y</collator_disabled>
  1042. <collator_strength>0</collator_strength>
  1043. <sort_descending>N</sort_descending>
  1044. <output_padding>N</output_padding>
  1045. <date_format_lenient>N</date_format_lenient>
  1046. <date_format_locale>zh_CN</date_format_locale>
  1047. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1048. <lenient_string_to_number>N</lenient_string_to_number>
  1049. </value-meta>
  1050. <value-meta>
  1051. <type>Integer</type>
  1052. <storagetype>normal</storagetype>
  1053. <name>interface_id</name>
  1054. <length>9</length>
  1055. <precision>0</precision>
  1056. <origin>表输入</origin>
  1057. <comments>interface_id</comments>
  1058. <conversion_Mask>####0;-####0</conversion_Mask>
  1059. <decimal_symbol>.</decimal_symbol>
  1060. <grouping_symbol>,</grouping_symbol>
  1061. <currency_symbol/>
  1062. <trim_type>none</trim_type>
  1063. <case_insensitive>N</case_insensitive>
  1064. <collator_disabled>Y</collator_disabled>
  1065. <collator_strength>0</collator_strength>
  1066. <sort_descending>N</sort_descending>
  1067. <output_padding>N</output_padding>
  1068. <date_format_lenient>N</date_format_lenient>
  1069. <date_format_locale>zh_CN</date_format_locale>
  1070. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1071. <lenient_string_to_number>N</lenient_string_to_number>
  1072. </value-meta>
  1073. <value-meta>
  1074. <type>Integer</type>
  1075. <storagetype>normal</storagetype>
  1076. <name>interface_row</name>
  1077. <length>15</length>
  1078. <precision>0</precision>
  1079. <origin>表输入</origin>
  1080. <comments>interface_row</comments>
  1081. <conversion_Mask>####0;-####0</conversion_Mask>
  1082. <decimal_symbol>.</decimal_symbol>
  1083. <grouping_symbol>,</grouping_symbol>
  1084. <currency_symbol/>
  1085. <trim_type>none</trim_type>
  1086. <case_insensitive>N</case_insensitive>
  1087. <collator_disabled>Y</collator_disabled>
  1088. <collator_strength>0</collator_strength>
  1089. <sort_descending>N</sort_descending>
  1090. <output_padding>N</output_padding>
  1091. <date_format_lenient>N</date_format_lenient>
  1092. <date_format_locale>zh_CN</date_format_locale>
  1093. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1094. <lenient_string_to_number>N</lenient_string_to_number>
  1095. </value-meta>
  1096. <value-meta>
  1097. <type>Integer</type>
  1098. <storagetype>normal</storagetype>
  1099. <name>row_number</name>
  1100. <length>15</length>
  1101. <precision>0</precision>
  1102. <origin>表输入</origin>
  1103. <comments>row_number</comments>
  1104. <conversion_Mask>####0;-####0</conversion_Mask>
  1105. <decimal_symbol>.</decimal_symbol>
  1106. <grouping_symbol>,</grouping_symbol>
  1107. <currency_symbol/>
  1108. <trim_type>none</trim_type>
  1109. <case_insensitive>N</case_insensitive>
  1110. <collator_disabled>Y</collator_disabled>
  1111. <collator_strength>0</collator_strength>
  1112. <sort_descending>N</sort_descending>
  1113. <output_padding>N</output_padding>
  1114. <date_format_lenient>N</date_format_lenient>
  1115. <date_format_locale>zh_CN</date_format_locale>
  1116. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1117. <lenient_string_to_number>N</lenient_string_to_number>
  1118. </value-meta>
  1119. <value-meta>
  1120. <type>String</type>
  1121. <storagetype>normal</storagetype>
  1122. <name>material_code</name>
  1123. <length>60</length>
  1124. <precision>-1</precision>
  1125. <origin>表输入</origin>
  1126. <comments>material_code</comments>
  1127. <conversion_Mask/>
  1128. <decimal_symbol>.</decimal_symbol>
  1129. <grouping_symbol>,</grouping_symbol>
  1130. <currency_symbol/>
  1131. <trim_type>none</trim_type>
  1132. <case_insensitive>N</case_insensitive>
  1133. <collator_disabled>Y</collator_disabled>
  1134. <collator_strength>0</collator_strength>
  1135. <sort_descending>N</sort_descending>
  1136. <output_padding>N</output_padding>
  1137. <date_format_lenient>N</date_format_lenient>
  1138. <date_format_locale>zh_CN</date_format_locale>
  1139. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1140. <lenient_string_to_number>N</lenient_string_to_number>
  1141. </value-meta>
  1142. <value-meta>
  1143. <type>BigNumber</type>
  1144. <storagetype>normal</storagetype>
  1145. <name>task_qty</name>
  1146. <length>30</length>
  1147. <precision>10</precision>
  1148. <origin>表输入</origin>
  1149. <comments>task_qty</comments>
  1150. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1151. <decimal_symbol>.</decimal_symbol>
  1152. <grouping_symbol/>
  1153. <currency_symbol/>
  1154. <trim_type>none</trim_type>
  1155. <case_insensitive>N</case_insensitive>
  1156. <collator_disabled>Y</collator_disabled>
  1157. <collator_strength>0</collator_strength>
  1158. <sort_descending>N</sort_descending>
  1159. <output_padding>N</output_padding>
  1160. <date_format_lenient>N</date_format_lenient>
  1161. <date_format_locale>zh_CN</date_format_locale>
  1162. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1163. <lenient_string_to_number>N</lenient_string_to_number>
  1164. </value-meta>
  1165. <value-meta>
  1166. <type>String</type>
  1167. <storagetype>normal</storagetype>
  1168. <name>unit_code</name>
  1169. <length>35</length>
  1170. <precision>-1</precision>
  1171. <origin>表输入</origin>
  1172. <comments>unit_code</comments>
  1173. <conversion_Mask/>
  1174. <decimal_symbol>.</decimal_symbol>
  1175. <grouping_symbol>,</grouping_symbol>
  1176. <currency_symbol/>
  1177. <trim_type>none</trim_type>
  1178. <case_insensitive>N</case_insensitive>
  1179. <collator_disabled>Y</collator_disabled>
  1180. <collator_strength>0</collator_strength>
  1181. <sort_descending>N</sort_descending>
  1182. <output_padding>N</output_padding>
  1183. <date_format_lenient>N</date_format_lenient>
  1184. <date_format_locale>zh_CN</date_format_locale>
  1185. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1186. <lenient_string_to_number>N</lenient_string_to_number>
  1187. </value-meta>
  1188. <value-meta>
  1189. <type>String</type>
  1190. <storagetype>normal</storagetype>
  1191. <name>batch1</name>
  1192. <length>60</length>
  1193. <precision>-1</precision>
  1194. <origin>表输入</origin>
  1195. <comments>batch1</comments>
  1196. <conversion_Mask/>
  1197. <decimal_symbol>.</decimal_symbol>
  1198. <grouping_symbol>,</grouping_symbol>
  1199. <currency_symbol/>
  1200. <trim_type>none</trim_type>
  1201. <case_insensitive>N</case_insensitive>
  1202. <collator_disabled>Y</collator_disabled>
  1203. <collator_strength>0</collator_strength>
  1204. <sort_descending>N</sort_descending>
  1205. <output_padding>N</output_padding>
  1206. <date_format_lenient>N</date_format_lenient>
  1207. <date_format_locale>zh_CN</date_format_locale>
  1208. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1209. <lenient_string_to_number>N</lenient_string_to_number>
  1210. </value-meta>
  1211. <value-meta>
  1212. <type>String</type>
  1213. <storagetype>normal</storagetype>
  1214. <name>batch2</name>
  1215. <length>120</length>
  1216. <precision>-1</precision>
  1217. <origin>表输入</origin>
  1218. <comments>batch2</comments>
  1219. <conversion_Mask/>
  1220. <decimal_symbol>.</decimal_symbol>
  1221. <grouping_symbol>,</grouping_symbol>
  1222. <currency_symbol/>
  1223. <trim_type>none</trim_type>
  1224. <case_insensitive>N</case_insensitive>
  1225. <collator_disabled>Y</collator_disabled>
  1226. <collator_strength>0</collator_strength>
  1227. <sort_descending>N</sort_descending>
  1228. <output_padding>N</output_padding>
  1229. <date_format_lenient>N</date_format_lenient>
  1230. <date_format_locale>zh_CN</date_format_locale>
  1231. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1232. <lenient_string_to_number>N</lenient_string_to_number>
  1233. </value-meta>
  1234. <value-meta>
  1235. <type>Integer</type>
  1236. <storagetype>normal</storagetype>
  1237. <name>status</name>
  1238. <length>9</length>
  1239. <precision>0</precision>
  1240. <origin>表输入</origin>
  1241. <comments>status</comments>
  1242. <conversion_Mask>####0;-####0</conversion_Mask>
  1243. <decimal_symbol>.</decimal_symbol>
  1244. <grouping_symbol>,</grouping_symbol>
  1245. <currency_symbol/>
  1246. <trim_type>none</trim_type>
  1247. <case_insensitive>N</case_insensitive>
  1248. <collator_disabled>Y</collator_disabled>
  1249. <collator_strength>0</collator_strength>
  1250. <sort_descending>N</sort_descending>
  1251. <output_padding>N</output_padding>
  1252. <date_format_lenient>N</date_format_lenient>
  1253. <date_format_locale>zh_CN</date_format_locale>
  1254. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1255. <lenient_string_to_number>N</lenient_string_to_number>
  1256. </value-meta>
  1257. <value-meta>
  1258. <type>Integer</type>
  1259. <storagetype>normal</storagetype>
  1260. <name>is_close</name>
  1261. <length>9</length>
  1262. <precision>0</precision>
  1263. <origin>表输入</origin>
  1264. <comments>is_close</comments>
  1265. <conversion_Mask>####0;-####0</conversion_Mask>
  1266. <decimal_symbol>.</decimal_symbol>
  1267. <grouping_symbol>,</grouping_symbol>
  1268. <currency_symbol/>
  1269. <trim_type>none</trim_type>
  1270. <case_insensitive>N</case_insensitive>
  1271. <collator_disabled>Y</collator_disabled>
  1272. <collator_strength>0</collator_strength>
  1273. <sort_descending>N</sort_descending>
  1274. <output_padding>N</output_padding>
  1275. <date_format_lenient>N</date_format_lenient>
  1276. <date_format_locale>zh_CN</date_format_locale>
  1277. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1278. <lenient_string_to_number>N</lenient_string_to_number>
  1279. </value-meta>
  1280. <value-meta>
  1281. <type>String</type>
  1282. <storagetype>normal</storagetype>
  1283. <name>sync_name</name>
  1284. <length>50</length>
  1285. <precision>-1</precision>
  1286. <origin>表输入</origin>
  1287. <comments>sync_name</comments>
  1288. <conversion_Mask/>
  1289. <decimal_symbol>.</decimal_symbol>
  1290. <grouping_symbol>,</grouping_symbol>
  1291. <currency_symbol/>
  1292. <trim_type>none</trim_type>
  1293. <case_insensitive>N</case_insensitive>
  1294. <collator_disabled>Y</collator_disabled>
  1295. <collator_strength>0</collator_strength>
  1296. <sort_descending>N</sort_descending>
  1297. <output_padding>N</output_padding>
  1298. <date_format_lenient>N</date_format_lenient>
  1299. <date_format_locale>zh_CN</date_format_locale>
  1300. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1301. <lenient_string_to_number>N</lenient_string_to_number>
  1302. </value-meta>
  1303. <value-meta>
  1304. <type>Integer</type>
  1305. <storagetype>normal</storagetype>
  1306. <name>sync_id</name>
  1307. <length>9</length>
  1308. <precision>0</precision>
  1309. <origin>表输入</origin>
  1310. <comments>sync_id</comments>
  1311. <conversion_Mask>####0;-####0</conversion_Mask>
  1312. <decimal_symbol>.</decimal_symbol>
  1313. <grouping_symbol>,</grouping_symbol>
  1314. <currency_symbol/>
  1315. <trim_type>none</trim_type>
  1316. <case_insensitive>N</case_insensitive>
  1317. <collator_disabled>Y</collator_disabled>
  1318. <collator_strength>0</collator_strength>
  1319. <sort_descending>N</sort_descending>
  1320. <output_padding>N</output_padding>
  1321. <date_format_lenient>N</date_format_lenient>
  1322. <date_format_locale>zh_CN</date_format_locale>
  1323. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1324. <lenient_string_to_number>N</lenient_string_to_number>
  1325. </value-meta>
  1326. <value-meta>
  1327. <type>Timestamp</type>
  1328. <storagetype>normal</storagetype>
  1329. <name>sync_time</name>
  1330. <length>3</length>
  1331. <precision>-1</precision>
  1332. <origin>表输入</origin>
  1333. <comments>sync_time</comments>
  1334. <conversion_Mask/>
  1335. <decimal_symbol>.</decimal_symbol>
  1336. <grouping_symbol>,</grouping_symbol>
  1337. <currency_symbol/>
  1338. <trim_type>none</trim_type>
  1339. <case_insensitive>N</case_insensitive>
  1340. <collator_disabled>Y</collator_disabled>
  1341. <collator_strength>0</collator_strength>
  1342. <sort_descending>N</sort_descending>
  1343. <output_padding>N</output_padding>
  1344. <date_format_lenient>N</date_format_lenient>
  1345. <date_format_locale>zh_CN</date_format_locale>
  1346. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1347. <lenient_string_to_number>N</lenient_string_to_number>
  1348. </value-meta>
  1349. </row-meta>
  1350. <attributes/>
  1351. <cluster_schema/>
  1352. <remotesteps>
  1353. <input>
  1354. </input>
  1355. <output>
  1356. </output>
  1357. </remotesteps>
  1358. <GUI>
  1359. <xloc>80</xloc>
  1360. <yloc>64</yloc>
  1361. <draw>Y</draw>
  1362. </GUI>
  1363. </step>
  1364. <step>
  1365. <name>表输入-mom物料档案</name>
  1366. <type>TableInput</type>
  1367. <description/>
  1368. <distribute>Y</distribute>
  1369. <custom_distribution/>
  1370. <copies>1</copies>
  1371. <partitioning>
  1372. <method>none</method>
  1373. <schema_name/>
  1374. </partitioning>
  1375. <connection>MOM</connection>
  1376. <sql>SELECT
  1377. material_code AS mom_material_code
  1378. ,excess_ratio_out AS mom_excess_ratio_out
  1379. ,warehouse_code_out AS mom_warehouse_code
  1380. ,location_code_out AS mom_location_code
  1381. FROM base_material</sql>
  1382. <limit>0</limit>
  1383. <lookup/>
  1384. <execute_each_row>N</execute_each_row>
  1385. <variables_active>N</variables_active>
  1386. <lazy_conversion_active>N</lazy_conversion_active>
  1387. <cached_row_meta_active>N</cached_row_meta_active>
  1388. <row-meta>
  1389. <value-meta>
  1390. <type>String</type>
  1391. <storagetype>normal</storagetype>
  1392. <name>mom_material_code</name>
  1393. <length>50</length>
  1394. <precision>-1</precision>
  1395. <origin>表输入-mom物料档案</origin>
  1396. <comments>mom_material_code</comments>
  1397. <conversion_Mask/>
  1398. <decimal_symbol>.</decimal_symbol>
  1399. <grouping_symbol>,</grouping_symbol>
  1400. <currency_symbol/>
  1401. <trim_type>none</trim_type>
  1402. <case_insensitive>N</case_insensitive>
  1403. <collator_disabled>Y</collator_disabled>
  1404. <collator_strength>0</collator_strength>
  1405. <sort_descending>N</sort_descending>
  1406. <output_padding>N</output_padding>
  1407. <date_format_lenient>N</date_format_lenient>
  1408. <date_format_locale>zh_CN</date_format_locale>
  1409. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1410. <lenient_string_to_number>N</lenient_string_to_number>
  1411. </value-meta>
  1412. <value-meta>
  1413. <type>BigNumber</type>
  1414. <storagetype>normal</storagetype>
  1415. <name>mom_excess_ratio_out</name>
  1416. <length>24</length>
  1417. <precision>6</precision>
  1418. <origin>表输入-mom物料档案</origin>
  1419. <comments>mom_excess_ratio_out</comments>
  1420. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1421. <decimal_symbol>.</decimal_symbol>
  1422. <grouping_symbol/>
  1423. <currency_symbol/>
  1424. <trim_type>none</trim_type>
  1425. <case_insensitive>N</case_insensitive>
  1426. <collator_disabled>Y</collator_disabled>
  1427. <collator_strength>0</collator_strength>
  1428. <sort_descending>N</sort_descending>
  1429. <output_padding>N</output_padding>
  1430. <date_format_lenient>N</date_format_lenient>
  1431. <date_format_locale>zh_CN</date_format_locale>
  1432. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1433. <lenient_string_to_number>N</lenient_string_to_number>
  1434. </value-meta>
  1435. <value-meta>
  1436. <type>String</type>
  1437. <storagetype>normal</storagetype>
  1438. <name>mom_warehouse_code</name>
  1439. <length>50</length>
  1440. <precision>-1</precision>
  1441. <origin>表输入-mom物料档案</origin>
  1442. <comments>mom_warehouse_code</comments>
  1443. <conversion_Mask/>
  1444. <decimal_symbol>.</decimal_symbol>
  1445. <grouping_symbol>,</grouping_symbol>
  1446. <currency_symbol/>
  1447. <trim_type>none</trim_type>
  1448. <case_insensitive>N</case_insensitive>
  1449. <collator_disabled>Y</collator_disabled>
  1450. <collator_strength>0</collator_strength>
  1451. <sort_descending>N</sort_descending>
  1452. <output_padding>N</output_padding>
  1453. <date_format_lenient>N</date_format_lenient>
  1454. <date_format_locale>zh_CN</date_format_locale>
  1455. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1456. <lenient_string_to_number>N</lenient_string_to_number>
  1457. </value-meta>
  1458. <value-meta>
  1459. <type>String</type>
  1460. <storagetype>normal</storagetype>
  1461. <name>mom_location_code</name>
  1462. <length>50</length>
  1463. <precision>-1</precision>
  1464. <origin>表输入-mom物料档案</origin>
  1465. <comments>mom_location_code</comments>
  1466. <conversion_Mask/>
  1467. <decimal_symbol>.</decimal_symbol>
  1468. <grouping_symbol>,</grouping_symbol>
  1469. <currency_symbol/>
  1470. <trim_type>none</trim_type>
  1471. <case_insensitive>N</case_insensitive>
  1472. <collator_disabled>Y</collator_disabled>
  1473. <collator_strength>0</collator_strength>
  1474. <sort_descending>N</sort_descending>
  1475. <output_padding>N</output_padding>
  1476. <date_format_lenient>N</date_format_lenient>
  1477. <date_format_locale>zh_CN</date_format_locale>
  1478. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1479. <lenient_string_to_number>N</lenient_string_to_number>
  1480. </value-meta>
  1481. </row-meta>
  1482. <attributes/>
  1483. <cluster_schema/>
  1484. <remotesteps>
  1485. <input>
  1486. </input>
  1487. <output>
  1488. </output>
  1489. </remotesteps>
  1490. <GUI>
  1491. <xloc>464</xloc>
  1492. <yloc>160</yloc>
  1493. <draw>Y</draw>
  1494. </GUI>
  1495. </step>
  1496. <step>
  1497. <name>表输入-主id</name>
  1498. <type>TableInput</type>
  1499. <description/>
  1500. <distribute>Y</distribute>
  1501. <custom_distribution/>
  1502. <copies>1</copies>
  1503. <partitioning>
  1504. <method>none</method>
  1505. <schema_name/>
  1506. </partitioning>
  1507. <connection>MOM</connection>
  1508. <sql>SELECT
  1509. interface_id as master_interface_id,
  1510. id as mom_task_out_id
  1511. FROM wms_task_out
  1512. WHERE interface_id =0${interface_id} AND bill_type_code ='7' ORDER BY create_time DESC LIMIT 1</sql>
  1513. <limit>0</limit>
  1514. <lookup/>
  1515. <execute_each_row>N</execute_each_row>
  1516. <variables_active>Y</variables_active>
  1517. <lazy_conversion_active>N</lazy_conversion_active>
  1518. <cached_row_meta_active>N</cached_row_meta_active>
  1519. <row-meta>
  1520. <value-meta>
  1521. <type>Integer</type>
  1522. <storagetype>normal</storagetype>
  1523. <name>master_interface_id</name>
  1524. <length>9</length>
  1525. <precision>0</precision>
  1526. <origin>表输入-主id</origin>
  1527. <comments>master_interface_id</comments>
  1528. <conversion_Mask>####0;-####0</conversion_Mask>
  1529. <decimal_symbol>.</decimal_symbol>
  1530. <grouping_symbol>,</grouping_symbol>
  1531. <currency_symbol/>
  1532. <trim_type>none</trim_type>
  1533. <case_insensitive>N</case_insensitive>
  1534. <collator_disabled>Y</collator_disabled>
  1535. <collator_strength>0</collator_strength>
  1536. <sort_descending>N</sort_descending>
  1537. <output_padding>N</output_padding>
  1538. <date_format_lenient>N</date_format_lenient>
  1539. <date_format_locale>zh_CN</date_format_locale>
  1540. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1541. <lenient_string_to_number>N</lenient_string_to_number>
  1542. </value-meta>
  1543. <value-meta>
  1544. <type>String</type>
  1545. <storagetype>normal</storagetype>
  1546. <name>mom_task_out_id</name>
  1547. <length>20</length>
  1548. <precision>-1</precision>
  1549. <origin>表输入-主id</origin>
  1550. <comments>mom_task_out_id</comments>
  1551. <conversion_Mask/>
  1552. <decimal_symbol>.</decimal_symbol>
  1553. <grouping_symbol>,</grouping_symbol>
  1554. <currency_symbol/>
  1555. <trim_type>none</trim_type>
  1556. <case_insensitive>N</case_insensitive>
  1557. <collator_disabled>Y</collator_disabled>
  1558. <collator_strength>0</collator_strength>
  1559. <sort_descending>N</sort_descending>
  1560. <output_padding>N</output_padding>
  1561. <date_format_lenient>N</date_format_lenient>
  1562. <date_format_locale>zh_CN</date_format_locale>
  1563. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1564. <lenient_string_to_number>N</lenient_string_to_number>
  1565. </value-meta>
  1566. </row-meta>
  1567. <attributes/>
  1568. <cluster_schema/>
  1569. <remotesteps>
  1570. <input>
  1571. </input>
  1572. <output>
  1573. </output>
  1574. </remotesteps>
  1575. <GUI>
  1576. <xloc>272</xloc>
  1577. <yloc>160</yloc>
  1578. <draw>Y</draw>
  1579. </GUI>
  1580. </step>
  1581. <step>
  1582. <name>获取变量</name>
  1583. <type>GetVariable</type>
  1584. <description/>
  1585. <distribute>Y</distribute>
  1586. <custom_distribution/>
  1587. <copies>1</copies>
  1588. <partitioning>
  1589. <method>none</method>
  1590. <schema_name/>
  1591. </partitioning>
  1592. <fields>
  1593. <field>
  1594. <name>mysql_driverclassname</name>
  1595. <variable>${mysql_driverclassname}</variable>
  1596. <type>String</type>
  1597. <format/>
  1598. <currency/>
  1599. <decimal/>
  1600. <group/>
  1601. <length>-1</length>
  1602. <precision>-1</precision>
  1603. <trim_type>none</trim_type>
  1604. </field>
  1605. <field>
  1606. <name>mysql_password</name>
  1607. <variable>${mysql_password}</variable>
  1608. <type>String</type>
  1609. <format/>
  1610. <currency/>
  1611. <decimal/>
  1612. <group/>
  1613. <length>-1</length>
  1614. <precision>-1</precision>
  1615. <trim_type>none</trim_type>
  1616. </field>
  1617. <field>
  1618. <name>mysql_url</name>
  1619. <variable>${mysql_url}</variable>
  1620. <type>String</type>
  1621. <format/>
  1622. <currency/>
  1623. <decimal/>
  1624. <group/>
  1625. <length>-1</length>
  1626. <precision>-1</precision>
  1627. <trim_type>none</trim_type>
  1628. </field>
  1629. <field>
  1630. <name>mysql_username</name>
  1631. <variable>${mysql_username}</variable>
  1632. <type>String</type>
  1633. <format/>
  1634. <currency/>
  1635. <decimal/>
  1636. <group/>
  1637. <length>-1</length>
  1638. <precision>-1</precision>
  1639. <trim_type>none</trim_type>
  1640. </field>
  1641. <field>
  1642. <name>USER_ID</name>
  1643. <variable>${USER_ID}</variable>
  1644. <type>String</type>
  1645. <format/>
  1646. <currency/>
  1647. <decimal/>
  1648. <group/>
  1649. <length>-1</length>
  1650. <precision>-1</precision>
  1651. <trim_type>none</trim_type>
  1652. </field>
  1653. <field>
  1654. <name>sqlserver_driverclassname</name>
  1655. <variable>${sqlserver_driverclassname}</variable>
  1656. <type>String</type>
  1657. <format/>
  1658. <currency/>
  1659. <decimal/>
  1660. <group/>
  1661. <length>-1</length>
  1662. <precision>-1</precision>
  1663. <trim_type>none</trim_type>
  1664. </field>
  1665. <field>
  1666. <name>sqlserver_password</name>
  1667. <variable>${sqlserver_password}</variable>
  1668. <type>String</type>
  1669. <format/>
  1670. <currency/>
  1671. <decimal/>
  1672. <group/>
  1673. <length>-1</length>
  1674. <precision>-1</precision>
  1675. <trim_type>none</trim_type>
  1676. </field>
  1677. <field>
  1678. <name>sqlserver_url</name>
  1679. <variable>${sqlserver_url}</variable>
  1680. <type>String</type>
  1681. <format/>
  1682. <currency/>
  1683. <decimal/>
  1684. <group/>
  1685. <length>-1</length>
  1686. <precision>-1</precision>
  1687. <trim_type>none</trim_type>
  1688. </field>
  1689. <field>
  1690. <name>sqlserver_username</name>
  1691. <variable>${sqlserver_username}</variable>
  1692. <type>String</type>
  1693. <format/>
  1694. <currency/>
  1695. <decimal/>
  1696. <group/>
  1697. <length>-1</length>
  1698. <precision>-1</precision>
  1699. <trim_type>none</trim_type>
  1700. </field>
  1701. <field>
  1702. <name>USER_NAME</name>
  1703. <variable>${USER_NAME}</variable>
  1704. <type>String</type>
  1705. <format/>
  1706. <currency/>
  1707. <decimal/>
  1708. <group/>
  1709. <length>-1</length>
  1710. <precision>-1</precision>
  1711. <trim_type>none</trim_type>
  1712. </field>
  1713. <field>
  1714. <name>BEGIN_DATE</name>
  1715. <variable>${BEGIN_DATE}</variable>
  1716. <type>String</type>
  1717. <format/>
  1718. <currency/>
  1719. <decimal/>
  1720. <group/>
  1721. <length>-1</length>
  1722. <precision>-1</precision>
  1723. <trim_type>none</trim_type>
  1724. </field>
  1725. <field>
  1726. <name>END_DATE</name>
  1727. <variable>${END_DATE}</variable>
  1728. <type>String</type>
  1729. <format/>
  1730. <currency/>
  1731. <decimal/>
  1732. <group/>
  1733. <length>-1</length>
  1734. <precision>-1</precision>
  1735. <trim_type>none</trim_type>
  1736. </field>
  1737. <field>
  1738. <name>DEPT_CODE</name>
  1739. <variable>${DEPT_CODE}</variable>
  1740. <type>String</type>
  1741. <format/>
  1742. <currency/>
  1743. <decimal/>
  1744. <group/>
  1745. <length>-1</length>
  1746. <precision>-1</precision>
  1747. <trim_type>none</trim_type>
  1748. </field>
  1749. <field>
  1750. <name>mysql_host</name>
  1751. <variable>${mysql_host}</variable>
  1752. <type>String</type>
  1753. <format/>
  1754. <currency/>
  1755. <decimal/>
  1756. <group/>
  1757. <length>-1</length>
  1758. <precision>-1</precision>
  1759. <trim_type>none</trim_type>
  1760. </field>
  1761. <field>
  1762. <name>mysql_dbname</name>
  1763. <variable>${mysql_dbname}</variable>
  1764. <type>String</type>
  1765. <format/>
  1766. <currency/>
  1767. <decimal/>
  1768. <group/>
  1769. <length>-1</length>
  1770. <precision>-1</precision>
  1771. <trim_type>none</trim_type>
  1772. </field>
  1773. </fields>
  1774. <attributes/>
  1775. <cluster_schema/>
  1776. <remotesteps>
  1777. <input>
  1778. </input>
  1779. <output>
  1780. </output>
  1781. </remotesteps>
  1782. <GUI>
  1783. <xloc>131</xloc>
  1784. <yloc>449</yloc>
  1785. <draw>Y</draw>
  1786. </GUI>
  1787. </step>
  1788. <step_error_handling>
  1789. </step_error_handling>
  1790. <slave-step-copy-partition-distribution>
  1791. </slave-step-copy-partition-distribution>
  1792. <slave_transformation>N</slave_transformation>
  1793. <attributes/>
  1794. </transformation>