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

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