生产订单材料子表数据同步.ktr 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691
  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. <parameter>
  18. <name>mom_is_back_flush</name>
  19. <default_value/>
  20. <description/>
  21. </parameter>
  22. </parameters>
  23. <log>
  24. <trans-log-table>
  25. <connection/>
  26. <schema/>
  27. <table/>
  28. <size_limit_lines/>
  29. <interval/>
  30. <timeout_days/>
  31. <field>
  32. <id>ID_BATCH</id>
  33. <enabled>Y</enabled>
  34. <name>ID_BATCH</name>
  35. </field>
  36. <field>
  37. <id>CHANNEL_ID</id>
  38. <enabled>Y</enabled>
  39. <name>CHANNEL_ID</name>
  40. </field>
  41. <field>
  42. <id>TRANSNAME</id>
  43. <enabled>Y</enabled>
  44. <name>TRANSNAME</name>
  45. </field>
  46. <field>
  47. <id>STATUS</id>
  48. <enabled>Y</enabled>
  49. <name>STATUS</name>
  50. </field>
  51. <field>
  52. <id>LINES_READ</id>
  53. <enabled>Y</enabled>
  54. <name>LINES_READ</name>
  55. <subject/>
  56. </field>
  57. <field>
  58. <id>LINES_WRITTEN</id>
  59. <enabled>Y</enabled>
  60. <name>LINES_WRITTEN</name>
  61. <subject/>
  62. </field>
  63. <field>
  64. <id>LINES_UPDATED</id>
  65. <enabled>Y</enabled>
  66. <name>LINES_UPDATED</name>
  67. <subject/>
  68. </field>
  69. <field>
  70. <id>LINES_INPUT</id>
  71. <enabled>Y</enabled>
  72. <name>LINES_INPUT</name>
  73. <subject/>
  74. </field>
  75. <field>
  76. <id>LINES_OUTPUT</id>
  77. <enabled>Y</enabled>
  78. <name>LINES_OUTPUT</name>
  79. <subject/>
  80. </field>
  81. <field>
  82. <id>LINES_REJECTED</id>
  83. <enabled>Y</enabled>
  84. <name>LINES_REJECTED</name>
  85. <subject/>
  86. </field>
  87. <field>
  88. <id>ERRORS</id>
  89. <enabled>Y</enabled>
  90. <name>ERRORS</name>
  91. </field>
  92. <field>
  93. <id>STARTDATE</id>
  94. <enabled>Y</enabled>
  95. <name>STARTDATE</name>
  96. </field>
  97. <field>
  98. <id>ENDDATE</id>
  99. <enabled>Y</enabled>
  100. <name>ENDDATE</name>
  101. </field>
  102. <field>
  103. <id>LOGDATE</id>
  104. <enabled>Y</enabled>
  105. <name>LOGDATE</name>
  106. </field>
  107. <field>
  108. <id>DEPDATE</id>
  109. <enabled>Y</enabled>
  110. <name>DEPDATE</name>
  111. </field>
  112. <field>
  113. <id>REPLAYDATE</id>
  114. <enabled>Y</enabled>
  115. <name>REPLAYDATE</name>
  116. </field>
  117. <field>
  118. <id>LOG_FIELD</id>
  119. <enabled>Y</enabled>
  120. <name>LOG_FIELD</name>
  121. </field>
  122. <field>
  123. <id>EXECUTING_SERVER</id>
  124. <enabled>N</enabled>
  125. <name>EXECUTING_SERVER</name>
  126. </field>
  127. <field>
  128. <id>EXECUTING_USER</id>
  129. <enabled>N</enabled>
  130. <name>EXECUTING_USER</name>
  131. </field>
  132. <field>
  133. <id>CLIENT</id>
  134. <enabled>N</enabled>
  135. <name>CLIENT</name>
  136. </field>
  137. </trans-log-table>
  138. <perf-log-table>
  139. <connection/>
  140. <schema/>
  141. <table/>
  142. <interval/>
  143. <timeout_days/>
  144. <field>
  145. <id>ID_BATCH</id>
  146. <enabled>Y</enabled>
  147. <name>ID_BATCH</name>
  148. </field>
  149. <field>
  150. <id>SEQ_NR</id>
  151. <enabled>Y</enabled>
  152. <name>SEQ_NR</name>
  153. </field>
  154. <field>
  155. <id>LOGDATE</id>
  156. <enabled>Y</enabled>
  157. <name>LOGDATE</name>
  158. </field>
  159. <field>
  160. <id>TRANSNAME</id>
  161. <enabled>Y</enabled>
  162. <name>TRANSNAME</name>
  163. </field>
  164. <field>
  165. <id>STEPNAME</id>
  166. <enabled>Y</enabled>
  167. <name>STEPNAME</name>
  168. </field>
  169. <field>
  170. <id>STEP_COPY</id>
  171. <enabled>Y</enabled>
  172. <name>STEP_COPY</name>
  173. </field>
  174. <field>
  175. <id>LINES_READ</id>
  176. <enabled>Y</enabled>
  177. <name>LINES_READ</name>
  178. </field>
  179. <field>
  180. <id>LINES_WRITTEN</id>
  181. <enabled>Y</enabled>
  182. <name>LINES_WRITTEN</name>
  183. </field>
  184. <field>
  185. <id>LINES_UPDATED</id>
  186. <enabled>Y</enabled>
  187. <name>LINES_UPDATED</name>
  188. </field>
  189. <field>
  190. <id>LINES_INPUT</id>
  191. <enabled>Y</enabled>
  192. <name>LINES_INPUT</name>
  193. </field>
  194. <field>
  195. <id>LINES_OUTPUT</id>
  196. <enabled>Y</enabled>
  197. <name>LINES_OUTPUT</name>
  198. </field>
  199. <field>
  200. <id>LINES_REJECTED</id>
  201. <enabled>Y</enabled>
  202. <name>LINES_REJECTED</name>
  203. </field>
  204. <field>
  205. <id>ERRORS</id>
  206. <enabled>Y</enabled>
  207. <name>ERRORS</name>
  208. </field>
  209. <field>
  210. <id>INPUT_BUFFER_ROWS</id>
  211. <enabled>Y</enabled>
  212. <name>INPUT_BUFFER_ROWS</name>
  213. </field>
  214. <field>
  215. <id>OUTPUT_BUFFER_ROWS</id>
  216. <enabled>Y</enabled>
  217. <name>OUTPUT_BUFFER_ROWS</name>
  218. </field>
  219. </perf-log-table>
  220. <channel-log-table>
  221. <connection/>
  222. <schema/>
  223. <table/>
  224. <timeout_days/>
  225. <field>
  226. <id>ID_BATCH</id>
  227. <enabled>Y</enabled>
  228. <name>ID_BATCH</name>
  229. </field>
  230. <field>
  231. <id>CHANNEL_ID</id>
  232. <enabled>Y</enabled>
  233. <name>CHANNEL_ID</name>
  234. </field>
  235. <field>
  236. <id>LOG_DATE</id>
  237. <enabled>Y</enabled>
  238. <name>LOG_DATE</name>
  239. </field>
  240. <field>
  241. <id>LOGGING_OBJECT_TYPE</id>
  242. <enabled>Y</enabled>
  243. <name>LOGGING_OBJECT_TYPE</name>
  244. </field>
  245. <field>
  246. <id>OBJECT_NAME</id>
  247. <enabled>Y</enabled>
  248. <name>OBJECT_NAME</name>
  249. </field>
  250. <field>
  251. <id>OBJECT_COPY</id>
  252. <enabled>Y</enabled>
  253. <name>OBJECT_COPY</name>
  254. </field>
  255. <field>
  256. <id>REPOSITORY_DIRECTORY</id>
  257. <enabled>Y</enabled>
  258. <name>REPOSITORY_DIRECTORY</name>
  259. </field>
  260. <field>
  261. <id>FILENAME</id>
  262. <enabled>Y</enabled>
  263. <name>FILENAME</name>
  264. </field>
  265. <field>
  266. <id>OBJECT_ID</id>
  267. <enabled>Y</enabled>
  268. <name>OBJECT_ID</name>
  269. </field>
  270. <field>
  271. <id>OBJECT_REVISION</id>
  272. <enabled>Y</enabled>
  273. <name>OBJECT_REVISION</name>
  274. </field>
  275. <field>
  276. <id>PARENT_CHANNEL_ID</id>
  277. <enabled>Y</enabled>
  278. <name>PARENT_CHANNEL_ID</name>
  279. </field>
  280. <field>
  281. <id>ROOT_CHANNEL_ID</id>
  282. <enabled>Y</enabled>
  283. <name>ROOT_CHANNEL_ID</name>
  284. </field>
  285. </channel-log-table>
  286. <step-log-table>
  287. <connection/>
  288. <schema/>
  289. <table/>
  290. <timeout_days/>
  291. <field>
  292. <id>ID_BATCH</id>
  293. <enabled>Y</enabled>
  294. <name>ID_BATCH</name>
  295. </field>
  296. <field>
  297. <id>CHANNEL_ID</id>
  298. <enabled>Y</enabled>
  299. <name>CHANNEL_ID</name>
  300. </field>
  301. <field>
  302. <id>LOG_DATE</id>
  303. <enabled>Y</enabled>
  304. <name>LOG_DATE</name>
  305. </field>
  306. <field>
  307. <id>TRANSNAME</id>
  308. <enabled>Y</enabled>
  309. <name>TRANSNAME</name>
  310. </field>
  311. <field>
  312. <id>STEPNAME</id>
  313. <enabled>Y</enabled>
  314. <name>STEPNAME</name>
  315. </field>
  316. <field>
  317. <id>STEP_COPY</id>
  318. <enabled>Y</enabled>
  319. <name>STEP_COPY</name>
  320. </field>
  321. <field>
  322. <id>LINES_READ</id>
  323. <enabled>Y</enabled>
  324. <name>LINES_READ</name>
  325. </field>
  326. <field>
  327. <id>LINES_WRITTEN</id>
  328. <enabled>Y</enabled>
  329. <name>LINES_WRITTEN</name>
  330. </field>
  331. <field>
  332. <id>LINES_UPDATED</id>
  333. <enabled>Y</enabled>
  334. <name>LINES_UPDATED</name>
  335. </field>
  336. <field>
  337. <id>LINES_INPUT</id>
  338. <enabled>Y</enabled>
  339. <name>LINES_INPUT</name>
  340. </field>
  341. <field>
  342. <id>LINES_OUTPUT</id>
  343. <enabled>Y</enabled>
  344. <name>LINES_OUTPUT</name>
  345. </field>
  346. <field>
  347. <id>LINES_REJECTED</id>
  348. <enabled>Y</enabled>
  349. <name>LINES_REJECTED</name>
  350. </field>
  351. <field>
  352. <id>ERRORS</id>
  353. <enabled>Y</enabled>
  354. <name>ERRORS</name>
  355. </field>
  356. <field>
  357. <id>LOG_FIELD</id>
  358. <enabled>N</enabled>
  359. <name>LOG_FIELD</name>
  360. </field>
  361. </step-log-table>
  362. <metrics-log-table>
  363. <connection/>
  364. <schema/>
  365. <table/>
  366. <timeout_days/>
  367. <field>
  368. <id>ID_BATCH</id>
  369. <enabled>Y</enabled>
  370. <name>ID_BATCH</name>
  371. </field>
  372. <field>
  373. <id>CHANNEL_ID</id>
  374. <enabled>Y</enabled>
  375. <name>CHANNEL_ID</name>
  376. </field>
  377. <field>
  378. <id>LOG_DATE</id>
  379. <enabled>Y</enabled>
  380. <name>LOG_DATE</name>
  381. </field>
  382. <field>
  383. <id>METRICS_DATE</id>
  384. <enabled>Y</enabled>
  385. <name>METRICS_DATE</name>
  386. </field>
  387. <field>
  388. <id>METRICS_CODE</id>
  389. <enabled>Y</enabled>
  390. <name>METRICS_CODE</name>
  391. </field>
  392. <field>
  393. <id>METRICS_DESCRIPTION</id>
  394. <enabled>Y</enabled>
  395. <name>METRICS_DESCRIPTION</name>
  396. </field>
  397. <field>
  398. <id>METRICS_SUBJECT</id>
  399. <enabled>Y</enabled>
  400. <name>METRICS_SUBJECT</name>
  401. </field>
  402. <field>
  403. <id>METRICS_TYPE</id>
  404. <enabled>Y</enabled>
  405. <name>METRICS_TYPE</name>
  406. </field>
  407. <field>
  408. <id>METRICS_VALUE</id>
  409. <enabled>Y</enabled>
  410. <name>METRICS_VALUE</name>
  411. </field>
  412. </metrics-log-table>
  413. </log>
  414. <maxdate>
  415. <connection/>
  416. <table/>
  417. <field/>
  418. <offset>0.0</offset>
  419. <maxdiff>0.0</maxdiff>
  420. </maxdate>
  421. <size_rowset>10000</size_rowset>
  422. <sleep_time_empty>50</sleep_time_empty>
  423. <sleep_time_full>50</sleep_time_full>
  424. <unique_connections>N</unique_connections>
  425. <feedback_shown>Y</feedback_shown>
  426. <feedback_size>50000</feedback_size>
  427. <using_thread_priorities>Y</using_thread_priorities>
  428. <shared_objects_file/>
  429. <capture_step_performance>N</capture_step_performance>
  430. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  431. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  432. <dependencies>
  433. </dependencies>
  434. <partitionschemas>
  435. </partitionschemas>
  436. <slaveservers>
  437. </slaveservers>
  438. <clusterschemas>
  439. </clusterschemas>
  440. <created_user>-</created_user>
  441. <created_date>2024/01/10 11:03:15.382</created_date>
  442. <modified_user>-</modified_user>
  443. <modified_date>2024/01/10 11:03:15.382</modified_date>
  444. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  445. <is_key_private>N</is_key_private>
  446. </info>
  447. <notepads>
  448. </notepads>
  449. <connection>
  450. <name>MOM</name>
  451. <server>${MOMDB_HOST}</server>
  452. <type>MYSQL</type>
  453. <access>Native</access>
  454. <database>${MOMDB_NAME}</database>
  455. <port>3306</port>
  456. <username>${MOMDB_USER}</username>
  457. <password>${MOMDB_PASSWORD}</password>
  458. <servername/>
  459. <data_tablespace/>
  460. <index_tablespace/>
  461. <attributes>
  462. <attribute>
  463. <code>EXTRA_OPTION_MYSQL.characterEncoding</code>
  464. <attribute>utf-8</attribute>
  465. </attribute>
  466. <attribute>
  467. <code>EXTRA_OPTION_MYSQL.defaultFetchSize</code>
  468. <attribute>5000</attribute>
  469. </attribute>
  470. <attribute>
  471. <code>EXTRA_OPTION_MYSQL.rewriteBatchedStatements</code>
  472. <attribute>true</attribute>
  473. </attribute>
  474. <attribute>
  475. <code>EXTRA_OPTION_MYSQL.useCompression</code>
  476. <attribute>true</attribute>
  477. </attribute>
  478. <attribute>
  479. <code>EXTRA_OPTION_MYSQL.useCursorFetch</code>
  480. <attribute>true</attribute>
  481. </attribute>
  482. <attribute>
  483. <code>EXTRA_OPTION_MYSQL.useServerPrepStmts</code>
  484. <attribute>true</attribute>
  485. </attribute>
  486. <attribute>
  487. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  488. <attribute>N</attribute>
  489. </attribute>
  490. <attribute>
  491. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  492. <attribute>N</attribute>
  493. </attribute>
  494. <attribute>
  495. <code>IS_CLUSTERED</code>
  496. <attribute>N</attribute>
  497. </attribute>
  498. <attribute>
  499. <code>PORT_NUMBER</code>
  500. <attribute>3306</attribute>
  501. </attribute>
  502. <attribute>
  503. <code>PRESERVE_RESERVED_WORD_CASE</code>
  504. <attribute>Y</attribute>
  505. </attribute>
  506. <attribute>
  507. <code>QUOTE_ALL_FIELDS</code>
  508. <attribute>N</attribute>
  509. </attribute>
  510. <attribute>
  511. <code>STREAM_RESULTS</code>
  512. <attribute>N</attribute>
  513. </attribute>
  514. <attribute>
  515. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  516. <attribute>Y</attribute>
  517. </attribute>
  518. <attribute>
  519. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  520. <attribute>Y</attribute>
  521. </attribute>
  522. <attribute>
  523. <code>USE_POOLING</code>
  524. <attribute>N</attribute>
  525. </attribute>
  526. </attributes>
  527. </connection>
  528. <connection>
  529. <name>U8</name>
  530. <server>${U8DB_HOST}</server>
  531. <type>MSSQL</type>
  532. <access>Native</access>
  533. <database>${U8DB_NAME}</database>
  534. <port>1433</port>
  535. <username>${U8DB_USER}</username>
  536. <password>${U8DB_PASSWORD}</password>
  537. <servername/>
  538. <data_tablespace/>
  539. <index_tablespace/>
  540. <attributes>
  541. <attribute>
  542. <code>EXTRA_OPTION_MSSQL.instance</code>
  543. <attribute>dbo</attribute>
  544. </attribute>
  545. <attribute>
  546. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  547. <attribute>N</attribute>
  548. </attribute>
  549. <attribute>
  550. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  551. <attribute>N</attribute>
  552. </attribute>
  553. <attribute>
  554. <code>IS_CLUSTERED</code>
  555. <attribute>N</attribute>
  556. </attribute>
  557. <attribute>
  558. <code>MSSQL_DOUBLE_DECIMAL_SEPARATOR</code>
  559. <attribute>N</attribute>
  560. </attribute>
  561. <attribute>
  562. <code>PORT_NUMBER</code>
  563. <attribute>1433</attribute>
  564. </attribute>
  565. <attribute>
  566. <code>PRESERVE_RESERVED_WORD_CASE</code>
  567. <attribute>Y</attribute>
  568. </attribute>
  569. <attribute>
  570. <code>QUOTE_ALL_FIELDS</code>
  571. <attribute>N</attribute>
  572. </attribute>
  573. <attribute>
  574. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  575. <attribute>Y</attribute>
  576. </attribute>
  577. <attribute>
  578. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  579. <attribute>Y</attribute>
  580. </attribute>
  581. <attribute>
  582. <code>USE_POOLING</code>
  583. <attribute>N</attribute>
  584. </attribute>
  585. </attributes>
  586. </connection>
  587. <order>
  588. <hop>
  589. <from>表输入-mom物料档案</from>
  590. <to>流查询-物料档案</to>
  591. <enabled>Y</enabled>
  592. </hop>
  593. <hop>
  594. <from>流查询-物料档案</from>
  595. <to>流查询-入库任务</to>
  596. <enabled>Y</enabled>
  597. </hop>
  598. <hop>
  599. <from>表输入-mom入库任务</from>
  600. <to>流查询-入库任务</to>
  601. <enabled>Y</enabled>
  602. </hop>
  603. <hop>
  604. <from>流查询-入库任务</from>
  605. <to>插入 / 更新</to>
  606. <enabled>Y</enabled>
  607. </hop>
  608. <hop>
  609. <from>表输入</from>
  610. <to>Java 代码-id</to>
  611. <enabled>Y</enabled>
  612. </hop>
  613. <hop>
  614. <from>表输入-主id</from>
  615. <to>流查询-主id</to>
  616. <enabled>Y</enabled>
  617. </hop>
  618. <hop>
  619. <from>Java 代码-id</from>
  620. <to>流查询-主id</to>
  621. <enabled>Y</enabled>
  622. </hop>
  623. <hop>
  624. <from>流查询-主id</from>
  625. <to>流查询-物料档案</to>
  626. <enabled>Y</enabled>
  627. </hop>
  628. </order>
  629. <step>
  630. <name>Java 代码-id</name>
  631. <type>UserDefinedJavaClass</type>
  632. <description/>
  633. <distribute>N</distribute>
  634. <custom_distribution/>
  635. <copies>1</copies>
  636. <partitioning>
  637. <method>none</method>
  638. <schema_name/>
  639. </partitioning>
  640. <definitions>
  641. <definition>
  642. <class_type>TRANSFORM_CLASS</class_type>
  643. <class_name>Processor</class_name>
  644. <class_source>//import com.cath.set.util.CodeRuleUtil;
  645. import com.cath.util.SnowflakeIdWorkerUtil;
  646. SnowflakeIdWorkerUtil snowflakeIdWorkerUtil = new SnowflakeIdWorkerUtil(3, 5, 5);
  647. public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException {
  648. if (first) {
  649. first = false;
  650. }
  651. Object[] r = getRow();
  652. if (r == null) {
  653. setOutputDone();
  654. return false;
  655. }
  656. r = createOutputRow(r, data.outputRowMeta.size());
  657. String id = String.valueOf(snowflakeIdWorkerUtil.nextId());
  658. get(Fields.Out, "id").setValue(r, id);
  659. putRow(data.outputRowMeta, r);
  660. return true;
  661. }
  662. </class_source>
  663. </definition>
  664. </definitions>
  665. <fields>
  666. <field>
  667. <field_name>id</field_name>
  668. <field_type>String</field_type>
  669. <field_length>-1</field_length>
  670. <field_precision>-1</field_precision>
  671. </field>
  672. </fields>
  673. <clear_result_fields>N</clear_result_fields>
  674. <info_steps/>
  675. <target_steps/>
  676. <usage_parameters/>
  677. <attributes/>
  678. <cluster_schema/>
  679. <remotesteps>
  680. <input>
  681. </input>
  682. <output>
  683. </output>
  684. </remotesteps>
  685. <GUI>
  686. <xloc>176</xloc>
  687. <yloc>64</yloc>
  688. <draw>Y</draw>
  689. </GUI>
  690. </step>
  691. <step>
  692. <name>插入 / 更新</name>
  693. <type>InsertUpdate</type>
  694. <description/>
  695. <distribute>Y</distribute>
  696. <custom_distribution/>
  697. <copies>1</copies>
  698. <partitioning>
  699. <method>none</method>
  700. <schema_name/>
  701. </partitioning>
  702. <connection>MOM</connection>
  703. <commit>1000</commit>
  704. <update_bypassed>N</update_bypassed>
  705. <lookup>
  706. <schema/>
  707. <table>wms_task_outs</table>
  708. <key>
  709. <name>interface_id</name>
  710. <field>interface_id</field>
  711. <condition>=</condition>
  712. <name2/>
  713. </key>
  714. <value>
  715. <name>interface_pid</name>
  716. <rename>interface_pid</rename>
  717. <update>N</update>
  718. </value>
  719. <value>
  720. <name>interface_id</name>
  721. <rename>interface_id</rename>
  722. <update>N</update>
  723. </value>
  724. <value>
  725. <name>interface_row</name>
  726. <rename>interface_row</rename>
  727. <update>N</update>
  728. </value>
  729. <value>
  730. <name>id</name>
  731. <rename>id</rename>
  732. <update>N</update>
  733. </value>
  734. <value>
  735. <name>task_out_id</name>
  736. <rename>mom_task_out_id</rename>
  737. <update>N</update>
  738. </value>
  739. <value>
  740. <name>row_number</name>
  741. <rename>row_number</rename>
  742. <update>N</update>
  743. </value>
  744. <value>
  745. <name>material_code</name>
  746. <rename>material_code</rename>
  747. <update>N</update>
  748. </value>
  749. <value>
  750. <name>task_qty</name>
  751. <rename>task_qty</rename>
  752. <update>N</update>
  753. </value>
  754. <value>
  755. <name>unit_code</name>
  756. <rename>unit_code</rename>
  757. <update>N</update>
  758. </value>
  759. <value>
  760. <name>is_back_flush</name>
  761. <rename>mom_is_back_flush</rename>
  762. <update>N</update>
  763. </value>
  764. <value>
  765. <name>excess_ratio_out</name>
  766. <rename>mom_excess_ratio_out</rename>
  767. <update>N</update>
  768. </value>
  769. <value>
  770. <name>warehouse_code</name>
  771. <rename>mom_warehouse_code</rename>
  772. <update>N</update>
  773. </value>
  774. <value>
  775. <name>location_code</name>
  776. <rename>mom_location_code</rename>
  777. <update>N</update>
  778. </value>
  779. <value>
  780. <name>status</name>
  781. <rename>status</rename>
  782. <update>N</update>
  783. </value>
  784. <value>
  785. <name>is_close</name>
  786. <rename>is_close</rename>
  787. <update>Y</update>
  788. </value>
  789. <value>
  790. <name>task_ins_id</name>
  791. <rename>mom_task_ins_id</rename>
  792. <update>N</update>
  793. </value>
  794. <value>
  795. <name>create_id</name>
  796. <rename>sync_id</rename>
  797. <update>N</update>
  798. </value>
  799. <value>
  800. <name>create_by</name>
  801. <rename>sync_name</rename>
  802. <update>N</update>
  803. </value>
  804. <value>
  805. <name>create_time</name>
  806. <rename>sync_time</rename>
  807. <update>N</update>
  808. </value>
  809. <value>
  810. <name>audit_by</name>
  811. <rename>sync_name</rename>
  812. <update>N</update>
  813. </value>
  814. <value>
  815. <name>audit_time</name>
  816. <rename>sync_time</rename>
  817. <update>N</update>
  818. </value>
  819. </lookup>
  820. <attributes/>
  821. <cluster_schema/>
  822. <remotesteps>
  823. <input>
  824. </input>
  825. <output>
  826. </output>
  827. </remotesteps>
  828. <GUI>
  829. <xloc>864</xloc>
  830. <yloc>64</yloc>
  831. <draw>Y</draw>
  832. </GUI>
  833. </step>
  834. <step>
  835. <name>流查询-主id</name>
  836. <type>StreamLookup</type>
  837. <description/>
  838. <distribute>Y</distribute>
  839. <custom_distribution/>
  840. <copies>1</copies>
  841. <partitioning>
  842. <method>none</method>
  843. <schema_name/>
  844. </partitioning>
  845. <from>表输入-主id</from>
  846. <input_sorted>N</input_sorted>
  847. <preserve_memory>N</preserve_memory>
  848. <sorted_list>N</sorted_list>
  849. <integer_pair>N</integer_pair>
  850. <lookup>
  851. <key>
  852. <name>master_interface_id</name>
  853. <field>master_interface_id</field>
  854. </key>
  855. <value>
  856. <name>mom_task_out_id</name>
  857. <rename>mom_task_out_id</rename>
  858. <default/>
  859. <type>String</type>
  860. </value>
  861. </lookup>
  862. <attributes/>
  863. <cluster_schema/>
  864. <remotesteps>
  865. <input>
  866. </input>
  867. <output>
  868. </output>
  869. </remotesteps>
  870. <GUI>
  871. <xloc>384</xloc>
  872. <yloc>64</yloc>
  873. <draw>Y</draw>
  874. </GUI>
  875. </step>
  876. <step>
  877. <name>流查询-入库任务</name>
  878. <type>StreamLookup</type>
  879. <description/>
  880. <distribute>Y</distribute>
  881. <custom_distribution/>
  882. <copies>1</copies>
  883. <partitioning>
  884. <method>none</method>
  885. <schema_name/>
  886. </partitioning>
  887. <from>表输入-mom入库任务</from>
  888. <input_sorted>N</input_sorted>
  889. <preserve_memory>N</preserve_memory>
  890. <sorted_list>N</sorted_list>
  891. <integer_pair>N</integer_pair>
  892. <lookup>
  893. <key>
  894. <name>interface_pid</name>
  895. <field>mom_interface_pid</field>
  896. </key>
  897. <value>
  898. <name>mom_task_ins_id</name>
  899. <rename>mom_task_ins_id</rename>
  900. <default/>
  901. <type>String</type>
  902. </value>
  903. </lookup>
  904. <attributes/>
  905. <cluster_schema/>
  906. <remotesteps>
  907. <input>
  908. </input>
  909. <output>
  910. </output>
  911. </remotesteps>
  912. <GUI>
  913. <xloc>720</xloc>
  914. <yloc>64</yloc>
  915. <draw>Y</draw>
  916. </GUI>
  917. </step>
  918. <step>
  919. <name>流查询-物料档案</name>
  920. <type>StreamLookup</type>
  921. <description/>
  922. <distribute>Y</distribute>
  923. <custom_distribution/>
  924. <copies>1</copies>
  925. <partitioning>
  926. <method>none</method>
  927. <schema_name/>
  928. </partitioning>
  929. <from>表输入-mom物料档案</from>
  930. <input_sorted>N</input_sorted>
  931. <preserve_memory>N</preserve_memory>
  932. <sorted_list>N</sorted_list>
  933. <integer_pair>N</integer_pair>
  934. <lookup>
  935. <key>
  936. <name>material_code</name>
  937. <field>mom_material_code</field>
  938. </key>
  939. <value>
  940. <name>mom_warehouse_code</name>
  941. <rename>mom_warehouse_code</rename>
  942. <default/>
  943. <type>String</type>
  944. </value>
  945. <value>
  946. <name>mom_location_code</name>
  947. <rename>mom_location_code</rename>
  948. <default/>
  949. <type>String</type>
  950. </value>
  951. <value>
  952. <name>mom_excess_ratio_out</name>
  953. <rename>mom_excess_ratio_out</rename>
  954. <default/>
  955. <type>BigNumber</type>
  956. </value>
  957. <value>
  958. <name>mom_is_back_flush</name>
  959. <rename>mom_is_back_flush</rename>
  960. <default/>
  961. <type>Binary</type>
  962. </value>
  963. </lookup>
  964. <attributes/>
  965. <cluster_schema/>
  966. <remotesteps>
  967. <input>
  968. </input>
  969. <output>
  970. </output>
  971. </remotesteps>
  972. <GUI>
  973. <xloc>544</xloc>
  974. <yloc>64</yloc>
  975. <draw>Y</draw>
  976. </GUI>
  977. </step>
  978. <step>
  979. <name>表输入</name>
  980. <type>TableInput</type>
  981. <description/>
  982. <distribute>Y</distribute>
  983. <custom_distribution/>
  984. <copies>1</copies>
  985. <partitioning>
  986. <method>none</method>
  987. <schema_name/>
  988. </partitioning>
  989. <connection>U8</connection>
  990. <sql>DECLARE @USER_NAME VARCHAR(50),@USER_ID INT
  991. SET @USER_NAME = CASE '${USER_NAME}' WHEN '' THEN '管理员(kettle)' ELSE '${USER_NAME}' END
  992. SET @USER_ID = CASE 0${USER_ID} WHEN 0 THEN 1 ELSE 0${USER_ID} END
  993. SELECT
  994. 0${interface_id} AS master_interface_id
  995. ,T2.MoDId AS interface_pid
  996. ,T3.AllocateId AS interface_id
  997. ,T3.SortSeq AS interface_row
  998. --,ROW_NUMBER()OVER(ORDER BY T2.SortSeq,T3.SortSeq) AS row_number
  999. ,ROW_NUMBER()OVER(ORDER BY T2.MoDId,T3.AllocateId) AS row_number
  1000. ,T3.InvCode AS material_code
  1001. ,T3.Qty AS task_qty
  1002. ,T6.cComUnitCode AS unit_code
  1003. ,0 AS status
  1004. --,1 AS is_close
  1005. ,CASE T2.Status WHEN 4 THEN 0 ELSE 1 END AS is_close --3已审核4关闭
  1006. ,@USER_NAME AS sync_name
  1007. ,@USER_ID AS sync_id
  1008. ,GETDATE() AS sync_time
  1009. FROM mom_order T1
  1010. LEFT JOIN mom_orderdetail T2 ON T1.MoId =T2.MoId
  1011. LEFT JOIN mom_moallocate T3 ON T2.MoDId =T3.MoDId
  1012. LEFT JOIN mom_morder T4 ON T2.MoDId =T4.MoDId
  1013. LEFT JOIN Inventory T6 ON T3.InvCode =T6.cInvCode
  1014. WHERE 1=1
  1015. AND T3.ByproductFlag =0 --是否联副产品
  1016. AND T1.MoId =0${interface_id}
  1017. AND CONVERT(DATE,T4.StartDate) ='${task_date}'
  1018. AND ISNULL(T2.MDeptCode,'') ='${dept_code}'
  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_pid</name>
  1054. <length>9</length>
  1055. <precision>0</precision>
  1056. <origin>表输入</origin>
  1057. <comments>interface_pid</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_id</name>
  1077. <length>9</length>
  1078. <precision>0</precision>
  1079. <origin>表输入</origin>
  1080. <comments>interface_id</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>interface_row</name>
  1100. <length>9</length>
  1101. <precision>0</precision>
  1102. <origin>表输入</origin>
  1103. <comments>interface_row</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>Integer</type>
  1121. <storagetype>normal</storagetype>
  1122. <name>row_number</name>
  1123. <length>15</length>
  1124. <precision>0</precision>
  1125. <origin>表输入</origin>
  1126. <comments>row_number</comments>
  1127. <conversion_Mask>####0;-####0</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>String</type>
  1144. <storagetype>normal</storagetype>
  1145. <name>material_code</name>
  1146. <length>60</length>
  1147. <precision>-1</precision>
  1148. <origin>表输入</origin>
  1149. <comments>material_code</comments>
  1150. <conversion_Mask/>
  1151. <decimal_symbol>.</decimal_symbol>
  1152. <grouping_symbol>,</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>BigNumber</type>
  1167. <storagetype>normal</storagetype>
  1168. <name>task_qty</name>
  1169. <length>28</length>
  1170. <precision>6</precision>
  1171. <origin>表输入</origin>
  1172. <comments>task_qty</comments>
  1173. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1174. <decimal_symbol>.</decimal_symbol>
  1175. <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>unit_code</name>
  1192. <length>35</length>
  1193. <precision>-1</precision>
  1194. <origin>表输入</origin>
  1195. <comments>unit_code</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>Integer</type>
  1213. <storagetype>normal</storagetype>
  1214. <name>status</name>
  1215. <length>9</length>
  1216. <precision>0</precision>
  1217. <origin>表输入</origin>
  1218. <comments>status</comments>
  1219. <conversion_Mask>####0;-####0</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>is_close</name>
  1238. <length>9</length>
  1239. <precision>0</precision>
  1240. <origin>表输入</origin>
  1241. <comments>is_close</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>String</type>
  1259. <storagetype>normal</storagetype>
  1260. <name>sync_name</name>
  1261. <length>50</length>
  1262. <precision>-1</precision>
  1263. <origin>表输入</origin>
  1264. <comments>sync_name</comments>
  1265. <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>Integer</type>
  1282. <storagetype>normal</storagetype>
  1283. <name>sync_id</name>
  1284. <length>9</length>
  1285. <precision>0</precision>
  1286. <origin>表输入</origin>
  1287. <comments>sync_id</comments>
  1288. <conversion_Mask>####0;-####0</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>Timestamp</type>
  1305. <storagetype>normal</storagetype>
  1306. <name>sync_time</name>
  1307. <length>3</length>
  1308. <precision>-1</precision>
  1309. <origin>表输入</origin>
  1310. <comments>sync_time</comments>
  1311. <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. </row-meta>
  1327. <attributes/>
  1328. <cluster_schema/>
  1329. <remotesteps>
  1330. <input>
  1331. </input>
  1332. <output>
  1333. </output>
  1334. </remotesteps>
  1335. <GUI>
  1336. <xloc>48</xloc>
  1337. <yloc>64</yloc>
  1338. <draw>Y</draw>
  1339. </GUI>
  1340. </step>
  1341. <step>
  1342. <name>表输入-mom入库任务</name>
  1343. <type>TableInput</type>
  1344. <description/>
  1345. <distribute>Y</distribute>
  1346. <custom_distribution/>
  1347. <copies>1</copies>
  1348. <partitioning>
  1349. <method>none</method>
  1350. <schema_name/>
  1351. </partitioning>
  1352. <connection>MOM</connection>
  1353. <sql>SELECT
  1354. T2.id AS mom_task_ins_id,
  1355. T2.interface_id AS mom_interface_pid
  1356. FROM wms_task_in T1
  1357. LEFT JOIN wms_task_ins T2 ON T1.id =T2.task_in_id
  1358. WHERE 1=1
  1359. AND T1.interface_id =0${interface_id} AND T1.bill_type =1</sql>
  1360. <limit>0</limit>
  1361. <lookup/>
  1362. <execute_each_row>N</execute_each_row>
  1363. <variables_active>Y</variables_active>
  1364. <lazy_conversion_active>N</lazy_conversion_active>
  1365. <cached_row_meta_active>N</cached_row_meta_active>
  1366. <row-meta>
  1367. <value-meta>
  1368. <type>String</type>
  1369. <storagetype>normal</storagetype>
  1370. <name>mom_task_ins_id</name>
  1371. <length>20</length>
  1372. <precision>-1</precision>
  1373. <origin>表输入-mom入库任务</origin>
  1374. <comments>mom_task_ins_id</comments>
  1375. <conversion_Mask/>
  1376. <decimal_symbol>.</decimal_symbol>
  1377. <grouping_symbol>,</grouping_symbol>
  1378. <currency_symbol/>
  1379. <trim_type>none</trim_type>
  1380. <case_insensitive>N</case_insensitive>
  1381. <collator_disabled>Y</collator_disabled>
  1382. <collator_strength>0</collator_strength>
  1383. <sort_descending>N</sort_descending>
  1384. <output_padding>N</output_padding>
  1385. <date_format_lenient>N</date_format_lenient>
  1386. <date_format_locale>zh_CN</date_format_locale>
  1387. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1388. <lenient_string_to_number>N</lenient_string_to_number>
  1389. </value-meta>
  1390. <value-meta>
  1391. <type>Integer</type>
  1392. <storagetype>normal</storagetype>
  1393. <name>mom_interface_pid</name>
  1394. <length>9</length>
  1395. <precision>0</precision>
  1396. <origin>表输入-mom入库任务</origin>
  1397. <comments>mom_interface_pid</comments>
  1398. <conversion_Mask>####0;-####0</conversion_Mask>
  1399. <decimal_symbol>.</decimal_symbol>
  1400. <grouping_symbol>,</grouping_symbol>
  1401. <currency_symbol/>
  1402. <trim_type>none</trim_type>
  1403. <case_insensitive>N</case_insensitive>
  1404. <collator_disabled>Y</collator_disabled>
  1405. <collator_strength>0</collator_strength>
  1406. <sort_descending>N</sort_descending>
  1407. <output_padding>N</output_padding>
  1408. <date_format_lenient>N</date_format_lenient>
  1409. <date_format_locale>zh_CN</date_format_locale>
  1410. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1411. <lenient_string_to_number>N</lenient_string_to_number>
  1412. </value-meta>
  1413. </row-meta>
  1414. <attributes/>
  1415. <cluster_schema/>
  1416. <remotesteps>
  1417. <input>
  1418. </input>
  1419. <output>
  1420. </output>
  1421. </remotesteps>
  1422. <GUI>
  1423. <xloc>576</xloc>
  1424. <yloc>176</yloc>
  1425. <draw>Y</draw>
  1426. </GUI>
  1427. </step>
  1428. <step>
  1429. <name>表输入-mom物料档案</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. material_code AS mom_material_code
  1442. ,excess_ratio_out AS mom_excess_ratio_out
  1443. ,warehouse_code_out AS mom_warehouse_code
  1444. ,location_code_out AS mom_location_code
  1445. ,CASE WHEN 0${mom_is_back_flush} = 0 AND collect_type = 2 THEN 0 ELSE 1 END AS mom_is_back_flush
  1446. FROM base_material
  1447. </sql>
  1448. <limit>0</limit>
  1449. <lookup/>
  1450. <execute_each_row>N</execute_each_row>
  1451. <variables_active>Y</variables_active>
  1452. <lazy_conversion_active>N</lazy_conversion_active>
  1453. <cached_row_meta_active>N</cached_row_meta_active>
  1454. <row-meta>
  1455. <value-meta>
  1456. <type>String</type>
  1457. <storagetype>normal</storagetype>
  1458. <name>mom_material_code</name>
  1459. <length>50</length>
  1460. <precision>-1</precision>
  1461. <origin>表输入-mom物料档案</origin>
  1462. <comments>mom_material_code</comments>
  1463. <conversion_Mask/>
  1464. <decimal_symbol>.</decimal_symbol>
  1465. <grouping_symbol>,</grouping_symbol>
  1466. <currency_symbol/>
  1467. <trim_type>none</trim_type>
  1468. <case_insensitive>N</case_insensitive>
  1469. <collator_disabled>Y</collator_disabled>
  1470. <collator_strength>0</collator_strength>
  1471. <sort_descending>N</sort_descending>
  1472. <output_padding>N</output_padding>
  1473. <date_format_lenient>N</date_format_lenient>
  1474. <date_format_locale>zh_CN</date_format_locale>
  1475. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1476. <lenient_string_to_number>N</lenient_string_to_number>
  1477. </value-meta>
  1478. <value-meta>
  1479. <type>BigNumber</type>
  1480. <storagetype>normal</storagetype>
  1481. <name>mom_excess_ratio_out</name>
  1482. <length>24</length>
  1483. <precision>6</precision>
  1484. <origin>表输入-mom物料档案</origin>
  1485. <comments>mom_excess_ratio_out</comments>
  1486. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1487. <decimal_symbol>.</decimal_symbol>
  1488. <grouping_symbol/>
  1489. <currency_symbol/>
  1490. <trim_type>none</trim_type>
  1491. <case_insensitive>N</case_insensitive>
  1492. <collator_disabled>Y</collator_disabled>
  1493. <collator_strength>0</collator_strength>
  1494. <sort_descending>N</sort_descending>
  1495. <output_padding>N</output_padding>
  1496. <date_format_lenient>N</date_format_lenient>
  1497. <date_format_locale>zh_CN</date_format_locale>
  1498. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1499. <lenient_string_to_number>N</lenient_string_to_number>
  1500. </value-meta>
  1501. <value-meta>
  1502. <type>String</type>
  1503. <storagetype>normal</storagetype>
  1504. <name>mom_warehouse_code</name>
  1505. <length>50</length>
  1506. <precision>-1</precision>
  1507. <origin>表输入-mom物料档案</origin>
  1508. <comments>mom_warehouse_code</comments>
  1509. <conversion_Mask/>
  1510. <decimal_symbol>.</decimal_symbol>
  1511. <grouping_symbol>,</grouping_symbol>
  1512. <currency_symbol/>
  1513. <trim_type>none</trim_type>
  1514. <case_insensitive>N</case_insensitive>
  1515. <collator_disabled>Y</collator_disabled>
  1516. <collator_strength>0</collator_strength>
  1517. <sort_descending>N</sort_descending>
  1518. <output_padding>N</output_padding>
  1519. <date_format_lenient>N</date_format_lenient>
  1520. <date_format_locale>zh_CN</date_format_locale>
  1521. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1522. <lenient_string_to_number>N</lenient_string_to_number>
  1523. </value-meta>
  1524. <value-meta>
  1525. <type>String</type>
  1526. <storagetype>normal</storagetype>
  1527. <name>mom_location_code</name>
  1528. <length>50</length>
  1529. <precision>-1</precision>
  1530. <origin>表输入-mom物料档案</origin>
  1531. <comments>mom_location_code</comments>
  1532. <conversion_Mask/>
  1533. <decimal_symbol>.</decimal_symbol>
  1534. <grouping_symbol>,</grouping_symbol>
  1535. <currency_symbol/>
  1536. <trim_type>none</trim_type>
  1537. <case_insensitive>N</case_insensitive>
  1538. <collator_disabled>Y</collator_disabled>
  1539. <collator_strength>0</collator_strength>
  1540. <sort_descending>N</sort_descending>
  1541. <output_padding>N</output_padding>
  1542. <date_format_lenient>N</date_format_lenient>
  1543. <date_format_locale>zh_CN</date_format_locale>
  1544. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1545. <lenient_string_to_number>N</lenient_string_to_number>
  1546. </value-meta>
  1547. <value-meta>
  1548. <type>Integer</type>
  1549. <storagetype>normal</storagetype>
  1550. <name>mom_is_back_flush</name>
  1551. <length>15</length>
  1552. <precision>0</precision>
  1553. <origin>表输入-mom物料档案</origin>
  1554. <comments>mom_is_back_flush</comments>
  1555. <conversion_Mask>####0;-####0</conversion_Mask>
  1556. <decimal_symbol>.</decimal_symbol>
  1557. <grouping_symbol>,</grouping_symbol>
  1558. <currency_symbol/>
  1559. <trim_type>none</trim_type>
  1560. <case_insensitive>N</case_insensitive>
  1561. <collator_disabled>Y</collator_disabled>
  1562. <collator_strength>0</collator_strength>
  1563. <sort_descending>N</sort_descending>
  1564. <output_padding>N</output_padding>
  1565. <date_format_lenient>N</date_format_lenient>
  1566. <date_format_locale>zh_CN</date_format_locale>
  1567. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1568. <lenient_string_to_number>N</lenient_string_to_number>
  1569. </value-meta>
  1570. </row-meta>
  1571. <attributes/>
  1572. <cluster_schema/>
  1573. <remotesteps>
  1574. <input>
  1575. </input>
  1576. <output>
  1577. </output>
  1578. </remotesteps>
  1579. <GUI>
  1580. <xloc>400</xloc>
  1581. <yloc>176</yloc>
  1582. <draw>Y</draw>
  1583. </GUI>
  1584. </step>
  1585. <step>
  1586. <name>表输入-主id</name>
  1587. <type>TableInput</type>
  1588. <description/>
  1589. <distribute>Y</distribute>
  1590. <custom_distribution/>
  1591. <copies>1</copies>
  1592. <partitioning>
  1593. <method>none</method>
  1594. <schema_name/>
  1595. </partitioning>
  1596. <connection>MOM</connection>
  1597. <sql>SELECT
  1598. interface_id as master_interface_id,
  1599. id as mom_task_out_id
  1600. FROM wms_task_out
  1601. WHERE interface_id =0${interface_id} AND bill_type =1 LIMIT 1</sql>
  1602. <limit>0</limit>
  1603. <lookup/>
  1604. <execute_each_row>N</execute_each_row>
  1605. <variables_active>Y</variables_active>
  1606. <lazy_conversion_active>N</lazy_conversion_active>
  1607. <cached_row_meta_active>N</cached_row_meta_active>
  1608. <row-meta>
  1609. <value-meta>
  1610. <type>Integer</type>
  1611. <storagetype>normal</storagetype>
  1612. <name>master_interface_id</name>
  1613. <length>9</length>
  1614. <precision>0</precision>
  1615. <origin>表输入-主id</origin>
  1616. <comments>master_interface_id</comments>
  1617. <conversion_Mask>####0;-####0</conversion_Mask>
  1618. <decimal_symbol>.</decimal_symbol>
  1619. <grouping_symbol>,</grouping_symbol>
  1620. <currency_symbol/>
  1621. <trim_type>none</trim_type>
  1622. <case_insensitive>N</case_insensitive>
  1623. <collator_disabled>Y</collator_disabled>
  1624. <collator_strength>0</collator_strength>
  1625. <sort_descending>N</sort_descending>
  1626. <output_padding>N</output_padding>
  1627. <date_format_lenient>N</date_format_lenient>
  1628. <date_format_locale>zh_CN</date_format_locale>
  1629. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1630. <lenient_string_to_number>N</lenient_string_to_number>
  1631. </value-meta>
  1632. <value-meta>
  1633. <type>String</type>
  1634. <storagetype>normal</storagetype>
  1635. <name>mom_task_out_id</name>
  1636. <length>20</length>
  1637. <precision>-1</precision>
  1638. <origin>表输入-主id</origin>
  1639. <comments>mom_task_out_id</comments>
  1640. <conversion_Mask/>
  1641. <decimal_symbol>.</decimal_symbol>
  1642. <grouping_symbol>,</grouping_symbol>
  1643. <currency_symbol/>
  1644. <trim_type>none</trim_type>
  1645. <case_insensitive>N</case_insensitive>
  1646. <collator_disabled>Y</collator_disabled>
  1647. <collator_strength>0</collator_strength>
  1648. <sort_descending>N</sort_descending>
  1649. <output_padding>N</output_padding>
  1650. <date_format_lenient>N</date_format_lenient>
  1651. <date_format_locale>zh_CN</date_format_locale>
  1652. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1653. <lenient_string_to_number>N</lenient_string_to_number>
  1654. </value-meta>
  1655. </row-meta>
  1656. <attributes/>
  1657. <cluster_schema/>
  1658. <remotesteps>
  1659. <input>
  1660. </input>
  1661. <output>
  1662. </output>
  1663. </remotesteps>
  1664. <GUI>
  1665. <xloc>224</xloc>
  1666. <yloc>176</yloc>
  1667. <draw>Y</draw>
  1668. </GUI>
  1669. </step>
  1670. <step_error_handling>
  1671. </step_error_handling>
  1672. <slave-step-copy-partition-distribution>
  1673. </slave-step-copy-partition-distribution>
  1674. <slave_transformation>N</slave_transformation>
  1675. <attributes/>
  1676. </transformation>