委外到货单子表数据同步.ktr 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814
  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>插入 / 更新</to>
  590. <enabled>Y</enabled>
  591. </hop>
  592. <hop>
  593. <from>表输入</from>
  594. <to>Java 代码-id</to>
  595. <enabled>Y</enabled>
  596. </hop>
  597. <hop>
  598. <from>表输入-mom物料档案</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>Y</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>288</xloc>
  745. <yloc>128</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_ins</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_in_id</name>
  789. <rename>mom_task_in_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_in</name>
  814. <rename>mom_excess_ratio_in</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>128</yloc>
  884. <draw>Y</draw>
  885. </GUI>
  886. </step>
  887. <step>
  888. <name>流查询</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>表输入-mom物料档案</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>material_code</name>
  906. <field>mom_material_code</field>
  907. </key>
  908. <value>
  909. <name>mom_warehouse_code</name>
  910. <rename>mom_warehouse_code</rename>
  911. <default/>
  912. <type>String</type>
  913. </value>
  914. <value>
  915. <name>mom_location_code</name>
  916. <rename>mom_location_code</rename>
  917. <default/>
  918. <type>String</type>
  919. </value>
  920. <value>
  921. <name>mom_excess_ratio_in</name>
  922. <rename>mom_excess_ratio_in</rename>
  923. <default/>
  924. <type>BigNumber</type>
  925. </value>
  926. </lookup>
  927. <attributes/>
  928. <cluster_schema/>
  929. <remotesteps>
  930. <input>
  931. </input>
  932. <output>
  933. </output>
  934. </remotesteps>
  935. <GUI>
  936. <xloc>640</xloc>
  937. <yloc>128</yloc>
  938. <draw>Y</draw>
  939. </GUI>
  940. </step>
  941. <step>
  942. <name>流查询-主id</name>
  943. <type>StreamLookup</type>
  944. <description/>
  945. <distribute>Y</distribute>
  946. <custom_distribution/>
  947. <copies>1</copies>
  948. <partitioning>
  949. <method>none</method>
  950. <schema_name/>
  951. </partitioning>
  952. <from>表输入-主id</from>
  953. <input_sorted>N</input_sorted>
  954. <preserve_memory>N</preserve_memory>
  955. <sorted_list>N</sorted_list>
  956. <integer_pair>N</integer_pair>
  957. <lookup>
  958. <key>
  959. <name>master_interface_id</name>
  960. <field>master_interface_id</field>
  961. </key>
  962. <value>
  963. <name>mom_task_in_id</name>
  964. <rename>mom_task_in_id</rename>
  965. <default/>
  966. <type>String</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>480</xloc>
  979. <yloc>128</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.Autoid AS interface_id
  1001. ,T2.iVouchRowNo AS interface_row
  1002. ,T2.iVouchRowNo AS row_number
  1003. --,ROW_NUMBER()OVER(ORDER BY T2.iVouchRowNo) 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 PU_ArrivalVouch T1
  1015. LEFT JOIN PU_ArrivalVouchs T2 ON T1.ID =T2.ID
  1016. LEFT JOIN Inventory T6 ON T2.cInvCode =T6.cInvCode
  1017. WHERE 1=1
  1018. AND T1.ID =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>9</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>9</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>20</length>
  1147. <precision>6</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>144</xloc>
  1360. <yloc>128</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_in AS mom_excess_ratio_in
  1379. ,warehouse_code_in AS mom_warehouse_code
  1380. ,location_code_in 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_in</name>
  1416. <length>24</length>
  1417. <precision>6</precision>
  1418. <origin>表输入-mom物料档案</origin>
  1419. <comments>mom_excess_ratio_in</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>528</xloc>
  1492. <yloc>224</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. 0${interface_id} as master_interface_id,
  1510. id as mom_task_in_id
  1511. FROM wms_task_in
  1512. WHERE interface_id =0${interface_id} AND bill_type_code ='3' ORDER BY create_time DESC LIMIT 1
  1513. </sql>
  1514. <limit>0</limit>
  1515. <lookup/>
  1516. <execute_each_row>N</execute_each_row>
  1517. <variables_active>Y</variables_active>
  1518. <lazy_conversion_active>N</lazy_conversion_active>
  1519. <cached_row_meta_active>N</cached_row_meta_active>
  1520. <row-meta>
  1521. <value-meta>
  1522. <type>Integer</type>
  1523. <storagetype>normal</storagetype>
  1524. <name>master_interface_id</name>
  1525. <length>15</length>
  1526. <precision>0</precision>
  1527. <origin>表输入-主id</origin>
  1528. <comments>master_interface_id</comments>
  1529. <conversion_Mask>####0;-####0</conversion_Mask>
  1530. <decimal_symbol>.</decimal_symbol>
  1531. <grouping_symbol>,</grouping_symbol>
  1532. <currency_symbol/>
  1533. <trim_type>none</trim_type>
  1534. <case_insensitive>N</case_insensitive>
  1535. <collator_disabled>Y</collator_disabled>
  1536. <collator_strength>0</collator_strength>
  1537. <sort_descending>N</sort_descending>
  1538. <output_padding>N</output_padding>
  1539. <date_format_lenient>N</date_format_lenient>
  1540. <date_format_locale>zh_CN</date_format_locale>
  1541. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1542. <lenient_string_to_number>N</lenient_string_to_number>
  1543. </value-meta>
  1544. <value-meta>
  1545. <type>String</type>
  1546. <storagetype>normal</storagetype>
  1547. <name>mom_task_in_id</name>
  1548. <length>20</length>
  1549. <precision>-1</precision>
  1550. <origin>表输入-主id</origin>
  1551. <comments>mom_task_in_id</comments>
  1552. <conversion_Mask/>
  1553. <decimal_symbol>.</decimal_symbol>
  1554. <grouping_symbol>,</grouping_symbol>
  1555. <currency_symbol/>
  1556. <trim_type>none</trim_type>
  1557. <case_insensitive>N</case_insensitive>
  1558. <collator_disabled>Y</collator_disabled>
  1559. <collator_strength>0</collator_strength>
  1560. <sort_descending>N</sort_descending>
  1561. <output_padding>N</output_padding>
  1562. <date_format_lenient>N</date_format_lenient>
  1563. <date_format_locale>zh_CN</date_format_locale>
  1564. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1565. <lenient_string_to_number>N</lenient_string_to_number>
  1566. </value-meta>
  1567. </row-meta>
  1568. <attributes/>
  1569. <cluster_schema/>
  1570. <remotesteps>
  1571. <input>
  1572. </input>
  1573. <output>
  1574. </output>
  1575. </remotesteps>
  1576. <GUI>
  1577. <xloc>336</xloc>
  1578. <yloc>224</yloc>
  1579. <draw>Y</draw>
  1580. </GUI>
  1581. </step>
  1582. <step>
  1583. <name>获取变量</name>
  1584. <type>GetVariable</type>
  1585. <description/>
  1586. <distribute>Y</distribute>
  1587. <custom_distribution/>
  1588. <copies>1</copies>
  1589. <partitioning>
  1590. <method>none</method>
  1591. <schema_name/>
  1592. </partitioning>
  1593. <fields>
  1594. <field>
  1595. <name>mysql_driverclassname</name>
  1596. <variable>${mysql_driverclassname}</variable>
  1597. <type>String</type>
  1598. <format/>
  1599. <currency/>
  1600. <decimal/>
  1601. <group/>
  1602. <length>-1</length>
  1603. <precision>-1</precision>
  1604. <trim_type>none</trim_type>
  1605. </field>
  1606. <field>
  1607. <name>mysql_password</name>
  1608. <variable>${mysql_password}</variable>
  1609. <type>String</type>
  1610. <format/>
  1611. <currency/>
  1612. <decimal/>
  1613. <group/>
  1614. <length>-1</length>
  1615. <precision>-1</precision>
  1616. <trim_type>none</trim_type>
  1617. </field>
  1618. <field>
  1619. <name>mysql_url</name>
  1620. <variable>${mysql_url}</variable>
  1621. <type>String</type>
  1622. <format/>
  1623. <currency/>
  1624. <decimal/>
  1625. <group/>
  1626. <length>-1</length>
  1627. <precision>-1</precision>
  1628. <trim_type>none</trim_type>
  1629. </field>
  1630. <field>
  1631. <name>mysql_username</name>
  1632. <variable>${mysql_username}</variable>
  1633. <type>String</type>
  1634. <format/>
  1635. <currency/>
  1636. <decimal/>
  1637. <group/>
  1638. <length>-1</length>
  1639. <precision>-1</precision>
  1640. <trim_type>none</trim_type>
  1641. </field>
  1642. <field>
  1643. <name>USER_ID</name>
  1644. <variable>${USER_ID}</variable>
  1645. <type>String</type>
  1646. <format/>
  1647. <currency/>
  1648. <decimal/>
  1649. <group/>
  1650. <length>-1</length>
  1651. <precision>-1</precision>
  1652. <trim_type>none</trim_type>
  1653. </field>
  1654. <field>
  1655. <name>sqlserver_driverclassname</name>
  1656. <variable>${sqlserver_driverclassname}</variable>
  1657. <type>String</type>
  1658. <format/>
  1659. <currency/>
  1660. <decimal/>
  1661. <group/>
  1662. <length>-1</length>
  1663. <precision>-1</precision>
  1664. <trim_type>none</trim_type>
  1665. </field>
  1666. <field>
  1667. <name>sqlserver_password</name>
  1668. <variable>${sqlserver_password}</variable>
  1669. <type>String</type>
  1670. <format/>
  1671. <currency/>
  1672. <decimal/>
  1673. <group/>
  1674. <length>-1</length>
  1675. <precision>-1</precision>
  1676. <trim_type>none</trim_type>
  1677. </field>
  1678. <field>
  1679. <name>sqlserver_url</name>
  1680. <variable>${sqlserver_url}</variable>
  1681. <type>String</type>
  1682. <format/>
  1683. <currency/>
  1684. <decimal/>
  1685. <group/>
  1686. <length>-1</length>
  1687. <precision>-1</precision>
  1688. <trim_type>none</trim_type>
  1689. </field>
  1690. <field>
  1691. <name>sqlserver_username</name>
  1692. <variable>${sqlserver_username}</variable>
  1693. <type>String</type>
  1694. <format/>
  1695. <currency/>
  1696. <decimal/>
  1697. <group/>
  1698. <length>-1</length>
  1699. <precision>-1</precision>
  1700. <trim_type>none</trim_type>
  1701. </field>
  1702. <field>
  1703. <name>USER_NAME</name>
  1704. <variable>${USER_NAME}</variable>
  1705. <type>String</type>
  1706. <format/>
  1707. <currency/>
  1708. <decimal/>
  1709. <group/>
  1710. <length>-1</length>
  1711. <precision>-1</precision>
  1712. <trim_type>none</trim_type>
  1713. </field>
  1714. <field>
  1715. <name>BEGIN_DATE</name>
  1716. <variable>${BEGIN_DATE}</variable>
  1717. <type>String</type>
  1718. <format/>
  1719. <currency/>
  1720. <decimal/>
  1721. <group/>
  1722. <length>-1</length>
  1723. <precision>-1</precision>
  1724. <trim_type>none</trim_type>
  1725. </field>
  1726. <field>
  1727. <name>END_DATE</name>
  1728. <variable>${END_DATE}</variable>
  1729. <type>String</type>
  1730. <format/>
  1731. <currency/>
  1732. <decimal/>
  1733. <group/>
  1734. <length>-1</length>
  1735. <precision>-1</precision>
  1736. <trim_type>none</trim_type>
  1737. </field>
  1738. <field>
  1739. <name>DEPT_CODE</name>
  1740. <variable>${DEPT_CODE}</variable>
  1741. <type>String</type>
  1742. <format/>
  1743. <currency/>
  1744. <decimal/>
  1745. <group/>
  1746. <length>-1</length>
  1747. <precision>-1</precision>
  1748. <trim_type>none</trim_type>
  1749. </field>
  1750. <field>
  1751. <name>mysql_host</name>
  1752. <variable>${mysql_host}</variable>
  1753. <type>String</type>
  1754. <format/>
  1755. <currency/>
  1756. <decimal/>
  1757. <group/>
  1758. <length>-1</length>
  1759. <precision>-1</precision>
  1760. <trim_type>none</trim_type>
  1761. </field>
  1762. <field>
  1763. <name>mysql_dbname</name>
  1764. <variable>${mysql_dbname}</variable>
  1765. <type>String</type>
  1766. <format/>
  1767. <currency/>
  1768. <decimal/>
  1769. <group/>
  1770. <length>-1</length>
  1771. <precision>-1</precision>
  1772. <trim_type>none</trim_type>
  1773. </field>
  1774. </fields>
  1775. <attributes/>
  1776. <cluster_schema/>
  1777. <remotesteps>
  1778. <input>
  1779. </input>
  1780. <output>
  1781. </output>
  1782. </remotesteps>
  1783. <GUI>
  1784. <xloc>111</xloc>
  1785. <yloc>550</yloc>
  1786. <draw>Y</draw>
  1787. </GUI>
  1788. </step>
  1789. <step_error_handling>
  1790. </step_error_handling>
  1791. <slave-step-copy-partition-distribution>
  1792. </slave-step-copy-partition-distribution>
  1793. <slave_transformation>N</slave_transformation>
  1794. <attributes/>
  1795. </transformation>