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

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