采购退货单子表数据同步.ktr 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <transformation>
  3. <info>
  4. <name>采购退货单子表数据同步</name>
  5. <description/>
  6. <extended_description/>
  7. <trans_version/>
  8. <trans_type>Normal</trans_type>
  9. <trans_status>0</trans_status>
  10. <directory>/</directory>
  11. <parameters>
  12. <parameter>
  13. <name>interface_id</name>
  14. <default_value/>
  15. <description/>
  16. </parameter>
  17. </parameters>
  18. <log>
  19. <trans-log-table>
  20. <connection/>
  21. <schema/>
  22. <table/>
  23. <size_limit_lines/>
  24. <interval/>
  25. <timeout_days/>
  26. <field>
  27. <id>ID_BATCH</id>
  28. <enabled>Y</enabled>
  29. <name>ID_BATCH</name>
  30. </field>
  31. <field>
  32. <id>CHANNEL_ID</id>
  33. <enabled>Y</enabled>
  34. <name>CHANNEL_ID</name>
  35. </field>
  36. <field>
  37. <id>TRANSNAME</id>
  38. <enabled>Y</enabled>
  39. <name>TRANSNAME</name>
  40. </field>
  41. <field>
  42. <id>STATUS</id>
  43. <enabled>Y</enabled>
  44. <name>STATUS</name>
  45. </field>
  46. <field>
  47. <id>LINES_READ</id>
  48. <enabled>Y</enabled>
  49. <name>LINES_READ</name>
  50. <subject/>
  51. </field>
  52. <field>
  53. <id>LINES_WRITTEN</id>
  54. <enabled>Y</enabled>
  55. <name>LINES_WRITTEN</name>
  56. <subject/>
  57. </field>
  58. <field>
  59. <id>LINES_UPDATED</id>
  60. <enabled>Y</enabled>
  61. <name>LINES_UPDATED</name>
  62. <subject/>
  63. </field>
  64. <field>
  65. <id>LINES_INPUT</id>
  66. <enabled>Y</enabled>
  67. <name>LINES_INPUT</name>
  68. <subject/>
  69. </field>
  70. <field>
  71. <id>LINES_OUTPUT</id>
  72. <enabled>Y</enabled>
  73. <name>LINES_OUTPUT</name>
  74. <subject/>
  75. </field>
  76. <field>
  77. <id>LINES_REJECTED</id>
  78. <enabled>Y</enabled>
  79. <name>LINES_REJECTED</name>
  80. <subject/>
  81. </field>
  82. <field>
  83. <id>ERRORS</id>
  84. <enabled>Y</enabled>
  85. <name>ERRORS</name>
  86. </field>
  87. <field>
  88. <id>STARTDATE</id>
  89. <enabled>Y</enabled>
  90. <name>STARTDATE</name>
  91. </field>
  92. <field>
  93. <id>ENDDATE</id>
  94. <enabled>Y</enabled>
  95. <name>ENDDATE</name>
  96. </field>
  97. <field>
  98. <id>LOGDATE</id>
  99. <enabled>Y</enabled>
  100. <name>LOGDATE</name>
  101. </field>
  102. <field>
  103. <id>DEPDATE</id>
  104. <enabled>Y</enabled>
  105. <name>DEPDATE</name>
  106. </field>
  107. <field>
  108. <id>REPLAYDATE</id>
  109. <enabled>Y</enabled>
  110. <name>REPLAYDATE</name>
  111. </field>
  112. <field>
  113. <id>LOG_FIELD</id>
  114. <enabled>Y</enabled>
  115. <name>LOG_FIELD</name>
  116. </field>
  117. <field>
  118. <id>EXECUTING_SERVER</id>
  119. <enabled>N</enabled>
  120. <name>EXECUTING_SERVER</name>
  121. </field>
  122. <field>
  123. <id>EXECUTING_USER</id>
  124. <enabled>N</enabled>
  125. <name>EXECUTING_USER</name>
  126. </field>
  127. <field>
  128. <id>CLIENT</id>
  129. <enabled>N</enabled>
  130. <name>CLIENT</name>
  131. </field>
  132. </trans-log-table>
  133. <perf-log-table>
  134. <connection/>
  135. <schema/>
  136. <table/>
  137. <interval/>
  138. <timeout_days/>
  139. <field>
  140. <id>ID_BATCH</id>
  141. <enabled>Y</enabled>
  142. <name>ID_BATCH</name>
  143. </field>
  144. <field>
  145. <id>SEQ_NR</id>
  146. <enabled>Y</enabled>
  147. <name>SEQ_NR</name>
  148. </field>
  149. <field>
  150. <id>LOGDATE</id>
  151. <enabled>Y</enabled>
  152. <name>LOGDATE</name>
  153. </field>
  154. <field>
  155. <id>TRANSNAME</id>
  156. <enabled>Y</enabled>
  157. <name>TRANSNAME</name>
  158. </field>
  159. <field>
  160. <id>STEPNAME</id>
  161. <enabled>Y</enabled>
  162. <name>STEPNAME</name>
  163. </field>
  164. <field>
  165. <id>STEP_COPY</id>
  166. <enabled>Y</enabled>
  167. <name>STEP_COPY</name>
  168. </field>
  169. <field>
  170. <id>LINES_READ</id>
  171. <enabled>Y</enabled>
  172. <name>LINES_READ</name>
  173. </field>
  174. <field>
  175. <id>LINES_WRITTEN</id>
  176. <enabled>Y</enabled>
  177. <name>LINES_WRITTEN</name>
  178. </field>
  179. <field>
  180. <id>LINES_UPDATED</id>
  181. <enabled>Y</enabled>
  182. <name>LINES_UPDATED</name>
  183. </field>
  184. <field>
  185. <id>LINES_INPUT</id>
  186. <enabled>Y</enabled>
  187. <name>LINES_INPUT</name>
  188. </field>
  189. <field>
  190. <id>LINES_OUTPUT</id>
  191. <enabled>Y</enabled>
  192. <name>LINES_OUTPUT</name>
  193. </field>
  194. <field>
  195. <id>LINES_REJECTED</id>
  196. <enabled>Y</enabled>
  197. <name>LINES_REJECTED</name>
  198. </field>
  199. <field>
  200. <id>ERRORS</id>
  201. <enabled>Y</enabled>
  202. <name>ERRORS</name>
  203. </field>
  204. <field>
  205. <id>INPUT_BUFFER_ROWS</id>
  206. <enabled>Y</enabled>
  207. <name>INPUT_BUFFER_ROWS</name>
  208. </field>
  209. <field>
  210. <id>OUTPUT_BUFFER_ROWS</id>
  211. <enabled>Y</enabled>
  212. <name>OUTPUT_BUFFER_ROWS</name>
  213. </field>
  214. </perf-log-table>
  215. <channel-log-table>
  216. <connection/>
  217. <schema/>
  218. <table/>
  219. <timeout_days/>
  220. <field>
  221. <id>ID_BATCH</id>
  222. <enabled>Y</enabled>
  223. <name>ID_BATCH</name>
  224. </field>
  225. <field>
  226. <id>CHANNEL_ID</id>
  227. <enabled>Y</enabled>
  228. <name>CHANNEL_ID</name>
  229. </field>
  230. <field>
  231. <id>LOG_DATE</id>
  232. <enabled>Y</enabled>
  233. <name>LOG_DATE</name>
  234. </field>
  235. <field>
  236. <id>LOGGING_OBJECT_TYPE</id>
  237. <enabled>Y</enabled>
  238. <name>LOGGING_OBJECT_TYPE</name>
  239. </field>
  240. <field>
  241. <id>OBJECT_NAME</id>
  242. <enabled>Y</enabled>
  243. <name>OBJECT_NAME</name>
  244. </field>
  245. <field>
  246. <id>OBJECT_COPY</id>
  247. <enabled>Y</enabled>
  248. <name>OBJECT_COPY</name>
  249. </field>
  250. <field>
  251. <id>REPOSITORY_DIRECTORY</id>
  252. <enabled>Y</enabled>
  253. <name>REPOSITORY_DIRECTORY</name>
  254. </field>
  255. <field>
  256. <id>FILENAME</id>
  257. <enabled>Y</enabled>
  258. <name>FILENAME</name>
  259. </field>
  260. <field>
  261. <id>OBJECT_ID</id>
  262. <enabled>Y</enabled>
  263. <name>OBJECT_ID</name>
  264. </field>
  265. <field>
  266. <id>OBJECT_REVISION</id>
  267. <enabled>Y</enabled>
  268. <name>OBJECT_REVISION</name>
  269. </field>
  270. <field>
  271. <id>PARENT_CHANNEL_ID</id>
  272. <enabled>Y</enabled>
  273. <name>PARENT_CHANNEL_ID</name>
  274. </field>
  275. <field>
  276. <id>ROOT_CHANNEL_ID</id>
  277. <enabled>Y</enabled>
  278. <name>ROOT_CHANNEL_ID</name>
  279. </field>
  280. </channel-log-table>
  281. <step-log-table>
  282. <connection/>
  283. <schema/>
  284. <table/>
  285. <timeout_days/>
  286. <field>
  287. <id>ID_BATCH</id>
  288. <enabled>Y</enabled>
  289. <name>ID_BATCH</name>
  290. </field>
  291. <field>
  292. <id>CHANNEL_ID</id>
  293. <enabled>Y</enabled>
  294. <name>CHANNEL_ID</name>
  295. </field>
  296. <field>
  297. <id>LOG_DATE</id>
  298. <enabled>Y</enabled>
  299. <name>LOG_DATE</name>
  300. </field>
  301. <field>
  302. <id>TRANSNAME</id>
  303. <enabled>Y</enabled>
  304. <name>TRANSNAME</name>
  305. </field>
  306. <field>
  307. <id>STEPNAME</id>
  308. <enabled>Y</enabled>
  309. <name>STEPNAME</name>
  310. </field>
  311. <field>
  312. <id>STEP_COPY</id>
  313. <enabled>Y</enabled>
  314. <name>STEP_COPY</name>
  315. </field>
  316. <field>
  317. <id>LINES_READ</id>
  318. <enabled>Y</enabled>
  319. <name>LINES_READ</name>
  320. </field>
  321. <field>
  322. <id>LINES_WRITTEN</id>
  323. <enabled>Y</enabled>
  324. <name>LINES_WRITTEN</name>
  325. </field>
  326. <field>
  327. <id>LINES_UPDATED</id>
  328. <enabled>Y</enabled>
  329. <name>LINES_UPDATED</name>
  330. </field>
  331. <field>
  332. <id>LINES_INPUT</id>
  333. <enabled>Y</enabled>
  334. <name>LINES_INPUT</name>
  335. </field>
  336. <field>
  337. <id>LINES_OUTPUT</id>
  338. <enabled>Y</enabled>
  339. <name>LINES_OUTPUT</name>
  340. </field>
  341. <field>
  342. <id>LINES_REJECTED</id>
  343. <enabled>Y</enabled>
  344. <name>LINES_REJECTED</name>
  345. </field>
  346. <field>
  347. <id>ERRORS</id>
  348. <enabled>Y</enabled>
  349. <name>ERRORS</name>
  350. </field>
  351. <field>
  352. <id>LOG_FIELD</id>
  353. <enabled>N</enabled>
  354. <name>LOG_FIELD</name>
  355. </field>
  356. </step-log-table>
  357. <metrics-log-table>
  358. <connection/>
  359. <schema/>
  360. <table/>
  361. <timeout_days/>
  362. <field>
  363. <id>ID_BATCH</id>
  364. <enabled>Y</enabled>
  365. <name>ID_BATCH</name>
  366. </field>
  367. <field>
  368. <id>CHANNEL_ID</id>
  369. <enabled>Y</enabled>
  370. <name>CHANNEL_ID</name>
  371. </field>
  372. <field>
  373. <id>LOG_DATE</id>
  374. <enabled>Y</enabled>
  375. <name>LOG_DATE</name>
  376. </field>
  377. <field>
  378. <id>METRICS_DATE</id>
  379. <enabled>Y</enabled>
  380. <name>METRICS_DATE</name>
  381. </field>
  382. <field>
  383. <id>METRICS_CODE</id>
  384. <enabled>Y</enabled>
  385. <name>METRICS_CODE</name>
  386. </field>
  387. <field>
  388. <id>METRICS_DESCRIPTION</id>
  389. <enabled>Y</enabled>
  390. <name>METRICS_DESCRIPTION</name>
  391. </field>
  392. <field>
  393. <id>METRICS_SUBJECT</id>
  394. <enabled>Y</enabled>
  395. <name>METRICS_SUBJECT</name>
  396. </field>
  397. <field>
  398. <id>METRICS_TYPE</id>
  399. <enabled>Y</enabled>
  400. <name>METRICS_TYPE</name>
  401. </field>
  402. <field>
  403. <id>METRICS_VALUE</id>
  404. <enabled>Y</enabled>
  405. <name>METRICS_VALUE</name>
  406. </field>
  407. </metrics-log-table>
  408. </log>
  409. <maxdate>
  410. <connection/>
  411. <table/>
  412. <field/>
  413. <offset>0.0</offset>
  414. <maxdiff>0.0</maxdiff>
  415. </maxdate>
  416. <size_rowset>10000</size_rowset>
  417. <sleep_time_empty>50</sleep_time_empty>
  418. <sleep_time_full>50</sleep_time_full>
  419. <unique_connections>N</unique_connections>
  420. <feedback_shown>Y</feedback_shown>
  421. <feedback_size>50000</feedback_size>
  422. <using_thread_priorities>Y</using_thread_priorities>
  423. <shared_objects_file/>
  424. <capture_step_performance>N</capture_step_performance>
  425. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  426. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  427. <dependencies>
  428. </dependencies>
  429. <partitionschemas>
  430. </partitionschemas>
  431. <slaveservers>
  432. </slaveservers>
  433. <clusterschemas>
  434. </clusterschemas>
  435. <created_user>-</created_user>
  436. <created_date>2024/01/10 11:03:15.382</created_date>
  437. <modified_user>-</modified_user>
  438. <modified_date>2024/01/10 11:03:15.382</modified_date>
  439. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  440. <is_key_private>N</is_key_private>
  441. </info>
  442. <notepads>
  443. </notepads>
  444. <connection>
  445. <name>MOM</name>
  446. <server>${mysql_host}</server>
  447. <type>MYSQL</type>
  448. <access>Native</access>
  449. <database>${mysql_dbname}</database>
  450. <port>3306</port>
  451. <username>${mysql_username}</username>
  452. <password>${mysql_password}</password>
  453. <servername/>
  454. <data_tablespace/>
  455. <index_tablespace/>
  456. <attributes>
  457. <attribute>
  458. <code>EXTRA_OPTION_MYSQL.characterEncoding</code>
  459. <attribute>utf-8</attribute>
  460. </attribute>
  461. <attribute>
  462. <code>EXTRA_OPTION_MYSQL.defaultFetchSize</code>
  463. <attribute>5000</attribute>
  464. </attribute>
  465. <attribute>
  466. <code>EXTRA_OPTION_MYSQL.rewriteBatchedStatements</code>
  467. <attribute>true</attribute>
  468. </attribute>
  469. <attribute>
  470. <code>EXTRA_OPTION_MYSQL.useCompression</code>
  471. <attribute>true</attribute>
  472. </attribute>
  473. <attribute>
  474. <code>EXTRA_OPTION_MYSQL.useCursorFetch</code>
  475. <attribute>true</attribute>
  476. </attribute>
  477. <attribute>
  478. <code>EXTRA_OPTION_MYSQL.useServerPrepStmts</code>
  479. <attribute>true</attribute>
  480. </attribute>
  481. <attribute>
  482. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  483. <attribute>N</attribute>
  484. </attribute>
  485. <attribute>
  486. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  487. <attribute>N</attribute>
  488. </attribute>
  489. <attribute>
  490. <code>IS_CLUSTERED</code>
  491. <attribute>N</attribute>
  492. </attribute>
  493. <attribute>
  494. <code>PORT_NUMBER</code>
  495. <attribute>3306</attribute>
  496. </attribute>
  497. <attribute>
  498. <code>PRESERVE_RESERVED_WORD_CASE</code>
  499. <attribute>Y</attribute>
  500. </attribute>
  501. <attribute>
  502. <code>QUOTE_ALL_FIELDS</code>
  503. <attribute>N</attribute>
  504. </attribute>
  505. <attribute>
  506. <code>STREAM_RESULTS</code>
  507. <attribute>N</attribute>
  508. </attribute>
  509. <attribute>
  510. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  511. <attribute>Y</attribute>
  512. </attribute>
  513. <attribute>
  514. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  515. <attribute>Y</attribute>
  516. </attribute>
  517. <attribute>
  518. <code>USE_POOLING</code>
  519. <attribute>N</attribute>
  520. </attribute>
  521. </attributes>
  522. </connection>
  523. <connection>
  524. <name>U8</name>
  525. <server>${U8DB_HOST}</server>
  526. <type>GENERIC</type>
  527. <access>Native</access>
  528. <database>${U8DB_NAME}</database>
  529. <port>1433</port>
  530. <username>${sqlserver_username}</username>
  531. <password>${sqlserver_password}</password>
  532. <servername/>
  533. <data_tablespace/>
  534. <index_tablespace/>
  535. <attributes>
  536. <attribute>
  537. <code>CUSTOM_DRIVER_CLASS</code>
  538. <attribute>${sqlserver_driverclassname}</attribute>
  539. </attribute>
  540. <attribute>
  541. <code>CUSTOM_URL</code>
  542. <attribute>${sqlserver_url}</attribute>
  543. </attribute>
  544. <attribute>
  545. <code>DATABASE_DIALECT_ID</code>
  546. <attribute>Generic database</attribute>
  547. </attribute>
  548. <attribute>
  549. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  550. <attribute>N</attribute>
  551. </attribute>
  552. <attribute>
  553. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  554. <attribute>N</attribute>
  555. </attribute>
  556. <attribute>
  557. <code>IS_CLUSTERED</code>
  558. <attribute>N</attribute>
  559. </attribute>
  560. <attribute>
  561. <code>PORT_NUMBER</code>
  562. <attribute>1433</attribute>
  563. </attribute>
  564. <attribute>
  565. <code>PRESERVE_RESERVED_WORD_CASE</code>
  566. <attribute>Y</attribute>
  567. </attribute>
  568. <attribute>
  569. <code>QUOTE_ALL_FIELDS</code>
  570. <attribute>N</attribute>
  571. </attribute>
  572. <attribute>
  573. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  574. <attribute>Y</attribute>
  575. </attribute>
  576. <attribute>
  577. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  578. <attribute>Y</attribute>
  579. </attribute>
  580. <attribute>
  581. <code>USE_POOLING</code>
  582. <attribute>N</attribute>
  583. </attribute>
  584. </attributes>
  585. </connection>
  586. <order>
  587. <hop>
  588. <from>表输入</from>
  589. <to>Java 代码-id</to>
  590. <enabled>Y</enabled>
  591. </hop>
  592. <hop>
  593. <from>表输入-mom物料档案</from>
  594. <to>流查询-物料档案</to>
  595. <enabled>Y</enabled>
  596. </hop>
  597. <hop>
  598. <from>流查询-物料档案</from>
  599. <to>流查询-入库任务</to>
  600. <enabled>Y</enabled>
  601. </hop>
  602. <hop>
  603. <from>表输入-mom入库任务</from>
  604. <to>流查询-入库任务</to>
  605. <enabled>Y</enabled>
  606. </hop>
  607. <hop>
  608. <from>流查询-入库任务</from>
  609. <to>插入 / 更新</to>
  610. <enabled>Y</enabled>
  611. </hop>
  612. <hop>
  613. <from>插入 / 更新</from>
  614. <to>执行SQL脚本-更新任务入库退数量</to>
  615. <enabled>Y</enabled>
  616. </hop>
  617. <hop>
  618. <from>表输入-主id</from>
  619. <to>流查询-主id</to>
  620. <enabled>Y</enabled>
  621. </hop>
  622. <hop>
  623. <from>Java 代码-id</from>
  624. <to>流查询-主id</to>
  625. <enabled>Y</enabled>
  626. </hop>
  627. <hop>
  628. <from>流查询-主id</from>
  629. <to>流查询-物料档案</to>
  630. <enabled>Y</enabled>
  631. </hop>
  632. <hop>
  633. <from>获取变量</from>
  634. <to>表输入-主id</to>
  635. <enabled>Y</enabled>
  636. </hop>
  637. <hop>
  638. <from>获取变量</from>
  639. <to>表输入</to>
  640. <enabled>Y</enabled>
  641. </hop>
  642. <hop>
  643. <from>获取变量</from>
  644. <to>表输入-mom物料档案</to>
  645. <enabled>Y</enabled>
  646. </hop>
  647. <hop>
  648. <from>获取变量</from>
  649. <to>表输入-mom入库任务</to>
  650. <enabled>Y</enabled>
  651. </hop>
  652. </order>
  653. <step>
  654. <name>Java 代码-id</name>
  655. <type>UserDefinedJavaClass</type>
  656. <description/>
  657. <distribute>Y</distribute>
  658. <custom_distribution/>
  659. <copies>1</copies>
  660. <partitioning>
  661. <method>none</method>
  662. <schema_name/>
  663. </partitioning>
  664. <definitions>
  665. <definition>
  666. <class_type>TRANSFORM_CLASS</class_type>
  667. <class_name>Processor</class_name>
  668. <class_source>public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException {
  669. Object[] r = getRow();
  670. if (r == null) {
  671. setOutputDone();
  672. return false;
  673. }
  674. r = createOutputRow(r, data.outputRowMeta.size());
  675. if (snowflakeIdWorker == null) {
  676. snowflakeIdWorker = new SnowflakeIdWorker(1, 1); // 设置你的workerId和datacenterId
  677. }
  678. String id = String.valueOf(snowflakeIdWorker.nextId());
  679. get(Fields.Out, "id").setValue(r, id);
  680. putRow(data.outputRowMeta, r);
  681. return true;
  682. }
  683. // 定义全局变量(放在类顶部)
  684. private static SnowflakeIdWorker snowflakeIdWorker = null;
  685. // 内部类:雪花算法实现
  686. public static class SnowflakeIdWorker {
  687. private final long twepoch = 1288834974657L;
  688. private final long workerIdBits = 5L;
  689. private final long datacenterIdBits = 5L;
  690. private final long maxWorkerId = -1L ^ (-1L &lt;&lt; workerIdBits);
  691. private final long maxDatacenterId = -1L ^ (-1L &lt;&lt; datacenterIdBits);
  692. private final long sequenceBits = 12L;
  693. private final long workerIdShift = sequenceBits;
  694. private final long datacenterIdShift = sequenceBits + workerIdBits;
  695. private final long timestampLeftShift = sequenceBits + workerIdBits + datacenterIdBits;
  696. private final long sequenceMask = -1L ^ (-1L &lt;&lt; sequenceBits);
  697. private long workerId;
  698. private long datacenterId;
  699. private long sequence = 0L;
  700. private long lastTimestamp = -1L;
  701. public SnowflakeIdWorker(long workerId, long datacenterId) {
  702. if (workerId > maxWorkerId || workerId &lt; 0) {
  703. throw new IllegalArgumentException(String.format("worker Id can't be greater than %d or less than 0", maxWorkerId));
  704. }
  705. if (datacenterId > maxDatacenterId || datacenterId &lt; 0) {
  706. throw new IllegalArgumentException(String.format("datacenter Id can't be greater than %d or less than 0", maxDatacenterId));
  707. }
  708. this.workerId = workerId;
  709. this.datacenterId = datacenterId;
  710. }
  711. public synchronized long nextId() {
  712. long timestamp = timeGen();
  713. if (timestamp &lt; lastTimestamp) {
  714. throw new RuntimeException("Clock moved backwards. Refusing to generate id for " + (lastTimestamp - timestamp) + " milliseconds");
  715. }
  716. if (lastTimestamp == timestamp) {
  717. sequence = (sequence + 1) &amp; sequenceMask;
  718. if (sequence == 0) {
  719. timestamp = tilNextMillis(lastTimestamp);
  720. }
  721. } else {
  722. sequence = 0L;
  723. }
  724. lastTimestamp = timestamp;
  725. return ((timestamp - twepoch) &lt;&lt; timestampLeftShift)
  726. | (datacenterId &lt;&lt; datacenterIdShift)
  727. | (workerId &lt;&lt; workerIdShift)
  728. | sequence;
  729. }
  730. private long tilNextMillis(long lastTimestamp) {
  731. long timestamp = timeGen();
  732. while (timestamp &lt;= lastTimestamp) {
  733. timestamp = timeGen();
  734. }
  735. return timestamp;
  736. }
  737. private long timeGen() {
  738. return System.currentTimeMillis();
  739. }
  740. }</class_source>
  741. </definition>
  742. </definitions>
  743. <fields>
  744. <field>
  745. <field_name>id</field_name>
  746. <field_type>String</field_type>
  747. <field_length>-1</field_length>
  748. <field_precision>-1</field_precision>
  749. </field>
  750. </fields>
  751. <clear_result_fields>N</clear_result_fields>
  752. <info_steps/>
  753. <target_steps/>
  754. <usage_parameters/>
  755. <attributes/>
  756. <cluster_schema/>
  757. <remotesteps>
  758. <input>
  759. </input>
  760. <output>
  761. </output>
  762. </remotesteps>
  763. <GUI>
  764. <xloc>176</xloc>
  765. <yloc>128</yloc>
  766. <draw>Y</draw>
  767. </GUI>
  768. </step>
  769. <step>
  770. <name>执行SQL脚本-更新任务入库退数量</name>
  771. <type>ExecSQL</type>
  772. <description/>
  773. <distribute>Y</distribute>
  774. <custom_distribution/>
  775. <copies>1</copies>
  776. <partitioning>
  777. <method>none</method>
  778. <schema_name/>
  779. </partitioning>
  780. <connection>MOM</connection>
  781. <execute_each_row>Y</execute_each_row>
  782. <single_statement>N</single_statement>
  783. <replace_variables>Y</replace_variables>
  784. <quoteString>N</quoteString>
  785. <sql>UPDATE wms_task_ins SET
  786. back_task_qty = IFNULL(back_task_qty,0) + ?
  787. WHERE id = '?';</sql>
  788. <set_params>N</set_params>
  789. <insert_field/>
  790. <update_field/>
  791. <delete_field/>
  792. <read_field/>
  793. <arguments>
  794. <argument>
  795. <name>task_qty</name>
  796. </argument>
  797. <argument>
  798. <name>mom_task_ins_id</name>
  799. </argument>
  800. </arguments>
  801. <attributes/>
  802. <cluster_schema/>
  803. <remotesteps>
  804. <input>
  805. </input>
  806. <output>
  807. </output>
  808. </remotesteps>
  809. <GUI>
  810. <xloc>880</xloc>
  811. <yloc>128</yloc>
  812. <draw>Y</draw>
  813. </GUI>
  814. </step>
  815. <step>
  816. <name>插入 / 更新</name>
  817. <type>InsertUpdate</type>
  818. <description/>
  819. <distribute>Y</distribute>
  820. <custom_distribution/>
  821. <copies>1</copies>
  822. <partitioning>
  823. <method>none</method>
  824. <schema_name/>
  825. </partitioning>
  826. <connection>MOM</connection>
  827. <commit>1000</commit>
  828. <update_bypassed>Y</update_bypassed>
  829. <lookup>
  830. <schema/>
  831. <table>wms_task_ins</table>
  832. <key>
  833. <name>interface_id</name>
  834. <field>interface_id</field>
  835. <condition>=</condition>
  836. <name2/>
  837. </key>
  838. <value>
  839. <name>interface_id</name>
  840. <rename>interface_id</rename>
  841. <update>N</update>
  842. </value>
  843. <value>
  844. <name>interface_row</name>
  845. <rename>interface_row</rename>
  846. <update>N</update>
  847. </value>
  848. <value>
  849. <name>id</name>
  850. <rename>id</rename>
  851. <update>N</update>
  852. </value>
  853. <value>
  854. <name>task_in_id</name>
  855. <rename>mom_task_in_id</rename>
  856. <update>N</update>
  857. </value>
  858. <value>
  859. <name>`row_number`</name>
  860. <rename>row_number</rename>
  861. <update>N</update>
  862. </value>
  863. <value>
  864. <name>material_code</name>
  865. <rename>material_code</rename>
  866. <update>N</update>
  867. </value>
  868. <value>
  869. <name>task_qty</name>
  870. <rename>task_qty</rename>
  871. <update>N</update>
  872. </value>
  873. <value>
  874. <name>unit_code</name>
  875. <rename>unit_code</rename>
  876. <update>N</update>
  877. </value>
  878. <value>
  879. <name>excess_ratio_in</name>
  880. <rename>mom_excess_ratio_in</rename>
  881. <update>N</update>
  882. </value>
  883. <value>
  884. <name>warehouse_code</name>
  885. <rename>mom_warehouse_code</rename>
  886. <update>N</update>
  887. </value>
  888. <value>
  889. <name>location_code</name>
  890. <rename>mom_location_code</rename>
  891. <update>N</update>
  892. </value>
  893. <value>
  894. <name>batch1</name>
  895. <rename>batch1</rename>
  896. <update>N</update>
  897. </value>
  898. <value>
  899. <name>batch2</name>
  900. <rename>batch2</rename>
  901. <update>N</update>
  902. </value>
  903. <value>
  904. <name>task_ins_id</name>
  905. <rename>mom_task_ins_id</rename>
  906. <update>N</update>
  907. </value>
  908. <value>
  909. <name>status</name>
  910. <rename>status</rename>
  911. <update>N</update>
  912. </value>
  913. <value>
  914. <name>is_close</name>
  915. <rename>is_close</rename>
  916. <update>N</update>
  917. </value>
  918. <value>
  919. <name>create_id</name>
  920. <rename>sync_id</rename>
  921. <update>N</update>
  922. </value>
  923. <value>
  924. <name>create_by</name>
  925. <rename>sync_name</rename>
  926. <update>N</update>
  927. </value>
  928. <value>
  929. <name>create_time</name>
  930. <rename>sync_time</rename>
  931. <update>N</update>
  932. </value>
  933. <value>
  934. <name>audit_by</name>
  935. <rename>sync_name</rename>
  936. <update>N</update>
  937. </value>
  938. <value>
  939. <name>audit_time</name>
  940. <rename>sync_time</rename>
  941. <update>N</update>
  942. </value>
  943. </lookup>
  944. <attributes/>
  945. <cluster_schema/>
  946. <remotesteps>
  947. <input>
  948. </input>
  949. <output>
  950. </output>
  951. </remotesteps>
  952. <GUI>
  953. <xloc>720</xloc>
  954. <yloc>128</yloc>
  955. <draw>Y</draw>
  956. </GUI>
  957. </step>
  958. <step>
  959. <name>流查询-主id</name>
  960. <type>StreamLookup</type>
  961. <description/>
  962. <distribute>Y</distribute>
  963. <custom_distribution/>
  964. <copies>1</copies>
  965. <partitioning>
  966. <method>none</method>
  967. <schema_name/>
  968. </partitioning>
  969. <from>表输入-主id</from>
  970. <input_sorted>N</input_sorted>
  971. <preserve_memory>N</preserve_memory>
  972. <sorted_list>N</sorted_list>
  973. <integer_pair>N</integer_pair>
  974. <lookup>
  975. <key>
  976. <name>master_interface_id</name>
  977. <field>master_interface_id</field>
  978. </key>
  979. <value>
  980. <name>mom_task_in_id</name>
  981. <rename>mom_task_in_id</rename>
  982. <default/>
  983. <type>String</type>
  984. </value>
  985. </lookup>
  986. <attributes/>
  987. <cluster_schema/>
  988. <remotesteps>
  989. <input>
  990. </input>
  991. <output>
  992. </output>
  993. </remotesteps>
  994. <GUI>
  995. <xloc>336</xloc>
  996. <yloc>128</yloc>
  997. <draw>Y</draw>
  998. </GUI>
  999. </step>
  1000. <step>
  1001. <name>流查询-入库任务</name>
  1002. <type>StreamLookup</type>
  1003. <description/>
  1004. <distribute>Y</distribute>
  1005. <custom_distribution/>
  1006. <copies>1</copies>
  1007. <partitioning>
  1008. <method>none</method>
  1009. <schema_name/>
  1010. </partitioning>
  1011. <from>表输入-mom入库任务</from>
  1012. <input_sorted>N</input_sorted>
  1013. <preserve_memory>N</preserve_memory>
  1014. <sorted_list>N</sorted_list>
  1015. <integer_pair>N</integer_pair>
  1016. <lookup>
  1017. <key>
  1018. <name>interface_pid</name>
  1019. <field>interface_pid</field>
  1020. </key>
  1021. <key>
  1022. <name>mom_bill_type</name>
  1023. <field>mom_bill_type</field>
  1024. </key>
  1025. <value>
  1026. <name>mom_task_ins_id</name>
  1027. <rename>mom_task_ins_id</rename>
  1028. <default/>
  1029. <type>String</type>
  1030. </value>
  1031. </lookup>
  1032. <attributes/>
  1033. <cluster_schema/>
  1034. <remotesteps>
  1035. <input>
  1036. </input>
  1037. <output>
  1038. </output>
  1039. </remotesteps>
  1040. <GUI>
  1041. <xloc>608</xloc>
  1042. <yloc>128</yloc>
  1043. <draw>Y</draw>
  1044. </GUI>
  1045. </step>
  1046. <step>
  1047. <name>流查询-物料档案</name>
  1048. <type>StreamLookup</type>
  1049. <description/>
  1050. <distribute>Y</distribute>
  1051. <custom_distribution/>
  1052. <copies>1</copies>
  1053. <partitioning>
  1054. <method>none</method>
  1055. <schema_name/>
  1056. </partitioning>
  1057. <from>表输入-mom物料档案</from>
  1058. <input_sorted>N</input_sorted>
  1059. <preserve_memory>N</preserve_memory>
  1060. <sorted_list>N</sorted_list>
  1061. <integer_pair>N</integer_pair>
  1062. <lookup>
  1063. <key>
  1064. <name>material_code</name>
  1065. <field>mom_material_code</field>
  1066. </key>
  1067. <value>
  1068. <name>mom_warehouse_code</name>
  1069. <rename>mom_warehouse_code</rename>
  1070. <default/>
  1071. <type>String</type>
  1072. </value>
  1073. <value>
  1074. <name>mom_location_code</name>
  1075. <rename>mom_location_code</rename>
  1076. <default/>
  1077. <type>String</type>
  1078. </value>
  1079. <value>
  1080. <name>mom_excess_ratio_in</name>
  1081. <rename>mom_excess_ratio_in</rename>
  1082. <default/>
  1083. <type>BigNumber</type>
  1084. </value>
  1085. </lookup>
  1086. <attributes/>
  1087. <cluster_schema/>
  1088. <remotesteps>
  1089. <input>
  1090. </input>
  1091. <output>
  1092. </output>
  1093. </remotesteps>
  1094. <GUI>
  1095. <xloc>464</xloc>
  1096. <yloc>128</yloc>
  1097. <draw>Y</draw>
  1098. </GUI>
  1099. </step>
  1100. <step>
  1101. <name>表输入</name>
  1102. <type>TableInput</type>
  1103. <description/>
  1104. <distribute>Y</distribute>
  1105. <custom_distribution/>
  1106. <copies>1</copies>
  1107. <partitioning>
  1108. <method>none</method>
  1109. <schema_name/>
  1110. </partitioning>
  1111. <connection>U8</connection>
  1112. <sql>DECLARE @USER_NAME VARCHAR(50),@USER_ID INT
  1113. SET @USER_NAME = CASE '${USER_NAME}' WHEN '' THEN '管理员(kettle)' ELSE '${USER_NAME}' END
  1114. SET @USER_ID = CASE 0${USER_ID} WHEN 0 THEN 1 ELSE 0${USER_ID} END
  1115. SELECT
  1116. 0${interface_id} AS master_interface_id
  1117. ,T2.Autoid AS interface_id
  1118. ,T2.iVouchRowNo AS interface_row
  1119. ,T2.iVouchRowNo AS row_number
  1120. --,ROW_NUMBER()OVER(ORDER BY T2.iVouchRowNo) AS row_number
  1121. ,T2.cInvCode AS material_code
  1122. ,ABS(T2.iQuantity) AS task_qty
  1123. ,T6.cComUnitCode AS unit_code
  1124. ,T2.cBatch AS batch1
  1125. ,T2.cBatchProperty6 AS batch2
  1126. ,0 AS status
  1127. ,1 AS is_close
  1128. ,@USER_NAME AS sync_name
  1129. ,@USER_ID AS sync_id
  1130. ,GETDATE() AS sync_time
  1131. --1生产订单、2委外订单、3委外到货单、4采购订单、5采购到货单、6销售订单、7销售发货单
  1132. ,CASE WHEN ISNULL(T2.icorid,0) &lt;&gt;0 THEN 5
  1133. WHEN ISNULL(T2.icorid,0) =0 AND ISNULL(T2.iposid,0)&lt;&gt;0 THEN 4 ELSE 0 END AS mom_bill_type
  1134. ,CASE WHEN ISNULL(T2.icorid,0) &lt;&gt;0 THEN T2.icorid
  1135. WHEN ISNULL(T2.icorid,0) =0 AND ISNULL(T2.iposid,0)&lt;&gt;0 THEN T2.iposid ELSE 0 END AS interface_pid
  1136. FROM PU_ArrivalVouch T1
  1137. LEFT JOIN PU_ArrivalVouchs T2 ON T1.ID =T2.ID
  1138. LEFT JOIN Inventory T6 ON T2.cInvCode =T6.cInvCode
  1139. WHERE 1=1
  1140. AND T1.ID =0${interface_id}
  1141. </sql>
  1142. <limit>0</limit>
  1143. <lookup/>
  1144. <execute_each_row>N</execute_each_row>
  1145. <variables_active>Y</variables_active>
  1146. <lazy_conversion_active>N</lazy_conversion_active>
  1147. <cached_row_meta_active>N</cached_row_meta_active>
  1148. <row-meta>
  1149. <value-meta>
  1150. <type>Integer</type>
  1151. <storagetype>normal</storagetype>
  1152. <name>master_interface_id</name>
  1153. <length>9</length>
  1154. <precision>0</precision>
  1155. <origin>表输入</origin>
  1156. <comments>master_interface_id</comments>
  1157. <conversion_Mask>####0;-####0</conversion_Mask>
  1158. <decimal_symbol>.</decimal_symbol>
  1159. <grouping_symbol>,</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>Integer</type>
  1174. <storagetype>normal</storagetype>
  1175. <name>interface_id</name>
  1176. <length>9</length>
  1177. <precision>0</precision>
  1178. <origin>表输入</origin>
  1179. <comments>interface_id</comments>
  1180. <conversion_Mask>####0;-####0</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>Integer</type>
  1197. <storagetype>normal</storagetype>
  1198. <name>interface_row</name>
  1199. <length>9</length>
  1200. <precision>0</precision>
  1201. <origin>表输入</origin>
  1202. <comments>interface_row</comments>
  1203. <conversion_Mask>####0;-####0</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>Integer</type>
  1220. <storagetype>normal</storagetype>
  1221. <name>row_number</name>
  1222. <length>9</length>
  1223. <precision>0</precision>
  1224. <origin>表输入</origin>
  1225. <comments>row_number</comments>
  1226. <conversion_Mask>####0;-####0</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>String</type>
  1243. <storagetype>normal</storagetype>
  1244. <name>material_code</name>
  1245. <length>60</length>
  1246. <precision>-1</precision>
  1247. <origin>表输入</origin>
  1248. <comments>material_code</comments>
  1249. <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>BigNumber</type>
  1266. <storagetype>normal</storagetype>
  1267. <name>task_qty</name>
  1268. <length>20</length>
  1269. <precision>6</precision>
  1270. <origin>表输入</origin>
  1271. <comments>task_qty</comments>
  1272. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1273. <decimal_symbol>.</decimal_symbol>
  1274. <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>unit_code</name>
  1291. <length>35</length>
  1292. <precision>-1</precision>
  1293. <origin>表输入</origin>
  1294. <comments>unit_code</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>String</type>
  1312. <storagetype>normal</storagetype>
  1313. <name>batch1</name>
  1314. <length>60</length>
  1315. <precision>-1</precision>
  1316. <origin>表输入</origin>
  1317. <comments>batch1</comments>
  1318. <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>String</type>
  1335. <storagetype>normal</storagetype>
  1336. <name>batch2</name>
  1337. <length>120</length>
  1338. <precision>-1</precision>
  1339. <origin>表输入</origin>
  1340. <comments>batch2</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>status</name>
  1360. <length>9</length>
  1361. <precision>0</precision>
  1362. <origin>表输入</origin>
  1363. <comments>status</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>is_close</name>
  1383. <length>9</length>
  1384. <precision>0</precision>
  1385. <origin>表输入</origin>
  1386. <comments>is_close</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. <value-meta>
  1403. <type>String</type>
  1404. <storagetype>normal</storagetype>
  1405. <name>sync_name</name>
  1406. <length>50</length>
  1407. <precision>-1</precision>
  1408. <origin>表输入</origin>
  1409. <comments>sync_name</comments>
  1410. <conversion_Mask/>
  1411. <decimal_symbol>.</decimal_symbol>
  1412. <grouping_symbol>,</grouping_symbol>
  1413. <currency_symbol/>
  1414. <trim_type>none</trim_type>
  1415. <case_insensitive>N</case_insensitive>
  1416. <collator_disabled>Y</collator_disabled>
  1417. <collator_strength>0</collator_strength>
  1418. <sort_descending>N</sort_descending>
  1419. <output_padding>N</output_padding>
  1420. <date_format_lenient>N</date_format_lenient>
  1421. <date_format_locale>zh_CN</date_format_locale>
  1422. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1423. <lenient_string_to_number>N</lenient_string_to_number>
  1424. </value-meta>
  1425. <value-meta>
  1426. <type>Integer</type>
  1427. <storagetype>normal</storagetype>
  1428. <name>sync_id</name>
  1429. <length>9</length>
  1430. <precision>0</precision>
  1431. <origin>表输入</origin>
  1432. <comments>sync_id</comments>
  1433. <conversion_Mask>####0;-####0</conversion_Mask>
  1434. <decimal_symbol>.</decimal_symbol>
  1435. <grouping_symbol>,</grouping_symbol>
  1436. <currency_symbol/>
  1437. <trim_type>none</trim_type>
  1438. <case_insensitive>N</case_insensitive>
  1439. <collator_disabled>Y</collator_disabled>
  1440. <collator_strength>0</collator_strength>
  1441. <sort_descending>N</sort_descending>
  1442. <output_padding>N</output_padding>
  1443. <date_format_lenient>N</date_format_lenient>
  1444. <date_format_locale>zh_CN</date_format_locale>
  1445. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1446. <lenient_string_to_number>N</lenient_string_to_number>
  1447. </value-meta>
  1448. <value-meta>
  1449. <type>Timestamp</type>
  1450. <storagetype>normal</storagetype>
  1451. <name>sync_time</name>
  1452. <length>3</length>
  1453. <precision>-1</precision>
  1454. <origin>表输入</origin>
  1455. <comments>sync_time</comments>
  1456. <conversion_Mask/>
  1457. <decimal_symbol>.</decimal_symbol>
  1458. <grouping_symbol>,</grouping_symbol>
  1459. <currency_symbol/>
  1460. <trim_type>none</trim_type>
  1461. <case_insensitive>N</case_insensitive>
  1462. <collator_disabled>Y</collator_disabled>
  1463. <collator_strength>0</collator_strength>
  1464. <sort_descending>N</sort_descending>
  1465. <output_padding>N</output_padding>
  1466. <date_format_lenient>N</date_format_lenient>
  1467. <date_format_locale>zh_CN</date_format_locale>
  1468. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1469. <lenient_string_to_number>N</lenient_string_to_number>
  1470. </value-meta>
  1471. <value-meta>
  1472. <type>Integer</type>
  1473. <storagetype>normal</storagetype>
  1474. <name>mom_bill_type</name>
  1475. <length>9</length>
  1476. <precision>0</precision>
  1477. <origin>表输入</origin>
  1478. <comments>mom_bill_type</comments>
  1479. <conversion_Mask>####0;-####0</conversion_Mask>
  1480. <decimal_symbol>.</decimal_symbol>
  1481. <grouping_symbol>,</grouping_symbol>
  1482. <currency_symbol/>
  1483. <trim_type>none</trim_type>
  1484. <case_insensitive>N</case_insensitive>
  1485. <collator_disabled>Y</collator_disabled>
  1486. <collator_strength>0</collator_strength>
  1487. <sort_descending>N</sort_descending>
  1488. <output_padding>N</output_padding>
  1489. <date_format_lenient>N</date_format_lenient>
  1490. <date_format_locale>zh_CN</date_format_locale>
  1491. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1492. <lenient_string_to_number>N</lenient_string_to_number>
  1493. </value-meta>
  1494. <value-meta>
  1495. <type>Integer</type>
  1496. <storagetype>normal</storagetype>
  1497. <name>interface_pid</name>
  1498. <length>9</length>
  1499. <precision>0</precision>
  1500. <origin>表输入</origin>
  1501. <comments>interface_pid</comments>
  1502. <conversion_Mask>####0;-####0</conversion_Mask>
  1503. <decimal_symbol>.</decimal_symbol>
  1504. <grouping_symbol>,</grouping_symbol>
  1505. <currency_symbol/>
  1506. <trim_type>none</trim_type>
  1507. <case_insensitive>N</case_insensitive>
  1508. <collator_disabled>Y</collator_disabled>
  1509. <collator_strength>0</collator_strength>
  1510. <sort_descending>N</sort_descending>
  1511. <output_padding>N</output_padding>
  1512. <date_format_lenient>N</date_format_lenient>
  1513. <date_format_locale>zh_CN</date_format_locale>
  1514. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1515. <lenient_string_to_number>N</lenient_string_to_number>
  1516. </value-meta>
  1517. </row-meta>
  1518. <attributes/>
  1519. <cluster_schema/>
  1520. <remotesteps>
  1521. <input>
  1522. </input>
  1523. <output>
  1524. </output>
  1525. </remotesteps>
  1526. <GUI>
  1527. <xloc>48</xloc>
  1528. <yloc>128</yloc>
  1529. <draw>Y</draw>
  1530. </GUI>
  1531. </step>
  1532. <step>
  1533. <name>表输入-mom入库任务</name>
  1534. <type>TableInput</type>
  1535. <description/>
  1536. <distribute>Y</distribute>
  1537. <custom_distribution/>
  1538. <copies>1</copies>
  1539. <partitioning>
  1540. <method>none</method>
  1541. <schema_name/>
  1542. </partitioning>
  1543. <connection>MOM</connection>
  1544. <sql>SELECT
  1545. T2.interface_id AS interface_pid,
  1546. T1.bill_type_code AS mom_bill_type,
  1547. T2.id AS mom_task_ins_id
  1548. FROM wms_task_in T1
  1549. LEFT JOIN wms_task_ins T2 ON T1.id =T2.task_in_id
  1550. WHERE 1=1
  1551. AND T1.task_type =1
  1552. AND T1.bill_type_code IN ('4','5')
  1553. AND IFNULL(T2.interface_id,'')&lt;&gt;''</sql>
  1554. <limit>0</limit>
  1555. <lookup/>
  1556. <execute_each_row>N</execute_each_row>
  1557. <variables_active>N</variables_active>
  1558. <lazy_conversion_active>N</lazy_conversion_active>
  1559. <cached_row_meta_active>N</cached_row_meta_active>
  1560. <row-meta>
  1561. <value-meta>
  1562. <type>Integer</type>
  1563. <storagetype>normal</storagetype>
  1564. <name>interface_pid</name>
  1565. <length>9</length>
  1566. <precision>0</precision>
  1567. <origin>表输入-mom入库任务</origin>
  1568. <comments>interface_pid</comments>
  1569. <conversion_Mask>####0;-####0</conversion_Mask>
  1570. <decimal_symbol>.</decimal_symbol>
  1571. <grouping_symbol>,</grouping_symbol>
  1572. <currency_symbol/>
  1573. <trim_type>none</trim_type>
  1574. <case_insensitive>N</case_insensitive>
  1575. <collator_disabled>Y</collator_disabled>
  1576. <collator_strength>0</collator_strength>
  1577. <sort_descending>N</sort_descending>
  1578. <output_padding>N</output_padding>
  1579. <date_format_lenient>N</date_format_lenient>
  1580. <date_format_locale>zh_CN</date_format_locale>
  1581. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1582. <lenient_string_to_number>N</lenient_string_to_number>
  1583. </value-meta>
  1584. <value-meta>
  1585. <type>String</type>
  1586. <storagetype>normal</storagetype>
  1587. <name>mom_bill_type</name>
  1588. <length>50</length>
  1589. <precision>-1</precision>
  1590. <origin>表输入-mom入库任务</origin>
  1591. <comments>mom_bill_type</comments>
  1592. <conversion_Mask/>
  1593. <decimal_symbol>.</decimal_symbol>
  1594. <grouping_symbol>,</grouping_symbol>
  1595. <currency_symbol/>
  1596. <trim_type>none</trim_type>
  1597. <case_insensitive>N</case_insensitive>
  1598. <collator_disabled>Y</collator_disabled>
  1599. <collator_strength>0</collator_strength>
  1600. <sort_descending>N</sort_descending>
  1601. <output_padding>N</output_padding>
  1602. <date_format_lenient>N</date_format_lenient>
  1603. <date_format_locale>zh_CN</date_format_locale>
  1604. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1605. <lenient_string_to_number>N</lenient_string_to_number>
  1606. </value-meta>
  1607. <value-meta>
  1608. <type>String</type>
  1609. <storagetype>normal</storagetype>
  1610. <name>mom_task_ins_id</name>
  1611. <length>20</length>
  1612. <precision>-1</precision>
  1613. <origin>表输入-mom入库任务</origin>
  1614. <comments>mom_task_ins_id</comments>
  1615. <conversion_Mask/>
  1616. <decimal_symbol>.</decimal_symbol>
  1617. <grouping_symbol>,</grouping_symbol>
  1618. <currency_symbol/>
  1619. <trim_type>none</trim_type>
  1620. <case_insensitive>N</case_insensitive>
  1621. <collator_disabled>Y</collator_disabled>
  1622. <collator_strength>0</collator_strength>
  1623. <sort_descending>N</sort_descending>
  1624. <output_padding>N</output_padding>
  1625. <date_format_lenient>N</date_format_lenient>
  1626. <date_format_locale>zh_CN</date_format_locale>
  1627. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1628. <lenient_string_to_number>N</lenient_string_to_number>
  1629. </value-meta>
  1630. </row-meta>
  1631. <attributes/>
  1632. <cluster_schema/>
  1633. <remotesteps>
  1634. <input>
  1635. </input>
  1636. <output>
  1637. </output>
  1638. </remotesteps>
  1639. <GUI>
  1640. <xloc>496</xloc>
  1641. <yloc>224</yloc>
  1642. <draw>Y</draw>
  1643. </GUI>
  1644. </step>
  1645. <step>
  1646. <name>表输入-mom物料档案</name>
  1647. <type>TableInput</type>
  1648. <description/>
  1649. <distribute>Y</distribute>
  1650. <custom_distribution/>
  1651. <copies>1</copies>
  1652. <partitioning>
  1653. <method>none</method>
  1654. <schema_name/>
  1655. </partitioning>
  1656. <connection>MOM</connection>
  1657. <sql>SELECT
  1658. material_code AS mom_material_code
  1659. ,excess_ratio_in AS mom_excess_ratio_in
  1660. ,warehouse_code_in AS mom_warehouse_code
  1661. ,location_code_in AS mom_location_code
  1662. FROM base_material</sql>
  1663. <limit>0</limit>
  1664. <lookup/>
  1665. <execute_each_row>N</execute_each_row>
  1666. <variables_active>N</variables_active>
  1667. <lazy_conversion_active>N</lazy_conversion_active>
  1668. <cached_row_meta_active>N</cached_row_meta_active>
  1669. <row-meta>
  1670. <value-meta>
  1671. <type>String</type>
  1672. <storagetype>normal</storagetype>
  1673. <name>material_code</name>
  1674. <length>50</length>
  1675. <precision>-1</precision>
  1676. <origin>表输入-mom物料档案</origin>
  1677. <comments>material_code</comments>
  1678. <conversion_Mask/>
  1679. <decimal_symbol>.</decimal_symbol>
  1680. <grouping_symbol>,</grouping_symbol>
  1681. <currency_symbol/>
  1682. <trim_type>none</trim_type>
  1683. <case_insensitive>N</case_insensitive>
  1684. <collator_disabled>Y</collator_disabled>
  1685. <collator_strength>0</collator_strength>
  1686. <sort_descending>N</sort_descending>
  1687. <output_padding>N</output_padding>
  1688. <date_format_lenient>N</date_format_lenient>
  1689. <date_format_locale>zh_CN</date_format_locale>
  1690. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1691. <lenient_string_to_number>N</lenient_string_to_number>
  1692. </value-meta>
  1693. <value-meta>
  1694. <type>BigNumber</type>
  1695. <storagetype>normal</storagetype>
  1696. <name>excess_ratio_in</name>
  1697. <length>24</length>
  1698. <precision>6</precision>
  1699. <origin>表输入-mom物料档案</origin>
  1700. <comments>excess_ratio_in</comments>
  1701. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1702. <decimal_symbol>.</decimal_symbol>
  1703. <grouping_symbol/>
  1704. <currency_symbol/>
  1705. <trim_type>none</trim_type>
  1706. <case_insensitive>N</case_insensitive>
  1707. <collator_disabled>Y</collator_disabled>
  1708. <collator_strength>0</collator_strength>
  1709. <sort_descending>N</sort_descending>
  1710. <output_padding>N</output_padding>
  1711. <date_format_lenient>N</date_format_lenient>
  1712. <date_format_locale>zh_CN</date_format_locale>
  1713. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1714. <lenient_string_to_number>N</lenient_string_to_number>
  1715. </value-meta>
  1716. <value-meta>
  1717. <type>String</type>
  1718. <storagetype>normal</storagetype>
  1719. <name>warehouse_code</name>
  1720. <length>50</length>
  1721. <precision>-1</precision>
  1722. <origin>表输入-mom物料档案</origin>
  1723. <comments>warehouse_code</comments>
  1724. <conversion_Mask/>
  1725. <decimal_symbol>.</decimal_symbol>
  1726. <grouping_symbol>,</grouping_symbol>
  1727. <currency_symbol/>
  1728. <trim_type>none</trim_type>
  1729. <case_insensitive>N</case_insensitive>
  1730. <collator_disabled>Y</collator_disabled>
  1731. <collator_strength>0</collator_strength>
  1732. <sort_descending>N</sort_descending>
  1733. <output_padding>N</output_padding>
  1734. <date_format_lenient>N</date_format_lenient>
  1735. <date_format_locale>zh_CN</date_format_locale>
  1736. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1737. <lenient_string_to_number>N</lenient_string_to_number>
  1738. </value-meta>
  1739. <value-meta>
  1740. <type>String</type>
  1741. <storagetype>normal</storagetype>
  1742. <name>location_code</name>
  1743. <length>50</length>
  1744. <precision>-1</precision>
  1745. <origin>表输入-mom物料档案</origin>
  1746. <comments>location_code</comments>
  1747. <conversion_Mask/>
  1748. <decimal_symbol>.</decimal_symbol>
  1749. <grouping_symbol>,</grouping_symbol>
  1750. <currency_symbol/>
  1751. <trim_type>none</trim_type>
  1752. <case_insensitive>N</case_insensitive>
  1753. <collator_disabled>Y</collator_disabled>
  1754. <collator_strength>0</collator_strength>
  1755. <sort_descending>N</sort_descending>
  1756. <output_padding>N</output_padding>
  1757. <date_format_lenient>N</date_format_lenient>
  1758. <date_format_locale>zh_CN</date_format_locale>
  1759. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1760. <lenient_string_to_number>N</lenient_string_to_number>
  1761. </value-meta>
  1762. </row-meta>
  1763. <attributes/>
  1764. <cluster_schema/>
  1765. <remotesteps>
  1766. <input>
  1767. </input>
  1768. <output>
  1769. </output>
  1770. </remotesteps>
  1771. <GUI>
  1772. <xloc>336</xloc>
  1773. <yloc>224</yloc>
  1774. <draw>Y</draw>
  1775. </GUI>
  1776. </step>
  1777. <step>
  1778. <name>表输入-主id</name>
  1779. <type>TableInput</type>
  1780. <description/>
  1781. <distribute>Y</distribute>
  1782. <custom_distribution/>
  1783. <copies>1</copies>
  1784. <partitioning>
  1785. <method>none</method>
  1786. <schema_name/>
  1787. </partitioning>
  1788. <connection>MOM</connection>
  1789. <sql>SELECT
  1790. 0${interface_id} as master_interface_id,
  1791. id as mom_task_in_id
  1792. FROM wms_task_in
  1793. WHERE interface_id =0${interface_id} AND bill_type_code ='5' ORDER BY create_time DESC LIMIT 1
  1794. </sql>
  1795. <limit>0</limit>
  1796. <lookup/>
  1797. <execute_each_row>N</execute_each_row>
  1798. <variables_active>Y</variables_active>
  1799. <lazy_conversion_active>N</lazy_conversion_active>
  1800. <cached_row_meta_active>N</cached_row_meta_active>
  1801. <row-meta>
  1802. <value-meta>
  1803. <type>Integer</type>
  1804. <storagetype>normal</storagetype>
  1805. <name>master_interface_id</name>
  1806. <length>15</length>
  1807. <precision>0</precision>
  1808. <origin>表输入-主id</origin>
  1809. <comments>master_interface_id</comments>
  1810. <conversion_Mask>####0;-####0</conversion_Mask>
  1811. <decimal_symbol>.</decimal_symbol>
  1812. <grouping_symbol>,</grouping_symbol>
  1813. <currency_symbol/>
  1814. <trim_type>none</trim_type>
  1815. <case_insensitive>N</case_insensitive>
  1816. <collator_disabled>Y</collator_disabled>
  1817. <collator_strength>0</collator_strength>
  1818. <sort_descending>N</sort_descending>
  1819. <output_padding>N</output_padding>
  1820. <date_format_lenient>N</date_format_lenient>
  1821. <date_format_locale>zh_CN</date_format_locale>
  1822. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1823. <lenient_string_to_number>N</lenient_string_to_number>
  1824. </value-meta>
  1825. <value-meta>
  1826. <type>String</type>
  1827. <storagetype>normal</storagetype>
  1828. <name>mom_task_in_id</name>
  1829. <length>20</length>
  1830. <precision>-1</precision>
  1831. <origin>表输入-主id</origin>
  1832. <comments>mom_task_in_id</comments>
  1833. <conversion_Mask/>
  1834. <decimal_symbol>.</decimal_symbol>
  1835. <grouping_symbol>,</grouping_symbol>
  1836. <currency_symbol/>
  1837. <trim_type>none</trim_type>
  1838. <case_insensitive>N</case_insensitive>
  1839. <collator_disabled>Y</collator_disabled>
  1840. <collator_strength>0</collator_strength>
  1841. <sort_descending>N</sort_descending>
  1842. <output_padding>N</output_padding>
  1843. <date_format_lenient>N</date_format_lenient>
  1844. <date_format_locale>zh_CN</date_format_locale>
  1845. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1846. <lenient_string_to_number>N</lenient_string_to_number>
  1847. </value-meta>
  1848. </row-meta>
  1849. <attributes/>
  1850. <cluster_schema/>
  1851. <remotesteps>
  1852. <input>
  1853. </input>
  1854. <output>
  1855. </output>
  1856. </remotesteps>
  1857. <GUI>
  1858. <xloc>192</xloc>
  1859. <yloc>224</yloc>
  1860. <draw>Y</draw>
  1861. </GUI>
  1862. </step>
  1863. <step>
  1864. <name>获取变量</name>
  1865. <type>GetVariable</type>
  1866. <description/>
  1867. <distribute>Y</distribute>
  1868. <custom_distribution/>
  1869. <copies>1</copies>
  1870. <partitioning>
  1871. <method>none</method>
  1872. <schema_name/>
  1873. </partitioning>
  1874. <fields>
  1875. <field>
  1876. <name>mysql_driverclassname</name>
  1877. <variable>${mysql_driverclassname}</variable>
  1878. <type>String</type>
  1879. <format/>
  1880. <currency/>
  1881. <decimal/>
  1882. <group/>
  1883. <length>-1</length>
  1884. <precision>-1</precision>
  1885. <trim_type>none</trim_type>
  1886. </field>
  1887. <field>
  1888. <name>mysql_password</name>
  1889. <variable>${mysql_password}</variable>
  1890. <type>String</type>
  1891. <format/>
  1892. <currency/>
  1893. <decimal/>
  1894. <group/>
  1895. <length>-1</length>
  1896. <precision>-1</precision>
  1897. <trim_type>none</trim_type>
  1898. </field>
  1899. <field>
  1900. <name>mysql_url</name>
  1901. <variable>${mysql_url}</variable>
  1902. <type>String</type>
  1903. <format/>
  1904. <currency/>
  1905. <decimal/>
  1906. <group/>
  1907. <length>-1</length>
  1908. <precision>-1</precision>
  1909. <trim_type>none</trim_type>
  1910. </field>
  1911. <field>
  1912. <name>mysql_username</name>
  1913. <variable>${mysql_username}</variable>
  1914. <type>String</type>
  1915. <format/>
  1916. <currency/>
  1917. <decimal/>
  1918. <group/>
  1919. <length>-1</length>
  1920. <precision>-1</precision>
  1921. <trim_type>none</trim_type>
  1922. </field>
  1923. <field>
  1924. <name>USER_ID</name>
  1925. <variable>${USER_ID}</variable>
  1926. <type>String</type>
  1927. <format/>
  1928. <currency/>
  1929. <decimal/>
  1930. <group/>
  1931. <length>-1</length>
  1932. <precision>-1</precision>
  1933. <trim_type>none</trim_type>
  1934. </field>
  1935. <field>
  1936. <name>sqlserver_driverclassname</name>
  1937. <variable>${sqlserver_driverclassname}</variable>
  1938. <type>String</type>
  1939. <format/>
  1940. <currency/>
  1941. <decimal/>
  1942. <group/>
  1943. <length>-1</length>
  1944. <precision>-1</precision>
  1945. <trim_type>none</trim_type>
  1946. </field>
  1947. <field>
  1948. <name>sqlserver_password</name>
  1949. <variable>${sqlserver_password}</variable>
  1950. <type>String</type>
  1951. <format/>
  1952. <currency/>
  1953. <decimal/>
  1954. <group/>
  1955. <length>-1</length>
  1956. <precision>-1</precision>
  1957. <trim_type>none</trim_type>
  1958. </field>
  1959. <field>
  1960. <name>sqlserver_url</name>
  1961. <variable>${sqlserver_url}</variable>
  1962. <type>String</type>
  1963. <format/>
  1964. <currency/>
  1965. <decimal/>
  1966. <group/>
  1967. <length>-1</length>
  1968. <precision>-1</precision>
  1969. <trim_type>none</trim_type>
  1970. </field>
  1971. <field>
  1972. <name>sqlserver_username</name>
  1973. <variable>${sqlserver_username}</variable>
  1974. <type>String</type>
  1975. <format/>
  1976. <currency/>
  1977. <decimal/>
  1978. <group/>
  1979. <length>-1</length>
  1980. <precision>-1</precision>
  1981. <trim_type>none</trim_type>
  1982. </field>
  1983. <field>
  1984. <name>USER_NAME</name>
  1985. <variable>${USER_NAME}</variable>
  1986. <type>String</type>
  1987. <format/>
  1988. <currency/>
  1989. <decimal/>
  1990. <group/>
  1991. <length>-1</length>
  1992. <precision>-1</precision>
  1993. <trim_type>none</trim_type>
  1994. </field>
  1995. <field>
  1996. <name>BEGIN_DATE</name>
  1997. <variable>${BEGIN_DATE}</variable>
  1998. <type>String</type>
  1999. <format/>
  2000. <currency/>
  2001. <decimal/>
  2002. <group/>
  2003. <length>-1</length>
  2004. <precision>-1</precision>
  2005. <trim_type>none</trim_type>
  2006. </field>
  2007. <field>
  2008. <name>END_DATE</name>
  2009. <variable>${END_DATE}</variable>
  2010. <type>String</type>
  2011. <format/>
  2012. <currency/>
  2013. <decimal/>
  2014. <group/>
  2015. <length>-1</length>
  2016. <precision>-1</precision>
  2017. <trim_type>none</trim_type>
  2018. </field>
  2019. <field>
  2020. <name>DEPT_CODE</name>
  2021. <variable>${DEPT_CODE}</variable>
  2022. <type>String</type>
  2023. <format/>
  2024. <currency/>
  2025. <decimal/>
  2026. <group/>
  2027. <length>-1</length>
  2028. <precision>-1</precision>
  2029. <trim_type>none</trim_type>
  2030. </field>
  2031. <field>
  2032. <name>mysql_host</name>
  2033. <variable>${mysql_host}</variable>
  2034. <type>String</type>
  2035. <format/>
  2036. <currency/>
  2037. <decimal/>
  2038. <group/>
  2039. <length>-1</length>
  2040. <precision>-1</precision>
  2041. <trim_type>none</trim_type>
  2042. </field>
  2043. <field>
  2044. <name>mysql_dbname</name>
  2045. <variable>${mysql_dbname}</variable>
  2046. <type>String</type>
  2047. <format/>
  2048. <currency/>
  2049. <decimal/>
  2050. <group/>
  2051. <length>-1</length>
  2052. <precision>-1</precision>
  2053. <trim_type>none</trim_type>
  2054. </field>
  2055. </fields>
  2056. <attributes/>
  2057. <cluster_schema/>
  2058. <remotesteps>
  2059. <input>
  2060. </input>
  2061. <output>
  2062. </output>
  2063. </remotesteps>
  2064. <GUI>
  2065. <xloc>48</xloc>
  2066. <yloc>448</yloc>
  2067. <draw>Y</draw>
  2068. </GUI>
  2069. </step>
  2070. <step_error_handling>
  2071. </step_error_handling>
  2072. <slave-step-copy-partition-distribution>
  2073. </slave-step-copy-partition-distribution>
  2074. <slave_transformation>N</slave_transformation>
  2075. <attributes/>
  2076. </transformation>