委外退货单子表数据同步.ktr 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808
  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>表输入-mom入库任务</from>
  595. <to>流查询-入库任务</to>
  596. <enabled>Y</enabled>
  597. </hop>
  598. <hop>
  599. <from>流查询-入库任务</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>执行SQL脚本-更新任务入库退数量</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>Y</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>128</yloc>
  688. <draw>Y</draw>
  689. </GUI>
  690. </step>
  691. <step>
  692. <name>执行SQL脚本-更新任务入库退数量</name>
  693. <type>ExecSQL</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. <execute_each_row>Y</execute_each_row>
  704. <single_statement>N</single_statement>
  705. <replace_variables>Y</replace_variables>
  706. <quoteString>N</quoteString>
  707. <sql>UPDATE wms_task_ins SET
  708. back_task_qty = IFNULL(back_task_qty,0) + ?
  709. WHERE id = '?';</sql>
  710. <set_params>N</set_params>
  711. <insert_field/>
  712. <update_field/>
  713. <delete_field/>
  714. <read_field/>
  715. <arguments>
  716. <argument>
  717. <name>task_qty</name>
  718. </argument>
  719. <argument>
  720. <name>mom_task_ins_id</name>
  721. </argument>
  722. </arguments>
  723. <attributes/>
  724. <cluster_schema/>
  725. <remotesteps>
  726. <input>
  727. </input>
  728. <output>
  729. </output>
  730. </remotesteps>
  731. <GUI>
  732. <xloc>880</xloc>
  733. <yloc>128</yloc>
  734. <draw>Y</draw>
  735. </GUI>
  736. </step>
  737. <step>
  738. <name>插入 / 更新</name>
  739. <type>InsertUpdate</type>
  740. <description/>
  741. <distribute>Y</distribute>
  742. <custom_distribution/>
  743. <copies>1</copies>
  744. <partitioning>
  745. <method>none</method>
  746. <schema_name/>
  747. </partitioning>
  748. <connection>MOM</connection>
  749. <commit>1000</commit>
  750. <update_bypassed>Y</update_bypassed>
  751. <lookup>
  752. <schema/>
  753. <table>wms_task_ins</table>
  754. <key>
  755. <name>interface_id</name>
  756. <field>interface_id</field>
  757. <condition>=</condition>
  758. <name2/>
  759. </key>
  760. <key>
  761. <name>mom_task_in_id</name>
  762. <field>task_in_id</field>
  763. <condition>=</condition>
  764. <name2/>
  765. </key>
  766. <value>
  767. <name>interface_id</name>
  768. <rename>interface_id</rename>
  769. <update>N</update>
  770. </value>
  771. <value>
  772. <name>interface_row</name>
  773. <rename>interface_row</rename>
  774. <update>N</update>
  775. </value>
  776. <value>
  777. <name>id</name>
  778. <rename>id</rename>
  779. <update>N</update>
  780. </value>
  781. <value>
  782. <name>task_in_id</name>
  783. <rename>mom_task_in_id</rename>
  784. <update>N</update>
  785. </value>
  786. <value>
  787. <name>row_number</name>
  788. <rename>row_number</rename>
  789. <update>N</update>
  790. </value>
  791. <value>
  792. <name>material_code</name>
  793. <rename>material_code</rename>
  794. <update>N</update>
  795. </value>
  796. <value>
  797. <name>task_qty</name>
  798. <rename>task_qty</rename>
  799. <update>N</update>
  800. </value>
  801. <value>
  802. <name>unit_code</name>
  803. <rename>unit_code</rename>
  804. <update>N</update>
  805. </value>
  806. <value>
  807. <name>excess_ratio_in</name>
  808. <rename>mom_excess_ratio_in</rename>
  809. <update>N</update>
  810. </value>
  811. <value>
  812. <name>warehouse_code</name>
  813. <rename>mom_warehouse_code</rename>
  814. <update>N</update>
  815. </value>
  816. <value>
  817. <name>location_code</name>
  818. <rename>mom_location_code</rename>
  819. <update>N</update>
  820. </value>
  821. <value>
  822. <name>batch1</name>
  823. <rename>batch1</rename>
  824. <update>N</update>
  825. </value>
  826. <value>
  827. <name>batch2</name>
  828. <rename>batch2</rename>
  829. <update>N</update>
  830. </value>
  831. <value>
  832. <name>task_ins_id</name>
  833. <rename>mom_task_ins_id</rename>
  834. <update>N</update>
  835. </value>
  836. <value>
  837. <name>status</name>
  838. <rename>status</rename>
  839. <update>N</update>
  840. </value>
  841. <value>
  842. <name>is_close</name>
  843. <rename>is_close</rename>
  844. <update>N</update>
  845. </value>
  846. <value>
  847. <name>create_id</name>
  848. <rename>sync_id</rename>
  849. <update>N</update>
  850. </value>
  851. <value>
  852. <name>create_by</name>
  853. <rename>sync_name</rename>
  854. <update>N</update>
  855. </value>
  856. <value>
  857. <name>create_time</name>
  858. <rename>sync_time</rename>
  859. <update>N</update>
  860. </value>
  861. <value>
  862. <name>audit_by</name>
  863. <rename>sync_name</rename>
  864. <update>N</update>
  865. </value>
  866. <value>
  867. <name>audit_time</name>
  868. <rename>sync_time</rename>
  869. <update>N</update>
  870. </value>
  871. </lookup>
  872. <attributes/>
  873. <cluster_schema/>
  874. <remotesteps>
  875. <input>
  876. </input>
  877. <output>
  878. </output>
  879. </remotesteps>
  880. <GUI>
  881. <xloc>720</xloc>
  882. <yloc>128</yloc>
  883. <draw>Y</draw>
  884. </GUI>
  885. </step>
  886. <step>
  887. <name>流查询-入库任务</name>
  888. <type>StreamLookup</type>
  889. <description/>
  890. <distribute>Y</distribute>
  891. <custom_distribution/>
  892. <copies>1</copies>
  893. <partitioning>
  894. <method>none</method>
  895. <schema_name/>
  896. </partitioning>
  897. <from>表输入-mom入库任务</from>
  898. <input_sorted>N</input_sorted>
  899. <preserve_memory>N</preserve_memory>
  900. <sorted_list>N</sorted_list>
  901. <integer_pair>N</integer_pair>
  902. <lookup>
  903. <key>
  904. <name>interface_pid</name>
  905. <field>interface_pid</field>
  906. </key>
  907. <key>
  908. <name>mom_bill_type</name>
  909. <field>mom_bill_type</field>
  910. </key>
  911. <value>
  912. <name>mom_task_ins_id</name>
  913. <rename>mom_task_ins_id</rename>
  914. <default/>
  915. <type>String</type>
  916. </value>
  917. </lookup>
  918. <attributes/>
  919. <cluster_schema/>
  920. <remotesteps>
  921. <input>
  922. </input>
  923. <output>
  924. </output>
  925. </remotesteps>
  926. <GUI>
  927. <xloc>592</xloc>
  928. <yloc>128</yloc>
  929. <draw>Y</draw>
  930. </GUI>
  931. </step>
  932. <step>
  933. <name>流查询-物料档案</name>
  934. <type>StreamLookup</type>
  935. <description/>
  936. <distribute>Y</distribute>
  937. <custom_distribution/>
  938. <copies>1</copies>
  939. <partitioning>
  940. <method>none</method>
  941. <schema_name/>
  942. </partitioning>
  943. <from>表输入-mom物料档案</from>
  944. <input_sorted>N</input_sorted>
  945. <preserve_memory>N</preserve_memory>
  946. <sorted_list>N</sorted_list>
  947. <integer_pair>N</integer_pair>
  948. <lookup>
  949. <key>
  950. <name>material_code</name>
  951. <field>mom_material_code</field>
  952. </key>
  953. <value>
  954. <name>mom_warehouse_code</name>
  955. <rename>mom_warehouse_code</rename>
  956. <default/>
  957. <type>String</type>
  958. </value>
  959. <value>
  960. <name>mom_location_code</name>
  961. <rename>mom_location_code</rename>
  962. <default/>
  963. <type>String</type>
  964. </value>
  965. <value>
  966. <name>mom_excess_ratio_in</name>
  967. <rename>mom_excess_ratio_in</rename>
  968. <default/>
  969. <type>BigNumber</type>
  970. </value>
  971. </lookup>
  972. <attributes/>
  973. <cluster_schema/>
  974. <remotesteps>
  975. <input>
  976. </input>
  977. <output>
  978. </output>
  979. </remotesteps>
  980. <GUI>
  981. <xloc>432</xloc>
  982. <yloc>128</yloc>
  983. <draw>Y</draw>
  984. </GUI>
  985. </step>
  986. <step>
  987. <name>表输入</name>
  988. <type>TableInput</type>
  989. <description/>
  990. <distribute>Y</distribute>
  991. <custom_distribution/>
  992. <copies>1</copies>
  993. <partitioning>
  994. <method>none</method>
  995. <schema_name/>
  996. </partitioning>
  997. <connection>U8</connection>
  998. <sql>DECLARE @USER_NAME VARCHAR(50),@USER_ID INT
  999. SET @USER_NAME = CASE '${USER_NAME}' WHEN '' THEN '管理员(kettle)' ELSE '${USER_NAME}' END
  1000. SET @USER_ID = CASE 0${USER_ID} WHEN 0 THEN 1 ELSE 0${USER_ID} END
  1001. SELECT
  1002. 0${interface_id} AS master_interface_id
  1003. ,T2.Autoid AS interface_id
  1004. ,T2.iVouchRowNo AS interface_row
  1005. ,ROW_NUMBER()OVER(ORDER BY T2.iVouchRowNo) AS row_number
  1006. ,T2.cInvCode AS material_code
  1007. ,ABS(T2.iQuantity) AS task_qty
  1008. ,T6.cComUnitCode AS unit_code
  1009. ,T2.cBatch AS batch1
  1010. ,T2.cBatchProperty6 AS batch2
  1011. ,0 AS status
  1012. ,1 AS is_close
  1013. ,@USER_NAME AS sync_name
  1014. ,@USER_ID AS sync_id
  1015. ,GETDATE() AS sync_time
  1016. --1生产订单、2委外订单、3委外到货单、4采购订单、5采购到货单、6销售订单、7销售发货单
  1017. ,CASE WHEN ISNULL(T2.icorid,0) &lt;&gt;0 THEN 3
  1018. WHEN ISNULL(T2.icorid,0) =0 AND ISNULL(T2.iposid,0)&lt;&gt;0 THEN 2 ELSE 0 END AS mom_bill_type
  1019. ,CASE WHEN ISNULL(T2.icorid,0) &lt;&gt;0 THEN T2.icorid
  1020. WHEN ISNULL(T2.icorid,0) =0 AND ISNULL(T2.iposid,0)&lt;&gt;0 THEN T2.iposid ELSE 0 END AS interface_pid
  1021. FROM PU_ArrivalVouch T1
  1022. LEFT JOIN PU_ArrivalVouchs T2 ON T1.ID =T2.ID
  1023. LEFT JOIN Inventory T6 ON T2.cInvCode =T6.cInvCode
  1024. WHERE 1=1
  1025. AND T1.ID =0${interface_id}
  1026. </sql>
  1027. <limit>0</limit>
  1028. <lookup/>
  1029. <execute_each_row>N</execute_each_row>
  1030. <variables_active>Y</variables_active>
  1031. <lazy_conversion_active>N</lazy_conversion_active>
  1032. <cached_row_meta_active>N</cached_row_meta_active>
  1033. <row-meta>
  1034. <value-meta>
  1035. <type>Integer</type>
  1036. <storagetype>normal</storagetype>
  1037. <name>interface_id</name>
  1038. <length>9</length>
  1039. <precision>0</precision>
  1040. <origin>表输入</origin>
  1041. <comments>interface_id</comments>
  1042. <conversion_Mask>####0;-####0</conversion_Mask>
  1043. <decimal_symbol>.</decimal_symbol>
  1044. <grouping_symbol>,</grouping_symbol>
  1045. <currency_symbol/>
  1046. <trim_type>none</trim_type>
  1047. <case_insensitive>N</case_insensitive>
  1048. <collator_disabled>Y</collator_disabled>
  1049. <collator_strength>0</collator_strength>
  1050. <sort_descending>N</sort_descending>
  1051. <output_padding>N</output_padding>
  1052. <date_format_lenient>N</date_format_lenient>
  1053. <date_format_locale>zh_CN</date_format_locale>
  1054. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1055. <lenient_string_to_number>N</lenient_string_to_number>
  1056. </value-meta>
  1057. <value-meta>
  1058. <type>Integer</type>
  1059. <storagetype>normal</storagetype>
  1060. <name>interface_row</name>
  1061. <length>9</length>
  1062. <precision>0</precision>
  1063. <origin>表输入</origin>
  1064. <comments>interface_row</comments>
  1065. <conversion_Mask>####0;-####0</conversion_Mask>
  1066. <decimal_symbol>.</decimal_symbol>
  1067. <grouping_symbol>,</grouping_symbol>
  1068. <currency_symbol/>
  1069. <trim_type>none</trim_type>
  1070. <case_insensitive>N</case_insensitive>
  1071. <collator_disabled>Y</collator_disabled>
  1072. <collator_strength>0</collator_strength>
  1073. <sort_descending>N</sort_descending>
  1074. <output_padding>N</output_padding>
  1075. <date_format_lenient>N</date_format_lenient>
  1076. <date_format_locale>zh_CN</date_format_locale>
  1077. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1078. <lenient_string_to_number>N</lenient_string_to_number>
  1079. </value-meta>
  1080. <value-meta>
  1081. <type>Integer</type>
  1082. <storagetype>normal</storagetype>
  1083. <name>task_in_id</name>
  1084. <length>9</length>
  1085. <precision>0</precision>
  1086. <origin>表输入</origin>
  1087. <comments>task_in_id</comments>
  1088. <conversion_Mask>####0;-####0</conversion_Mask>
  1089. <decimal_symbol>.</decimal_symbol>
  1090. <grouping_symbol>,</grouping_symbol>
  1091. <currency_symbol/>
  1092. <trim_type>none</trim_type>
  1093. <case_insensitive>N</case_insensitive>
  1094. <collator_disabled>Y</collator_disabled>
  1095. <collator_strength>0</collator_strength>
  1096. <sort_descending>N</sort_descending>
  1097. <output_padding>N</output_padding>
  1098. <date_format_lenient>N</date_format_lenient>
  1099. <date_format_locale>zh_CN</date_format_locale>
  1100. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1101. <lenient_string_to_number>N</lenient_string_to_number>
  1102. </value-meta>
  1103. <value-meta>
  1104. <type>Integer</type>
  1105. <storagetype>normal</storagetype>
  1106. <name>row_number</name>
  1107. <length>15</length>
  1108. <precision>0</precision>
  1109. <origin>表输入</origin>
  1110. <comments>row_number</comments>
  1111. <conversion_Mask>####0;-####0</conversion_Mask>
  1112. <decimal_symbol>.</decimal_symbol>
  1113. <grouping_symbol>,</grouping_symbol>
  1114. <currency_symbol/>
  1115. <trim_type>none</trim_type>
  1116. <case_insensitive>N</case_insensitive>
  1117. <collator_disabled>Y</collator_disabled>
  1118. <collator_strength>0</collator_strength>
  1119. <sort_descending>N</sort_descending>
  1120. <output_padding>N</output_padding>
  1121. <date_format_lenient>N</date_format_lenient>
  1122. <date_format_locale>zh_CN</date_format_locale>
  1123. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1124. <lenient_string_to_number>N</lenient_string_to_number>
  1125. </value-meta>
  1126. <value-meta>
  1127. <type>String</type>
  1128. <storagetype>normal</storagetype>
  1129. <name>material_code</name>
  1130. <length>60</length>
  1131. <precision>-1</precision>
  1132. <origin>表输入</origin>
  1133. <comments>material_code</comments>
  1134. <conversion_Mask/>
  1135. <decimal_symbol>.</decimal_symbol>
  1136. <grouping_symbol>,</grouping_symbol>
  1137. <currency_symbol/>
  1138. <trim_type>none</trim_type>
  1139. <case_insensitive>N</case_insensitive>
  1140. <collator_disabled>Y</collator_disabled>
  1141. <collator_strength>0</collator_strength>
  1142. <sort_descending>N</sort_descending>
  1143. <output_padding>N</output_padding>
  1144. <date_format_lenient>N</date_format_lenient>
  1145. <date_format_locale>zh_CN</date_format_locale>
  1146. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1147. <lenient_string_to_number>N</lenient_string_to_number>
  1148. </value-meta>
  1149. <value-meta>
  1150. <type>BigNumber</type>
  1151. <storagetype>normal</storagetype>
  1152. <name>task_qty</name>
  1153. <length>20</length>
  1154. <precision>6</precision>
  1155. <origin>表输入</origin>
  1156. <comments>task_qty</comments>
  1157. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1158. <decimal_symbol>.</decimal_symbol>
  1159. <grouping_symbol/>
  1160. <currency_symbol/>
  1161. <trim_type>none</trim_type>
  1162. <case_insensitive>N</case_insensitive>
  1163. <collator_disabled>Y</collator_disabled>
  1164. <collator_strength>0</collator_strength>
  1165. <sort_descending>N</sort_descending>
  1166. <output_padding>N</output_padding>
  1167. <date_format_lenient>N</date_format_lenient>
  1168. <date_format_locale>zh_CN</date_format_locale>
  1169. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1170. <lenient_string_to_number>N</lenient_string_to_number>
  1171. </value-meta>
  1172. <value-meta>
  1173. <type>String</type>
  1174. <storagetype>normal</storagetype>
  1175. <name>unit_code</name>
  1176. <length>35</length>
  1177. <precision>-1</precision>
  1178. <origin>表输入</origin>
  1179. <comments>unit_code</comments>
  1180. <conversion_Mask/>
  1181. <decimal_symbol>.</decimal_symbol>
  1182. <grouping_symbol>,</grouping_symbol>
  1183. <currency_symbol/>
  1184. <trim_type>none</trim_type>
  1185. <case_insensitive>N</case_insensitive>
  1186. <collator_disabled>Y</collator_disabled>
  1187. <collator_strength>0</collator_strength>
  1188. <sort_descending>N</sort_descending>
  1189. <output_padding>N</output_padding>
  1190. <date_format_lenient>N</date_format_lenient>
  1191. <date_format_locale>zh_CN</date_format_locale>
  1192. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1193. <lenient_string_to_number>N</lenient_string_to_number>
  1194. </value-meta>
  1195. <value-meta>
  1196. <type>String</type>
  1197. <storagetype>normal</storagetype>
  1198. <name>batch1</name>
  1199. <length>60</length>
  1200. <precision>-1</precision>
  1201. <origin>表输入</origin>
  1202. <comments>batch1</comments>
  1203. <conversion_Mask/>
  1204. <decimal_symbol>.</decimal_symbol>
  1205. <grouping_symbol>,</grouping_symbol>
  1206. <currency_symbol/>
  1207. <trim_type>none</trim_type>
  1208. <case_insensitive>N</case_insensitive>
  1209. <collator_disabled>Y</collator_disabled>
  1210. <collator_strength>0</collator_strength>
  1211. <sort_descending>N</sort_descending>
  1212. <output_padding>N</output_padding>
  1213. <date_format_lenient>N</date_format_lenient>
  1214. <date_format_locale>zh_CN</date_format_locale>
  1215. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1216. <lenient_string_to_number>N</lenient_string_to_number>
  1217. </value-meta>
  1218. <value-meta>
  1219. <type>String</type>
  1220. <storagetype>normal</storagetype>
  1221. <name>batch2</name>
  1222. <length>120</length>
  1223. <precision>-1</precision>
  1224. <origin>表输入</origin>
  1225. <comments>batch2</comments>
  1226. <conversion_Mask/>
  1227. <decimal_symbol>.</decimal_symbol>
  1228. <grouping_symbol>,</grouping_symbol>
  1229. <currency_symbol/>
  1230. <trim_type>none</trim_type>
  1231. <case_insensitive>N</case_insensitive>
  1232. <collator_disabled>Y</collator_disabled>
  1233. <collator_strength>0</collator_strength>
  1234. <sort_descending>N</sort_descending>
  1235. <output_padding>N</output_padding>
  1236. <date_format_lenient>N</date_format_lenient>
  1237. <date_format_locale>zh_CN</date_format_locale>
  1238. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1239. <lenient_string_to_number>N</lenient_string_to_number>
  1240. </value-meta>
  1241. <value-meta>
  1242. <type>Integer</type>
  1243. <storagetype>normal</storagetype>
  1244. <name>status</name>
  1245. <length>9</length>
  1246. <precision>0</precision>
  1247. <origin>表输入</origin>
  1248. <comments>status</comments>
  1249. <conversion_Mask>####0;-####0</conversion_Mask>
  1250. <decimal_symbol>.</decimal_symbol>
  1251. <grouping_symbol>,</grouping_symbol>
  1252. <currency_symbol/>
  1253. <trim_type>none</trim_type>
  1254. <case_insensitive>N</case_insensitive>
  1255. <collator_disabled>Y</collator_disabled>
  1256. <collator_strength>0</collator_strength>
  1257. <sort_descending>N</sort_descending>
  1258. <output_padding>N</output_padding>
  1259. <date_format_lenient>N</date_format_lenient>
  1260. <date_format_locale>zh_CN</date_format_locale>
  1261. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1262. <lenient_string_to_number>N</lenient_string_to_number>
  1263. </value-meta>
  1264. <value-meta>
  1265. <type>Integer</type>
  1266. <storagetype>normal</storagetype>
  1267. <name>is_close</name>
  1268. <length>9</length>
  1269. <precision>0</precision>
  1270. <origin>表输入</origin>
  1271. <comments>is_close</comments>
  1272. <conversion_Mask>####0;-####0</conversion_Mask>
  1273. <decimal_symbol>.</decimal_symbol>
  1274. <grouping_symbol>,</grouping_symbol>
  1275. <currency_symbol/>
  1276. <trim_type>none</trim_type>
  1277. <case_insensitive>N</case_insensitive>
  1278. <collator_disabled>Y</collator_disabled>
  1279. <collator_strength>0</collator_strength>
  1280. <sort_descending>N</sort_descending>
  1281. <output_padding>N</output_padding>
  1282. <date_format_lenient>N</date_format_lenient>
  1283. <date_format_locale>zh_CN</date_format_locale>
  1284. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1285. <lenient_string_to_number>N</lenient_string_to_number>
  1286. </value-meta>
  1287. <value-meta>
  1288. <type>String</type>
  1289. <storagetype>normal</storagetype>
  1290. <name>sync_name</name>
  1291. <length>6</length>
  1292. <precision>-1</precision>
  1293. <origin>表输入</origin>
  1294. <comments>sync_name</comments>
  1295. <conversion_Mask/>
  1296. <decimal_symbol>.</decimal_symbol>
  1297. <grouping_symbol>,</grouping_symbol>
  1298. <currency_symbol/>
  1299. <trim_type>none</trim_type>
  1300. <case_insensitive>N</case_insensitive>
  1301. <collator_disabled>Y</collator_disabled>
  1302. <collator_strength>0</collator_strength>
  1303. <sort_descending>N</sort_descending>
  1304. <output_padding>N</output_padding>
  1305. <date_format_lenient>N</date_format_lenient>
  1306. <date_format_locale>zh_CN</date_format_locale>
  1307. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1308. <lenient_string_to_number>N</lenient_string_to_number>
  1309. </value-meta>
  1310. <value-meta>
  1311. <type>Integer</type>
  1312. <storagetype>normal</storagetype>
  1313. <name>sync_id</name>
  1314. <length>9</length>
  1315. <precision>0</precision>
  1316. <origin>表输入</origin>
  1317. <comments>sync_id</comments>
  1318. <conversion_Mask>####0;-####0</conversion_Mask>
  1319. <decimal_symbol>.</decimal_symbol>
  1320. <grouping_symbol>,</grouping_symbol>
  1321. <currency_symbol/>
  1322. <trim_type>none</trim_type>
  1323. <case_insensitive>N</case_insensitive>
  1324. <collator_disabled>Y</collator_disabled>
  1325. <collator_strength>0</collator_strength>
  1326. <sort_descending>N</sort_descending>
  1327. <output_padding>N</output_padding>
  1328. <date_format_lenient>N</date_format_lenient>
  1329. <date_format_locale>zh_CN</date_format_locale>
  1330. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1331. <lenient_string_to_number>N</lenient_string_to_number>
  1332. </value-meta>
  1333. <value-meta>
  1334. <type>Timestamp</type>
  1335. <storagetype>normal</storagetype>
  1336. <name>sync_time</name>
  1337. <length>3</length>
  1338. <precision>-1</precision>
  1339. <origin>表输入</origin>
  1340. <comments>sync_time</comments>
  1341. <conversion_Mask/>
  1342. <decimal_symbol>.</decimal_symbol>
  1343. <grouping_symbol>,</grouping_symbol>
  1344. <currency_symbol/>
  1345. <trim_type>none</trim_type>
  1346. <case_insensitive>N</case_insensitive>
  1347. <collator_disabled>Y</collator_disabled>
  1348. <collator_strength>0</collator_strength>
  1349. <sort_descending>N</sort_descending>
  1350. <output_padding>N</output_padding>
  1351. <date_format_lenient>N</date_format_lenient>
  1352. <date_format_locale>zh_CN</date_format_locale>
  1353. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1354. <lenient_string_to_number>N</lenient_string_to_number>
  1355. </value-meta>
  1356. <value-meta>
  1357. <type>Integer</type>
  1358. <storagetype>normal</storagetype>
  1359. <name>mom_bill_type</name>
  1360. <length>9</length>
  1361. <precision>0</precision>
  1362. <origin>表输入</origin>
  1363. <comments>mom_bill_type</comments>
  1364. <conversion_Mask>####0;-####0</conversion_Mask>
  1365. <decimal_symbol>.</decimal_symbol>
  1366. <grouping_symbol>,</grouping_symbol>
  1367. <currency_symbol/>
  1368. <trim_type>none</trim_type>
  1369. <case_insensitive>N</case_insensitive>
  1370. <collator_disabled>Y</collator_disabled>
  1371. <collator_strength>0</collator_strength>
  1372. <sort_descending>N</sort_descending>
  1373. <output_padding>N</output_padding>
  1374. <date_format_lenient>N</date_format_lenient>
  1375. <date_format_locale>zh_CN</date_format_locale>
  1376. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1377. <lenient_string_to_number>N</lenient_string_to_number>
  1378. </value-meta>
  1379. <value-meta>
  1380. <type>Integer</type>
  1381. <storagetype>normal</storagetype>
  1382. <name>interface_pid</name>
  1383. <length>9</length>
  1384. <precision>0</precision>
  1385. <origin>表输入</origin>
  1386. <comments>interface_pid</comments>
  1387. <conversion_Mask>####0;-####0</conversion_Mask>
  1388. <decimal_symbol>.</decimal_symbol>
  1389. <grouping_symbol>,</grouping_symbol>
  1390. <currency_symbol/>
  1391. <trim_type>none</trim_type>
  1392. <case_insensitive>N</case_insensitive>
  1393. <collator_disabled>Y</collator_disabled>
  1394. <collator_strength>0</collator_strength>
  1395. <sort_descending>N</sort_descending>
  1396. <output_padding>N</output_padding>
  1397. <date_format_lenient>N</date_format_lenient>
  1398. <date_format_locale>zh_CN</date_format_locale>
  1399. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1400. <lenient_string_to_number>N</lenient_string_to_number>
  1401. </value-meta>
  1402. </row-meta>
  1403. <attributes/>
  1404. <cluster_schema/>
  1405. <remotesteps>
  1406. <input>
  1407. </input>
  1408. <output>
  1409. </output>
  1410. </remotesteps>
  1411. <GUI>
  1412. <xloc>64</xloc>
  1413. <yloc>128</yloc>
  1414. <draw>Y</draw>
  1415. </GUI>
  1416. </step>
  1417. <step>
  1418. <name>表输入-mom入库任务</name>
  1419. <type>TableInput</type>
  1420. <description/>
  1421. <distribute>Y</distribute>
  1422. <custom_distribution/>
  1423. <copies>1</copies>
  1424. <partitioning>
  1425. <method>none</method>
  1426. <schema_name/>
  1427. </partitioning>
  1428. <connection>MOM</connection>
  1429. <sql>SELECT
  1430. T2.interface_id AS interface_pid,
  1431. T1.bill_type AS mom_bill_type,
  1432. T2.id AS mom_task_ins_id
  1433. FROM wms_task_in T1
  1434. LEFT JOIN wms_task_ins T2 ON T1.id =T2.task_in_id
  1435. WHERE 1=1
  1436. AND T1.task_type =1
  1437. AND T1.bill_type IN (2,3)
  1438. AND IFNULL(T2.interface_id,'')&lt;&gt;''</sql>
  1439. <limit>0</limit>
  1440. <lookup/>
  1441. <execute_each_row>N</execute_each_row>
  1442. <variables_active>N</variables_active>
  1443. <lazy_conversion_active>N</lazy_conversion_active>
  1444. <cached_row_meta_active>N</cached_row_meta_active>
  1445. <row-meta>
  1446. <value-meta>
  1447. <type>Integer</type>
  1448. <storagetype>normal</storagetype>
  1449. <name>interface_pid</name>
  1450. <length>9</length>
  1451. <precision>0</precision>
  1452. <origin>表输入-mom入库任务</origin>
  1453. <comments>interface_pid</comments>
  1454. <conversion_Mask>####0;-####0</conversion_Mask>
  1455. <decimal_symbol>.</decimal_symbol>
  1456. <grouping_symbol>,</grouping_symbol>
  1457. <currency_symbol/>
  1458. <trim_type>none</trim_type>
  1459. <case_insensitive>N</case_insensitive>
  1460. <collator_disabled>Y</collator_disabled>
  1461. <collator_strength>0</collator_strength>
  1462. <sort_descending>N</sort_descending>
  1463. <output_padding>N</output_padding>
  1464. <date_format_lenient>N</date_format_lenient>
  1465. <date_format_locale>zh_CN</date_format_locale>
  1466. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1467. <lenient_string_to_number>N</lenient_string_to_number>
  1468. </value-meta>
  1469. <value-meta>
  1470. <type>Integer</type>
  1471. <storagetype>normal</storagetype>
  1472. <name>mom_bill_type</name>
  1473. <length>9</length>
  1474. <precision>0</precision>
  1475. <origin>表输入-mom入库任务</origin>
  1476. <comments>mom_bill_type</comments>
  1477. <conversion_Mask>####0;-####0</conversion_Mask>
  1478. <decimal_symbol>.</decimal_symbol>
  1479. <grouping_symbol>,</grouping_symbol>
  1480. <currency_symbol/>
  1481. <trim_type>none</trim_type>
  1482. <case_insensitive>N</case_insensitive>
  1483. <collator_disabled>Y</collator_disabled>
  1484. <collator_strength>0</collator_strength>
  1485. <sort_descending>N</sort_descending>
  1486. <output_padding>N</output_padding>
  1487. <date_format_lenient>N</date_format_lenient>
  1488. <date_format_locale>zh_CN</date_format_locale>
  1489. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1490. <lenient_string_to_number>N</lenient_string_to_number>
  1491. </value-meta>
  1492. <value-meta>
  1493. <type>String</type>
  1494. <storagetype>normal</storagetype>
  1495. <name>mom_task_ins_id</name>
  1496. <length>20</length>
  1497. <precision>-1</precision>
  1498. <origin>表输入-mom入库任务</origin>
  1499. <comments>mom_task_ins_id</comments>
  1500. <conversion_Mask/>
  1501. <decimal_symbol>.</decimal_symbol>
  1502. <grouping_symbol>,</grouping_symbol>
  1503. <currency_symbol/>
  1504. <trim_type>none</trim_type>
  1505. <case_insensitive>N</case_insensitive>
  1506. <collator_disabled>Y</collator_disabled>
  1507. <collator_strength>0</collator_strength>
  1508. <sort_descending>N</sort_descending>
  1509. <output_padding>N</output_padding>
  1510. <date_format_lenient>N</date_format_lenient>
  1511. <date_format_locale>zh_CN</date_format_locale>
  1512. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1513. <lenient_string_to_number>N</lenient_string_to_number>
  1514. </value-meta>
  1515. </row-meta>
  1516. <attributes/>
  1517. <cluster_schema/>
  1518. <remotesteps>
  1519. <input>
  1520. </input>
  1521. <output>
  1522. </output>
  1523. </remotesteps>
  1524. <GUI>
  1525. <xloc>464</xloc>
  1526. <yloc>224</yloc>
  1527. <draw>Y</draw>
  1528. </GUI>
  1529. </step>
  1530. <step>
  1531. <name>表输入-mom物料档案</name>
  1532. <type>TableInput</type>
  1533. <description/>
  1534. <distribute>Y</distribute>
  1535. <custom_distribution/>
  1536. <copies>1</copies>
  1537. <partitioning>
  1538. <method>none</method>
  1539. <schema_name/>
  1540. </partitioning>
  1541. <connection>MOM</connection>
  1542. <sql>SELECT
  1543. material_code AS mom_material_code
  1544. ,excess_ratio_in AS mom_excess_ratio_in
  1545. ,warehouse_code_in AS mom_warehouse_code
  1546. ,location_code_in AS mom_location_code
  1547. FROM base_material</sql>
  1548. <limit>0</limit>
  1549. <lookup/>
  1550. <execute_each_row>N</execute_each_row>
  1551. <variables_active>N</variables_active>
  1552. <lazy_conversion_active>N</lazy_conversion_active>
  1553. <cached_row_meta_active>N</cached_row_meta_active>
  1554. <row-meta>
  1555. <value-meta>
  1556. <type>String</type>
  1557. <storagetype>normal</storagetype>
  1558. <name>material_code</name>
  1559. <length>50</length>
  1560. <precision>-1</precision>
  1561. <origin>表输入-mom物料档案</origin>
  1562. <comments>material_code</comments>
  1563. <conversion_Mask/>
  1564. <decimal_symbol>.</decimal_symbol>
  1565. <grouping_symbol>,</grouping_symbol>
  1566. <currency_symbol/>
  1567. <trim_type>none</trim_type>
  1568. <case_insensitive>N</case_insensitive>
  1569. <collator_disabled>Y</collator_disabled>
  1570. <collator_strength>0</collator_strength>
  1571. <sort_descending>N</sort_descending>
  1572. <output_padding>N</output_padding>
  1573. <date_format_lenient>N</date_format_lenient>
  1574. <date_format_locale>zh_CN</date_format_locale>
  1575. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1576. <lenient_string_to_number>N</lenient_string_to_number>
  1577. </value-meta>
  1578. <value-meta>
  1579. <type>BigNumber</type>
  1580. <storagetype>normal</storagetype>
  1581. <name>excess_ratio_in</name>
  1582. <length>24</length>
  1583. <precision>6</precision>
  1584. <origin>表输入-mom物料档案</origin>
  1585. <comments>excess_ratio_in</comments>
  1586. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1587. <decimal_symbol>.</decimal_symbol>
  1588. <grouping_symbol/>
  1589. <currency_symbol/>
  1590. <trim_type>none</trim_type>
  1591. <case_insensitive>N</case_insensitive>
  1592. <collator_disabled>Y</collator_disabled>
  1593. <collator_strength>0</collator_strength>
  1594. <sort_descending>N</sort_descending>
  1595. <output_padding>N</output_padding>
  1596. <date_format_lenient>N</date_format_lenient>
  1597. <date_format_locale>zh_CN</date_format_locale>
  1598. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1599. <lenient_string_to_number>N</lenient_string_to_number>
  1600. </value-meta>
  1601. <value-meta>
  1602. <type>String</type>
  1603. <storagetype>normal</storagetype>
  1604. <name>warehouse_code</name>
  1605. <length>50</length>
  1606. <precision>-1</precision>
  1607. <origin>表输入-mom物料档案</origin>
  1608. <comments>warehouse_code</comments>
  1609. <conversion_Mask/>
  1610. <decimal_symbol>.</decimal_symbol>
  1611. <grouping_symbol>,</grouping_symbol>
  1612. <currency_symbol/>
  1613. <trim_type>none</trim_type>
  1614. <case_insensitive>N</case_insensitive>
  1615. <collator_disabled>Y</collator_disabled>
  1616. <collator_strength>0</collator_strength>
  1617. <sort_descending>N</sort_descending>
  1618. <output_padding>N</output_padding>
  1619. <date_format_lenient>N</date_format_lenient>
  1620. <date_format_locale>zh_CN</date_format_locale>
  1621. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1622. <lenient_string_to_number>N</lenient_string_to_number>
  1623. </value-meta>
  1624. <value-meta>
  1625. <type>String</type>
  1626. <storagetype>normal</storagetype>
  1627. <name>location_code</name>
  1628. <length>50</length>
  1629. <precision>-1</precision>
  1630. <origin>表输入-mom物料档案</origin>
  1631. <comments>location_code</comments>
  1632. <conversion_Mask/>
  1633. <decimal_symbol>.</decimal_symbol>
  1634. <grouping_symbol>,</grouping_symbol>
  1635. <currency_symbol/>
  1636. <trim_type>none</trim_type>
  1637. <case_insensitive>N</case_insensitive>
  1638. <collator_disabled>Y</collator_disabled>
  1639. <collator_strength>0</collator_strength>
  1640. <sort_descending>N</sort_descending>
  1641. <output_padding>N</output_padding>
  1642. <date_format_lenient>N</date_format_lenient>
  1643. <date_format_locale>zh_CN</date_format_locale>
  1644. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1645. <lenient_string_to_number>N</lenient_string_to_number>
  1646. </value-meta>
  1647. </row-meta>
  1648. <attributes/>
  1649. <cluster_schema/>
  1650. <remotesteps>
  1651. <input>
  1652. </input>
  1653. <output>
  1654. </output>
  1655. </remotesteps>
  1656. <GUI>
  1657. <xloc>304</xloc>
  1658. <yloc>224</yloc>
  1659. <draw>Y</draw>
  1660. </GUI>
  1661. </step>
  1662. <step>
  1663. <name>流查询-主id</name>
  1664. <type>StreamLookup</type>
  1665. <description/>
  1666. <distribute>Y</distribute>
  1667. <custom_distribution/>
  1668. <copies>1</copies>
  1669. <partitioning>
  1670. <method>none</method>
  1671. <schema_name/>
  1672. </partitioning>
  1673. <from>表输入-主id</from>
  1674. <input_sorted>N</input_sorted>
  1675. <preserve_memory>N</preserve_memory>
  1676. <sorted_list>N</sorted_list>
  1677. <integer_pair>N</integer_pair>
  1678. <lookup>
  1679. <key>
  1680. <name>master_interface_id</name>
  1681. <field>master_interface_id</field>
  1682. </key>
  1683. <value>
  1684. <name>mom_task_in_id</name>
  1685. <rename>mom_task_in_id</rename>
  1686. <default/>
  1687. <type>String</type>
  1688. </value>
  1689. </lookup>
  1690. <attributes/>
  1691. <cluster_schema/>
  1692. <remotesteps>
  1693. <input>
  1694. </input>
  1695. <output>
  1696. </output>
  1697. </remotesteps>
  1698. <GUI>
  1699. <xloc>304</xloc>
  1700. <yloc>128</yloc>
  1701. <draw>Y</draw>
  1702. </GUI>
  1703. </step>
  1704. <step>
  1705. <name>表输入-主id</name>
  1706. <type>TableInput</type>
  1707. <description/>
  1708. <distribute>Y</distribute>
  1709. <custom_distribution/>
  1710. <copies>1</copies>
  1711. <partitioning>
  1712. <method>none</method>
  1713. <schema_name/>
  1714. </partitioning>
  1715. <connection>MOM</connection>
  1716. <sql>SELECT
  1717. 0${interface_id} as master_interface_id,
  1718. id as mom_task_in_id
  1719. FROM wms_task_in
  1720. WHERE interface_id =0${interface_id} AND bill_type =3
  1721. </sql>
  1722. <limit>0</limit>
  1723. <lookup/>
  1724. <execute_each_row>N</execute_each_row>
  1725. <variables_active>Y</variables_active>
  1726. <lazy_conversion_active>N</lazy_conversion_active>
  1727. <cached_row_meta_active>N</cached_row_meta_active>
  1728. <row-meta>
  1729. <value-meta>
  1730. <type>Integer</type>
  1731. <storagetype>normal</storagetype>
  1732. <name>master_interface_id</name>
  1733. <length>15</length>
  1734. <precision>0</precision>
  1735. <origin>表输入-主id</origin>
  1736. <comments>master_interface_id</comments>
  1737. <conversion_Mask>####0;-####0</conversion_Mask>
  1738. <decimal_symbol>.</decimal_symbol>
  1739. <grouping_symbol>,</grouping_symbol>
  1740. <currency_symbol/>
  1741. <trim_type>none</trim_type>
  1742. <case_insensitive>N</case_insensitive>
  1743. <collator_disabled>Y</collator_disabled>
  1744. <collator_strength>0</collator_strength>
  1745. <sort_descending>N</sort_descending>
  1746. <output_padding>N</output_padding>
  1747. <date_format_lenient>N</date_format_lenient>
  1748. <date_format_locale>zh_CN</date_format_locale>
  1749. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1750. <lenient_string_to_number>N</lenient_string_to_number>
  1751. </value-meta>
  1752. <value-meta>
  1753. <type>String</type>
  1754. <storagetype>normal</storagetype>
  1755. <name>mom_task_in_id</name>
  1756. <length>20</length>
  1757. <precision>-1</precision>
  1758. <origin>表输入-主id</origin>
  1759. <comments>mom_task_in_id</comments>
  1760. <conversion_Mask/>
  1761. <decimal_symbol>.</decimal_symbol>
  1762. <grouping_symbol>,</grouping_symbol>
  1763. <currency_symbol/>
  1764. <trim_type>none</trim_type>
  1765. <case_insensitive>N</case_insensitive>
  1766. <collator_disabled>Y</collator_disabled>
  1767. <collator_strength>0</collator_strength>
  1768. <sort_descending>N</sort_descending>
  1769. <output_padding>N</output_padding>
  1770. <date_format_lenient>N</date_format_lenient>
  1771. <date_format_locale>zh_CN</date_format_locale>
  1772. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1773. <lenient_string_to_number>N</lenient_string_to_number>
  1774. </value-meta>
  1775. </row-meta>
  1776. <attributes/>
  1777. <cluster_schema/>
  1778. <remotesteps>
  1779. <input>
  1780. </input>
  1781. <output>
  1782. </output>
  1783. </remotesteps>
  1784. <GUI>
  1785. <xloc>160</xloc>
  1786. <yloc>224</yloc>
  1787. <draw>Y</draw>
  1788. </GUI>
  1789. </step>
  1790. <step_error_handling>
  1791. </step_error_handling>
  1792. <slave-step-copy-partition-distribution>
  1793. </slave-step-copy-partition-distribution>
  1794. <slave_transformation>N</slave_transformation>
  1795. <attributes/>
  1796. </transformation>