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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <transformation>
  3. <info>
  4. <name>生产订单材料子表数据同步</name>
  5. <description/>
  6. <extended_description/>
  7. <trans_version/>
  8. <trans_type>Normal</trans_type>
  9. <trans_status>0</trans_status>
  10. <directory>/</directory>
  11. <parameters>
  12. <parameter>
  13. <name>interface_id</name>
  14. <default_value/>
  15. <description/>
  16. </parameter>
  17. <parameter>
  18. <name>mom_is_back_flush</name>
  19. <default_value/>
  20. <description/>
  21. </parameter>
  22. </parameters>
  23. <log>
  24. <trans-log-table>
  25. <connection/>
  26. <schema/>
  27. <table/>
  28. <size_limit_lines/>
  29. <interval/>
  30. <timeout_days/>
  31. <field>
  32. <id>ID_BATCH</id>
  33. <enabled>Y</enabled>
  34. <name>ID_BATCH</name>
  35. </field>
  36. <field>
  37. <id>CHANNEL_ID</id>
  38. <enabled>Y</enabled>
  39. <name>CHANNEL_ID</name>
  40. </field>
  41. <field>
  42. <id>TRANSNAME</id>
  43. <enabled>Y</enabled>
  44. <name>TRANSNAME</name>
  45. </field>
  46. <field>
  47. <id>STATUS</id>
  48. <enabled>Y</enabled>
  49. <name>STATUS</name>
  50. </field>
  51. <field>
  52. <id>LINES_READ</id>
  53. <enabled>Y</enabled>
  54. <name>LINES_READ</name>
  55. <subject/>
  56. </field>
  57. <field>
  58. <id>LINES_WRITTEN</id>
  59. <enabled>Y</enabled>
  60. <name>LINES_WRITTEN</name>
  61. <subject/>
  62. </field>
  63. <field>
  64. <id>LINES_UPDATED</id>
  65. <enabled>Y</enabled>
  66. <name>LINES_UPDATED</name>
  67. <subject/>
  68. </field>
  69. <field>
  70. <id>LINES_INPUT</id>
  71. <enabled>Y</enabled>
  72. <name>LINES_INPUT</name>
  73. <subject/>
  74. </field>
  75. <field>
  76. <id>LINES_OUTPUT</id>
  77. <enabled>Y</enabled>
  78. <name>LINES_OUTPUT</name>
  79. <subject/>
  80. </field>
  81. <field>
  82. <id>LINES_REJECTED</id>
  83. <enabled>Y</enabled>
  84. <name>LINES_REJECTED</name>
  85. <subject/>
  86. </field>
  87. <field>
  88. <id>ERRORS</id>
  89. <enabled>Y</enabled>
  90. <name>ERRORS</name>
  91. </field>
  92. <field>
  93. <id>STARTDATE</id>
  94. <enabled>Y</enabled>
  95. <name>STARTDATE</name>
  96. </field>
  97. <field>
  98. <id>ENDDATE</id>
  99. <enabled>Y</enabled>
  100. <name>ENDDATE</name>
  101. </field>
  102. <field>
  103. <id>LOGDATE</id>
  104. <enabled>Y</enabled>
  105. <name>LOGDATE</name>
  106. </field>
  107. <field>
  108. <id>DEPDATE</id>
  109. <enabled>Y</enabled>
  110. <name>DEPDATE</name>
  111. </field>
  112. <field>
  113. <id>REPLAYDATE</id>
  114. <enabled>Y</enabled>
  115. <name>REPLAYDATE</name>
  116. </field>
  117. <field>
  118. <id>LOG_FIELD</id>
  119. <enabled>Y</enabled>
  120. <name>LOG_FIELD</name>
  121. </field>
  122. <field>
  123. <id>EXECUTING_SERVER</id>
  124. <enabled>N</enabled>
  125. <name>EXECUTING_SERVER</name>
  126. </field>
  127. <field>
  128. <id>EXECUTING_USER</id>
  129. <enabled>N</enabled>
  130. <name>EXECUTING_USER</name>
  131. </field>
  132. <field>
  133. <id>CLIENT</id>
  134. <enabled>N</enabled>
  135. <name>CLIENT</name>
  136. </field>
  137. </trans-log-table>
  138. <perf-log-table>
  139. <connection/>
  140. <schema/>
  141. <table/>
  142. <interval/>
  143. <timeout_days/>
  144. <field>
  145. <id>ID_BATCH</id>
  146. <enabled>Y</enabled>
  147. <name>ID_BATCH</name>
  148. </field>
  149. <field>
  150. <id>SEQ_NR</id>
  151. <enabled>Y</enabled>
  152. <name>SEQ_NR</name>
  153. </field>
  154. <field>
  155. <id>LOGDATE</id>
  156. <enabled>Y</enabled>
  157. <name>LOGDATE</name>
  158. </field>
  159. <field>
  160. <id>TRANSNAME</id>
  161. <enabled>Y</enabled>
  162. <name>TRANSNAME</name>
  163. </field>
  164. <field>
  165. <id>STEPNAME</id>
  166. <enabled>Y</enabled>
  167. <name>STEPNAME</name>
  168. </field>
  169. <field>
  170. <id>STEP_COPY</id>
  171. <enabled>Y</enabled>
  172. <name>STEP_COPY</name>
  173. </field>
  174. <field>
  175. <id>LINES_READ</id>
  176. <enabled>Y</enabled>
  177. <name>LINES_READ</name>
  178. </field>
  179. <field>
  180. <id>LINES_WRITTEN</id>
  181. <enabled>Y</enabled>
  182. <name>LINES_WRITTEN</name>
  183. </field>
  184. <field>
  185. <id>LINES_UPDATED</id>
  186. <enabled>Y</enabled>
  187. <name>LINES_UPDATED</name>
  188. </field>
  189. <field>
  190. <id>LINES_INPUT</id>
  191. <enabled>Y</enabled>
  192. <name>LINES_INPUT</name>
  193. </field>
  194. <field>
  195. <id>LINES_OUTPUT</id>
  196. <enabled>Y</enabled>
  197. <name>LINES_OUTPUT</name>
  198. </field>
  199. <field>
  200. <id>LINES_REJECTED</id>
  201. <enabled>Y</enabled>
  202. <name>LINES_REJECTED</name>
  203. </field>
  204. <field>
  205. <id>ERRORS</id>
  206. <enabled>Y</enabled>
  207. <name>ERRORS</name>
  208. </field>
  209. <field>
  210. <id>INPUT_BUFFER_ROWS</id>
  211. <enabled>Y</enabled>
  212. <name>INPUT_BUFFER_ROWS</name>
  213. </field>
  214. <field>
  215. <id>OUTPUT_BUFFER_ROWS</id>
  216. <enabled>Y</enabled>
  217. <name>OUTPUT_BUFFER_ROWS</name>
  218. </field>
  219. </perf-log-table>
  220. <channel-log-table>
  221. <connection/>
  222. <schema/>
  223. <table/>
  224. <timeout_days/>
  225. <field>
  226. <id>ID_BATCH</id>
  227. <enabled>Y</enabled>
  228. <name>ID_BATCH</name>
  229. </field>
  230. <field>
  231. <id>CHANNEL_ID</id>
  232. <enabled>Y</enabled>
  233. <name>CHANNEL_ID</name>
  234. </field>
  235. <field>
  236. <id>LOG_DATE</id>
  237. <enabled>Y</enabled>
  238. <name>LOG_DATE</name>
  239. </field>
  240. <field>
  241. <id>LOGGING_OBJECT_TYPE</id>
  242. <enabled>Y</enabled>
  243. <name>LOGGING_OBJECT_TYPE</name>
  244. </field>
  245. <field>
  246. <id>OBJECT_NAME</id>
  247. <enabled>Y</enabled>
  248. <name>OBJECT_NAME</name>
  249. </field>
  250. <field>
  251. <id>OBJECT_COPY</id>
  252. <enabled>Y</enabled>
  253. <name>OBJECT_COPY</name>
  254. </field>
  255. <field>
  256. <id>REPOSITORY_DIRECTORY</id>
  257. <enabled>Y</enabled>
  258. <name>REPOSITORY_DIRECTORY</name>
  259. </field>
  260. <field>
  261. <id>FILENAME</id>
  262. <enabled>Y</enabled>
  263. <name>FILENAME</name>
  264. </field>
  265. <field>
  266. <id>OBJECT_ID</id>
  267. <enabled>Y</enabled>
  268. <name>OBJECT_ID</name>
  269. </field>
  270. <field>
  271. <id>OBJECT_REVISION</id>
  272. <enabled>Y</enabled>
  273. <name>OBJECT_REVISION</name>
  274. </field>
  275. <field>
  276. <id>PARENT_CHANNEL_ID</id>
  277. <enabled>Y</enabled>
  278. <name>PARENT_CHANNEL_ID</name>
  279. </field>
  280. <field>
  281. <id>ROOT_CHANNEL_ID</id>
  282. <enabled>Y</enabled>
  283. <name>ROOT_CHANNEL_ID</name>
  284. </field>
  285. </channel-log-table>
  286. <step-log-table>
  287. <connection/>
  288. <schema/>
  289. <table/>
  290. <timeout_days/>
  291. <field>
  292. <id>ID_BATCH</id>
  293. <enabled>Y</enabled>
  294. <name>ID_BATCH</name>
  295. </field>
  296. <field>
  297. <id>CHANNEL_ID</id>
  298. <enabled>Y</enabled>
  299. <name>CHANNEL_ID</name>
  300. </field>
  301. <field>
  302. <id>LOG_DATE</id>
  303. <enabled>Y</enabled>
  304. <name>LOG_DATE</name>
  305. </field>
  306. <field>
  307. <id>TRANSNAME</id>
  308. <enabled>Y</enabled>
  309. <name>TRANSNAME</name>
  310. </field>
  311. <field>
  312. <id>STEPNAME</id>
  313. <enabled>Y</enabled>
  314. <name>STEPNAME</name>
  315. </field>
  316. <field>
  317. <id>STEP_COPY</id>
  318. <enabled>Y</enabled>
  319. <name>STEP_COPY</name>
  320. </field>
  321. <field>
  322. <id>LINES_READ</id>
  323. <enabled>Y</enabled>
  324. <name>LINES_READ</name>
  325. </field>
  326. <field>
  327. <id>LINES_WRITTEN</id>
  328. <enabled>Y</enabled>
  329. <name>LINES_WRITTEN</name>
  330. </field>
  331. <field>
  332. <id>LINES_UPDATED</id>
  333. <enabled>Y</enabled>
  334. <name>LINES_UPDATED</name>
  335. </field>
  336. <field>
  337. <id>LINES_INPUT</id>
  338. <enabled>Y</enabled>
  339. <name>LINES_INPUT</name>
  340. </field>
  341. <field>
  342. <id>LINES_OUTPUT</id>
  343. <enabled>Y</enabled>
  344. <name>LINES_OUTPUT</name>
  345. </field>
  346. <field>
  347. <id>LINES_REJECTED</id>
  348. <enabled>Y</enabled>
  349. <name>LINES_REJECTED</name>
  350. </field>
  351. <field>
  352. <id>ERRORS</id>
  353. <enabled>Y</enabled>
  354. <name>ERRORS</name>
  355. </field>
  356. <field>
  357. <id>LOG_FIELD</id>
  358. <enabled>N</enabled>
  359. <name>LOG_FIELD</name>
  360. </field>
  361. </step-log-table>
  362. <metrics-log-table>
  363. <connection/>
  364. <schema/>
  365. <table/>
  366. <timeout_days/>
  367. <field>
  368. <id>ID_BATCH</id>
  369. <enabled>Y</enabled>
  370. <name>ID_BATCH</name>
  371. </field>
  372. <field>
  373. <id>CHANNEL_ID</id>
  374. <enabled>Y</enabled>
  375. <name>CHANNEL_ID</name>
  376. </field>
  377. <field>
  378. <id>LOG_DATE</id>
  379. <enabled>Y</enabled>
  380. <name>LOG_DATE</name>
  381. </field>
  382. <field>
  383. <id>METRICS_DATE</id>
  384. <enabled>Y</enabled>
  385. <name>METRICS_DATE</name>
  386. </field>
  387. <field>
  388. <id>METRICS_CODE</id>
  389. <enabled>Y</enabled>
  390. <name>METRICS_CODE</name>
  391. </field>
  392. <field>
  393. <id>METRICS_DESCRIPTION</id>
  394. <enabled>Y</enabled>
  395. <name>METRICS_DESCRIPTION</name>
  396. </field>
  397. <field>
  398. <id>METRICS_SUBJECT</id>
  399. <enabled>Y</enabled>
  400. <name>METRICS_SUBJECT</name>
  401. </field>
  402. <field>
  403. <id>METRICS_TYPE</id>
  404. <enabled>Y</enabled>
  405. <name>METRICS_TYPE</name>
  406. </field>
  407. <field>
  408. <id>METRICS_VALUE</id>
  409. <enabled>Y</enabled>
  410. <name>METRICS_VALUE</name>
  411. </field>
  412. </metrics-log-table>
  413. </log>
  414. <maxdate>
  415. <connection/>
  416. <table/>
  417. <field/>
  418. <offset>0.0</offset>
  419. <maxdiff>0.0</maxdiff>
  420. </maxdate>
  421. <size_rowset>10000</size_rowset>
  422. <sleep_time_empty>50</sleep_time_empty>
  423. <sleep_time_full>50</sleep_time_full>
  424. <unique_connections>N</unique_connections>
  425. <feedback_shown>Y</feedback_shown>
  426. <feedback_size>50000</feedback_size>
  427. <using_thread_priorities>Y</using_thread_priorities>
  428. <shared_objects_file/>
  429. <capture_step_performance>N</capture_step_performance>
  430. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  431. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  432. <dependencies>
  433. </dependencies>
  434. <partitionschemas>
  435. </partitionschemas>
  436. <slaveservers>
  437. </slaveservers>
  438. <clusterschemas>
  439. </clusterschemas>
  440. <created_user>-</created_user>
  441. <created_date>2024/01/10 11:03:15.382</created_date>
  442. <modified_user>-</modified_user>
  443. <modified_date>2024/01/10 11:03:15.382</modified_date>
  444. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  445. <is_key_private>N</is_key_private>
  446. </info>
  447. <notepads>
  448. </notepads>
  449. <connection>
  450. <name>MOM</name>
  451. <server>${mysql_host}</server>
  452. <type>MYSQL</type>
  453. <access>Native</access>
  454. <database>${mysql_dbname}</database>
  455. <port>3306</port>
  456. <username>${mysql_username}</username>
  457. <password>${mysql_password}</password>
  458. <servername/>
  459. <data_tablespace/>
  460. <index_tablespace/>
  461. <attributes>
  462. <attribute>
  463. <code>EXTRA_OPTION_MYSQL.characterEncoding</code>
  464. <attribute>utf-8</attribute>
  465. </attribute>
  466. <attribute>
  467. <code>EXTRA_OPTION_MYSQL.defaultFetchSize</code>
  468. <attribute>5000</attribute>
  469. </attribute>
  470. <attribute>
  471. <code>EXTRA_OPTION_MYSQL.rewriteBatchedStatements</code>
  472. <attribute>true</attribute>
  473. </attribute>
  474. <attribute>
  475. <code>EXTRA_OPTION_MYSQL.useCompression</code>
  476. <attribute>true</attribute>
  477. </attribute>
  478. <attribute>
  479. <code>EXTRA_OPTION_MYSQL.useCursorFetch</code>
  480. <attribute>true</attribute>
  481. </attribute>
  482. <attribute>
  483. <code>EXTRA_OPTION_MYSQL.useServerPrepStmts</code>
  484. <attribute>true</attribute>
  485. </attribute>
  486. <attribute>
  487. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  488. <attribute>N</attribute>
  489. </attribute>
  490. <attribute>
  491. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  492. <attribute>N</attribute>
  493. </attribute>
  494. <attribute>
  495. <code>IS_CLUSTERED</code>
  496. <attribute>N</attribute>
  497. </attribute>
  498. <attribute>
  499. <code>PORT_NUMBER</code>
  500. <attribute>3306</attribute>
  501. </attribute>
  502. <attribute>
  503. <code>PRESERVE_RESERVED_WORD_CASE</code>
  504. <attribute>Y</attribute>
  505. </attribute>
  506. <attribute>
  507. <code>QUOTE_ALL_FIELDS</code>
  508. <attribute>N</attribute>
  509. </attribute>
  510. <attribute>
  511. <code>STREAM_RESULTS</code>
  512. <attribute>N</attribute>
  513. </attribute>
  514. <attribute>
  515. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  516. <attribute>Y</attribute>
  517. </attribute>
  518. <attribute>
  519. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  520. <attribute>Y</attribute>
  521. </attribute>
  522. <attribute>
  523. <code>USE_POOLING</code>
  524. <attribute>N</attribute>
  525. </attribute>
  526. </attributes>
  527. </connection>
  528. <connection>
  529. <name>U8</name>
  530. <server>${U8DB_HOST}</server>
  531. <type>GENERIC</type>
  532. <access>Native</access>
  533. <database>${U8DB_NAME}</database>
  534. <port>1433</port>
  535. <username>${sqlserver_username}</username>
  536. <password>${sqlserver_password}</password>
  537. <servername/>
  538. <data_tablespace/>
  539. <index_tablespace/>
  540. <attributes>
  541. <attribute>
  542. <code>CUSTOM_DRIVER_CLASS</code>
  543. <attribute>${sqlserver_driverclassname}</attribute>
  544. </attribute>
  545. <attribute>
  546. <code>CUSTOM_URL</code>
  547. <attribute>${sqlserver_url}</attribute>
  548. </attribute>
  549. <attribute>
  550. <code>DATABASE_DIALECT_ID</code>
  551. <attribute>Generic database</attribute>
  552. </attribute>
  553. <attribute>
  554. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  555. <attribute>N</attribute>
  556. </attribute>
  557. <attribute>
  558. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  559. <attribute>N</attribute>
  560. </attribute>
  561. <attribute>
  562. <code>IS_CLUSTERED</code>
  563. <attribute>N</attribute>
  564. </attribute>
  565. <attribute>
  566. <code>PORT_NUMBER</code>
  567. <attribute>1433</attribute>
  568. </attribute>
  569. <attribute>
  570. <code>PRESERVE_RESERVED_WORD_CASE</code>
  571. <attribute>Y</attribute>
  572. </attribute>
  573. <attribute>
  574. <code>QUOTE_ALL_FIELDS</code>
  575. <attribute>N</attribute>
  576. </attribute>
  577. <attribute>
  578. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  579. <attribute>Y</attribute>
  580. </attribute>
  581. <attribute>
  582. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  583. <attribute>Y</attribute>
  584. </attribute>
  585. <attribute>
  586. <code>USE_POOLING</code>
  587. <attribute>N</attribute>
  588. </attribute>
  589. </attributes>
  590. </connection>
  591. <order>
  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>Java 代码-id</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>表输入</to>
  635. <enabled>Y</enabled>
  636. </hop>
  637. <hop>
  638. <from>获取变量</from>
  639. <to>表输入-主id</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>N</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>64</yloc>
  766. <draw>Y</draw>
  767. </GUI>
  768. </step>
  769. <step>
  770. <name>插入 / 更新</name>
  771. <type>InsertUpdate</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. <commit>1000</commit>
  782. <update_bypassed>N</update_bypassed>
  783. <lookup>
  784. <schema/>
  785. <table>wms_task_outs</table>
  786. <key>
  787. <name>interface_id</name>
  788. <field>interface_id</field>
  789. <condition>=</condition>
  790. <name2/>
  791. </key>
  792. <value>
  793. <name>interface_pid</name>
  794. <rename>interface_pid</rename>
  795. <update>N</update>
  796. </value>
  797. <value>
  798. <name>interface_id</name>
  799. <rename>interface_id</rename>
  800. <update>N</update>
  801. </value>
  802. <value>
  803. <name>interface_row</name>
  804. <rename>interface_row</rename>
  805. <update>N</update>
  806. </value>
  807. <value>
  808. <name>id</name>
  809. <rename>id</rename>
  810. <update>N</update>
  811. </value>
  812. <value>
  813. <name>task_out_id</name>
  814. <rename>mom_task_out_id</rename>
  815. <update>N</update>
  816. </value>
  817. <value>
  818. <name>`row_number`</name>
  819. <rename>row_number</rename>
  820. <update>N</update>
  821. </value>
  822. <value>
  823. <name>material_code</name>
  824. <rename>material_code</rename>
  825. <update>N</update>
  826. </value>
  827. <value>
  828. <name>task_qty</name>
  829. <rename>task_qty</rename>
  830. <update>N</update>
  831. </value>
  832. <value>
  833. <name>unit_code</name>
  834. <rename>unit_code</rename>
  835. <update>N</update>
  836. </value>
  837. <value>
  838. <name>is_back_flush</name>
  839. <rename>mom_is_back_flush</rename>
  840. <update>N</update>
  841. </value>
  842. <value>
  843. <name>excess_ratio_out</name>
  844. <rename>mom_excess_ratio_out</rename>
  845. <update>N</update>
  846. </value>
  847. <value>
  848. <name>warehouse_code</name>
  849. <rename>mom_warehouse_code</rename>
  850. <update>N</update>
  851. </value>
  852. <value>
  853. <name>location_code</name>
  854. <rename>mom_location_code</rename>
  855. <update>N</update>
  856. </value>
  857. <value>
  858. <name>status</name>
  859. <rename>status</rename>
  860. <update>N</update>
  861. </value>
  862. <value>
  863. <name>is_close</name>
  864. <rename>is_close</rename>
  865. <update>Y</update>
  866. </value>
  867. <value>
  868. <name>task_ins_id</name>
  869. <rename>mom_task_ins_id</rename>
  870. <update>Y</update>
  871. </value>
  872. <value>
  873. <name>create_id</name>
  874. <rename>sync_id</rename>
  875. <update>N</update>
  876. </value>
  877. <value>
  878. <name>create_by</name>
  879. <rename>sync_name</rename>
  880. <update>N</update>
  881. </value>
  882. <value>
  883. <name>create_time</name>
  884. <rename>sync_time</rename>
  885. <update>N</update>
  886. </value>
  887. <value>
  888. <name>audit_by</name>
  889. <rename>sync_name</rename>
  890. <update>N</update>
  891. </value>
  892. <value>
  893. <name>audit_time</name>
  894. <rename>sync_time</rename>
  895. <update>N</update>
  896. </value>
  897. </lookup>
  898. <attributes/>
  899. <cluster_schema/>
  900. <remotesteps>
  901. <input>
  902. </input>
  903. <output>
  904. </output>
  905. </remotesteps>
  906. <GUI>
  907. <xloc>864</xloc>
  908. <yloc>64</yloc>
  909. <draw>Y</draw>
  910. </GUI>
  911. </step>
  912. <step>
  913. <name>流查询-主id</name>
  914. <type>StreamLookup</type>
  915. <description/>
  916. <distribute>Y</distribute>
  917. <custom_distribution/>
  918. <copies>1</copies>
  919. <partitioning>
  920. <method>none</method>
  921. <schema_name/>
  922. </partitioning>
  923. <from>表输入-主id</from>
  924. <input_sorted>N</input_sorted>
  925. <preserve_memory>N</preserve_memory>
  926. <sorted_list>N</sorted_list>
  927. <integer_pair>N</integer_pair>
  928. <lookup>
  929. <key>
  930. <name>master_interface_id</name>
  931. <field>master_interface_id</field>
  932. </key>
  933. <value>
  934. <name>mom_task_out_id</name>
  935. <rename>mom_task_out_id</rename>
  936. <default/>
  937. <type>String</type>
  938. </value>
  939. </lookup>
  940. <attributes/>
  941. <cluster_schema/>
  942. <remotesteps>
  943. <input>
  944. </input>
  945. <output>
  946. </output>
  947. </remotesteps>
  948. <GUI>
  949. <xloc>384</xloc>
  950. <yloc>64</yloc>
  951. <draw>Y</draw>
  952. </GUI>
  953. </step>
  954. <step>
  955. <name>流查询-入库任务</name>
  956. <type>StreamLookup</type>
  957. <description/>
  958. <distribute>Y</distribute>
  959. <custom_distribution/>
  960. <copies>1</copies>
  961. <partitioning>
  962. <method>none</method>
  963. <schema_name/>
  964. </partitioning>
  965. <from>表输入-mom入库任务</from>
  966. <input_sorted>N</input_sorted>
  967. <preserve_memory>N</preserve_memory>
  968. <sorted_list>N</sorted_list>
  969. <integer_pair>N</integer_pair>
  970. <lookup>
  971. <key>
  972. <name>interface_pid</name>
  973. <field>mom_interface_pid</field>
  974. </key>
  975. <value>
  976. <name>mom_task_ins_id</name>
  977. <rename>mom_task_ins_id</rename>
  978. <default/>
  979. <type>String</type>
  980. </value>
  981. </lookup>
  982. <attributes/>
  983. <cluster_schema/>
  984. <remotesteps>
  985. <input>
  986. </input>
  987. <output>
  988. </output>
  989. </remotesteps>
  990. <GUI>
  991. <xloc>720</xloc>
  992. <yloc>64</yloc>
  993. <draw>Y</draw>
  994. </GUI>
  995. </step>
  996. <step>
  997. <name>流查询-物料档案</name>
  998. <type>StreamLookup</type>
  999. <description/>
  1000. <distribute>Y</distribute>
  1001. <custom_distribution/>
  1002. <copies>1</copies>
  1003. <partitioning>
  1004. <method>none</method>
  1005. <schema_name/>
  1006. </partitioning>
  1007. <from>表输入-mom物料档案</from>
  1008. <input_sorted>N</input_sorted>
  1009. <preserve_memory>N</preserve_memory>
  1010. <sorted_list>N</sorted_list>
  1011. <integer_pair>N</integer_pair>
  1012. <lookup>
  1013. <key>
  1014. <name>material_code</name>
  1015. <field>mom_material_code</field>
  1016. </key>
  1017. <value>
  1018. <name>mom_warehouse_code</name>
  1019. <rename>mom_warehouse_code</rename>
  1020. <default/>
  1021. <type>String</type>
  1022. </value>
  1023. <value>
  1024. <name>mom_location_code</name>
  1025. <rename>mom_location_code</rename>
  1026. <default/>
  1027. <type>String</type>
  1028. </value>
  1029. <value>
  1030. <name>mom_excess_ratio_out</name>
  1031. <rename>mom_excess_ratio_out</rename>
  1032. <default/>
  1033. <type>BigNumber</type>
  1034. </value>
  1035. <value>
  1036. <name>mom_is_back_flush</name>
  1037. <rename>mom_is_back_flush</rename>
  1038. <default/>
  1039. <type>Binary</type>
  1040. </value>
  1041. </lookup>
  1042. <attributes/>
  1043. <cluster_schema/>
  1044. <remotesteps>
  1045. <input>
  1046. </input>
  1047. <output>
  1048. </output>
  1049. </remotesteps>
  1050. <GUI>
  1051. <xloc>544</xloc>
  1052. <yloc>64</yloc>
  1053. <draw>Y</draw>
  1054. </GUI>
  1055. </step>
  1056. <step>
  1057. <name>获取变量</name>
  1058. <type>GetVariable</type>
  1059. <description/>
  1060. <distribute>Y</distribute>
  1061. <custom_distribution/>
  1062. <copies>1</copies>
  1063. <partitioning>
  1064. <method>none</method>
  1065. <schema_name/>
  1066. </partitioning>
  1067. <fields>
  1068. <field>
  1069. <name>mysql_driverclassname</name>
  1070. <variable>${mysql_driverclassname}</variable>
  1071. <type>String</type>
  1072. <format/>
  1073. <currency/>
  1074. <decimal/>
  1075. <group/>
  1076. <length>-1</length>
  1077. <precision>-1</precision>
  1078. <trim_type>none</trim_type>
  1079. </field>
  1080. <field>
  1081. <name>mysql_password</name>
  1082. <variable>${mysql_password}</variable>
  1083. <type>String</type>
  1084. <format/>
  1085. <currency/>
  1086. <decimal/>
  1087. <group/>
  1088. <length>-1</length>
  1089. <precision>-1</precision>
  1090. <trim_type>none</trim_type>
  1091. </field>
  1092. <field>
  1093. <name>mysql_url</name>
  1094. <variable>${mysql_url}</variable>
  1095. <type>String</type>
  1096. <format/>
  1097. <currency/>
  1098. <decimal/>
  1099. <group/>
  1100. <length>-1</length>
  1101. <precision>-1</precision>
  1102. <trim_type>none</trim_type>
  1103. </field>
  1104. <field>
  1105. <name>mysql_username</name>
  1106. <variable>${mysql_username}</variable>
  1107. <type>String</type>
  1108. <format/>
  1109. <currency/>
  1110. <decimal/>
  1111. <group/>
  1112. <length>-1</length>
  1113. <precision>-1</precision>
  1114. <trim_type>none</trim_type>
  1115. </field>
  1116. <field>
  1117. <name>USER_ID</name>
  1118. <variable>${USER_ID}</variable>
  1119. <type>String</type>
  1120. <format/>
  1121. <currency/>
  1122. <decimal/>
  1123. <group/>
  1124. <length>-1</length>
  1125. <precision>-1</precision>
  1126. <trim_type>none</trim_type>
  1127. </field>
  1128. <field>
  1129. <name>sqlserver_driverclassname</name>
  1130. <variable>${sqlserver_driverclassname}</variable>
  1131. <type>String</type>
  1132. <format/>
  1133. <currency/>
  1134. <decimal/>
  1135. <group/>
  1136. <length>-1</length>
  1137. <precision>-1</precision>
  1138. <trim_type>none</trim_type>
  1139. </field>
  1140. <field>
  1141. <name>sqlserver_password</name>
  1142. <variable>${sqlserver_password}</variable>
  1143. <type>String</type>
  1144. <format/>
  1145. <currency/>
  1146. <decimal/>
  1147. <group/>
  1148. <length>-1</length>
  1149. <precision>-1</precision>
  1150. <trim_type>none</trim_type>
  1151. </field>
  1152. <field>
  1153. <name>sqlserver_url</name>
  1154. <variable>${sqlserver_url}</variable>
  1155. <type>String</type>
  1156. <format/>
  1157. <currency/>
  1158. <decimal/>
  1159. <group/>
  1160. <length>-1</length>
  1161. <precision>-1</precision>
  1162. <trim_type>none</trim_type>
  1163. </field>
  1164. <field>
  1165. <name>sqlserver_username</name>
  1166. <variable>${sqlserver_username}</variable>
  1167. <type>String</type>
  1168. <format/>
  1169. <currency/>
  1170. <decimal/>
  1171. <group/>
  1172. <length>-1</length>
  1173. <precision>-1</precision>
  1174. <trim_type>none</trim_type>
  1175. </field>
  1176. <field>
  1177. <name>USER_NAME</name>
  1178. <variable>${USER_NAME}</variable>
  1179. <type>String</type>
  1180. <format/>
  1181. <currency/>
  1182. <decimal/>
  1183. <group/>
  1184. <length>-1</length>
  1185. <precision>-1</precision>
  1186. <trim_type>none</trim_type>
  1187. </field>
  1188. <field>
  1189. <name>BEGIN_DATE</name>
  1190. <variable>${BEGIN_DATE}</variable>
  1191. <type>String</type>
  1192. <format/>
  1193. <currency/>
  1194. <decimal/>
  1195. <group/>
  1196. <length>-1</length>
  1197. <precision>-1</precision>
  1198. <trim_type>none</trim_type>
  1199. </field>
  1200. <field>
  1201. <name>END_DATE</name>
  1202. <variable>${END_DATE}</variable>
  1203. <type>String</type>
  1204. <format/>
  1205. <currency/>
  1206. <decimal/>
  1207. <group/>
  1208. <length>-1</length>
  1209. <precision>-1</precision>
  1210. <trim_type>none</trim_type>
  1211. </field>
  1212. <field>
  1213. <name>DEPT_CODE</name>
  1214. <variable>${DEPT_CODE}</variable>
  1215. <type>String</type>
  1216. <format/>
  1217. <currency/>
  1218. <decimal/>
  1219. <group/>
  1220. <length>-1</length>
  1221. <precision>-1</precision>
  1222. <trim_type>none</trim_type>
  1223. </field>
  1224. <field>
  1225. <name>mysql_host</name>
  1226. <variable>${mysql_host}</variable>
  1227. <type>String</type>
  1228. <format/>
  1229. <currency/>
  1230. <decimal/>
  1231. <group/>
  1232. <length>-1</length>
  1233. <precision>-1</precision>
  1234. <trim_type>none</trim_type>
  1235. </field>
  1236. <field>
  1237. <name>mysql_dbname</name>
  1238. <variable>${mysql_dbname}</variable>
  1239. <type>String</type>
  1240. <format/>
  1241. <currency/>
  1242. <decimal/>
  1243. <group/>
  1244. <length>-1</length>
  1245. <precision>-1</precision>
  1246. <trim_type>none</trim_type>
  1247. </field>
  1248. </fields>
  1249. <attributes/>
  1250. <cluster_schema/>
  1251. <remotesteps>
  1252. <input>
  1253. </input>
  1254. <output>
  1255. </output>
  1256. </remotesteps>
  1257. <GUI>
  1258. <xloc>96</xloc>
  1259. <yloc>493</yloc>
  1260. <draw>Y</draw>
  1261. </GUI>
  1262. </step>
  1263. <step>
  1264. <name>表输入</name>
  1265. <type>TableInput</type>
  1266. <description/>
  1267. <distribute>Y</distribute>
  1268. <custom_distribution/>
  1269. <copies>1</copies>
  1270. <partitioning>
  1271. <method>none</method>
  1272. <schema_name/>
  1273. </partitioning>
  1274. <connection>U8</connection>
  1275. <sql>DECLARE @USER_NAME VARCHAR(50),@USER_ID INT
  1276. SET @USER_NAME = CASE '${USER_NAME}' WHEN '' THEN '管理员(kettle)' ELSE '${USER_NAME}' END
  1277. SET @USER_ID = CASE 0${USER_ID} WHEN 0 THEN 1 ELSE 0${USER_ID} END
  1278. SELECT
  1279. 0${interface_id} AS master_interface_id
  1280. ,T2.MoDId AS interface_pid
  1281. ,T3.AllocateId AS interface_id
  1282. ,T3.SortSeq AS interface_row
  1283. ,ROW_NUMBER()OVER(ORDER BY T2.MoDId,T3.AllocateId) AS row_number
  1284. ,T3.InvCode AS material_code
  1285. ,T3.Qty AS task_qty
  1286. ,T6.cComUnitCode AS unit_code
  1287. ,0 AS status
  1288. --,1 AS is_close
  1289. ,CASE T2.Status WHEN 4 THEN 0 ELSE 1 END AS is_close --3已审核4关闭
  1290. ,@USER_NAME AS sync_name
  1291. ,@USER_ID AS sync_id
  1292. ,GETDATE() AS sync_time
  1293. FROM mom_order T1
  1294. LEFT JOIN mom_orderdetail T2 ON T1.MoId =T2.MoId
  1295. LEFT JOIN mom_moallocate T3 ON T2.MoDId =T3.MoDId
  1296. LEFT JOIN mom_morder T4 ON T2.MoDId =T4.MoDId
  1297. LEFT JOIN Inventory T6 ON T3.InvCode =T6.cInvCode
  1298. WHERE 1=1
  1299. AND T3.ByproductFlag =0 --是否联副产品
  1300. AND T1.MoId =0${interface_id}
  1301. AND CONVERT(DATE,T4.StartDate) ='${task_date}'
  1302. AND ISNULL(T2.MDeptCode,'') ='${dept_code}'
  1303. </sql>
  1304. <limit>0</limit>
  1305. <lookup/>
  1306. <execute_each_row>N</execute_each_row>
  1307. <variables_active>Y</variables_active>
  1308. <lazy_conversion_active>N</lazy_conversion_active>
  1309. <cached_row_meta_active>N</cached_row_meta_active>
  1310. <row-meta>
  1311. <value-meta>
  1312. <type>Integer</type>
  1313. <storagetype>normal</storagetype>
  1314. <name>master_interface_id</name>
  1315. <length>9</length>
  1316. <precision>0</precision>
  1317. <origin>表输入</origin>
  1318. <comments>master_interface_id</comments>
  1319. <conversion_Mask>####0;-####0</conversion_Mask>
  1320. <decimal_symbol>.</decimal_symbol>
  1321. <grouping_symbol>,</grouping_symbol>
  1322. <currency_symbol/>
  1323. <trim_type>none</trim_type>
  1324. <case_insensitive>N</case_insensitive>
  1325. <collator_disabled>Y</collator_disabled>
  1326. <collator_strength>0</collator_strength>
  1327. <sort_descending>N</sort_descending>
  1328. <output_padding>N</output_padding>
  1329. <date_format_lenient>N</date_format_lenient>
  1330. <date_format_locale>zh_CN</date_format_locale>
  1331. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1332. <lenient_string_to_number>N</lenient_string_to_number>
  1333. </value-meta>
  1334. <value-meta>
  1335. <type>Integer</type>
  1336. <storagetype>normal</storagetype>
  1337. <name>interface_pid</name>
  1338. <length>9</length>
  1339. <precision>0</precision>
  1340. <origin>表输入</origin>
  1341. <comments>interface_pid</comments>
  1342. <conversion_Mask>####0;-####0</conversion_Mask>
  1343. <decimal_symbol>.</decimal_symbol>
  1344. <grouping_symbol>,</grouping_symbol>
  1345. <currency_symbol/>
  1346. <trim_type>none</trim_type>
  1347. <case_insensitive>N</case_insensitive>
  1348. <collator_disabled>Y</collator_disabled>
  1349. <collator_strength>0</collator_strength>
  1350. <sort_descending>N</sort_descending>
  1351. <output_padding>N</output_padding>
  1352. <date_format_lenient>N</date_format_lenient>
  1353. <date_format_locale>zh_CN</date_format_locale>
  1354. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1355. <lenient_string_to_number>N</lenient_string_to_number>
  1356. </value-meta>
  1357. <value-meta>
  1358. <type>Integer</type>
  1359. <storagetype>normal</storagetype>
  1360. <name>interface_id</name>
  1361. <length>9</length>
  1362. <precision>0</precision>
  1363. <origin>表输入</origin>
  1364. <comments>interface_id</comments>
  1365. <conversion_Mask>####0;-####0</conversion_Mask>
  1366. <decimal_symbol>.</decimal_symbol>
  1367. <grouping_symbol>,</grouping_symbol>
  1368. <currency_symbol/>
  1369. <trim_type>none</trim_type>
  1370. <case_insensitive>N</case_insensitive>
  1371. <collator_disabled>Y</collator_disabled>
  1372. <collator_strength>0</collator_strength>
  1373. <sort_descending>N</sort_descending>
  1374. <output_padding>N</output_padding>
  1375. <date_format_lenient>N</date_format_lenient>
  1376. <date_format_locale>zh_CN</date_format_locale>
  1377. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1378. <lenient_string_to_number>N</lenient_string_to_number>
  1379. </value-meta>
  1380. <value-meta>
  1381. <type>Integer</type>
  1382. <storagetype>normal</storagetype>
  1383. <name>interface_row</name>
  1384. <length>9</length>
  1385. <precision>0</precision>
  1386. <origin>表输入</origin>
  1387. <comments>interface_row</comments>
  1388. <conversion_Mask>####0;-####0</conversion_Mask>
  1389. <decimal_symbol>.</decimal_symbol>
  1390. <grouping_symbol>,</grouping_symbol>
  1391. <currency_symbol/>
  1392. <trim_type>none</trim_type>
  1393. <case_insensitive>N</case_insensitive>
  1394. <collator_disabled>Y</collator_disabled>
  1395. <collator_strength>0</collator_strength>
  1396. <sort_descending>N</sort_descending>
  1397. <output_padding>N</output_padding>
  1398. <date_format_lenient>N</date_format_lenient>
  1399. <date_format_locale>zh_CN</date_format_locale>
  1400. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1401. <lenient_string_to_number>N</lenient_string_to_number>
  1402. </value-meta>
  1403. <value-meta>
  1404. <type>Integer</type>
  1405. <storagetype>normal</storagetype>
  1406. <name>row_number</name>
  1407. <length>15</length>
  1408. <precision>0</precision>
  1409. <origin>表输入</origin>
  1410. <comments>row_number</comments>
  1411. <conversion_Mask>####0;-####0</conversion_Mask>
  1412. <decimal_symbol>.</decimal_symbol>
  1413. <grouping_symbol>,</grouping_symbol>
  1414. <currency_symbol/>
  1415. <trim_type>none</trim_type>
  1416. <case_insensitive>N</case_insensitive>
  1417. <collator_disabled>Y</collator_disabled>
  1418. <collator_strength>0</collator_strength>
  1419. <sort_descending>N</sort_descending>
  1420. <output_padding>N</output_padding>
  1421. <date_format_lenient>N</date_format_lenient>
  1422. <date_format_locale>zh_CN</date_format_locale>
  1423. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1424. <lenient_string_to_number>N</lenient_string_to_number>
  1425. </value-meta>
  1426. <value-meta>
  1427. <type>String</type>
  1428. <storagetype>normal</storagetype>
  1429. <name>material_code</name>
  1430. <length>60</length>
  1431. <precision>-1</precision>
  1432. <origin>表输入</origin>
  1433. <comments>material_code</comments>
  1434. <conversion_Mask/>
  1435. <decimal_symbol>.</decimal_symbol>
  1436. <grouping_symbol>,</grouping_symbol>
  1437. <currency_symbol/>
  1438. <trim_type>none</trim_type>
  1439. <case_insensitive>N</case_insensitive>
  1440. <collator_disabled>Y</collator_disabled>
  1441. <collator_strength>0</collator_strength>
  1442. <sort_descending>N</sort_descending>
  1443. <output_padding>N</output_padding>
  1444. <date_format_lenient>N</date_format_lenient>
  1445. <date_format_locale>zh_CN</date_format_locale>
  1446. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1447. <lenient_string_to_number>N</lenient_string_to_number>
  1448. </value-meta>
  1449. <value-meta>
  1450. <type>BigNumber</type>
  1451. <storagetype>normal</storagetype>
  1452. <name>task_qty</name>
  1453. <length>28</length>
  1454. <precision>6</precision>
  1455. <origin>表输入</origin>
  1456. <comments>task_qty</comments>
  1457. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1458. <decimal_symbol>.</decimal_symbol>
  1459. <grouping_symbol/>
  1460. <currency_symbol/>
  1461. <trim_type>none</trim_type>
  1462. <case_insensitive>N</case_insensitive>
  1463. <collator_disabled>Y</collator_disabled>
  1464. <collator_strength>0</collator_strength>
  1465. <sort_descending>N</sort_descending>
  1466. <output_padding>N</output_padding>
  1467. <date_format_lenient>N</date_format_lenient>
  1468. <date_format_locale>zh_CN</date_format_locale>
  1469. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1470. <lenient_string_to_number>N</lenient_string_to_number>
  1471. </value-meta>
  1472. <value-meta>
  1473. <type>String</type>
  1474. <storagetype>normal</storagetype>
  1475. <name>unit_code</name>
  1476. <length>35</length>
  1477. <precision>-1</precision>
  1478. <origin>表输入</origin>
  1479. <comments>unit_code</comments>
  1480. <conversion_Mask/>
  1481. <decimal_symbol>.</decimal_symbol>
  1482. <grouping_symbol>,</grouping_symbol>
  1483. <currency_symbol/>
  1484. <trim_type>none</trim_type>
  1485. <case_insensitive>N</case_insensitive>
  1486. <collator_disabled>Y</collator_disabled>
  1487. <collator_strength>0</collator_strength>
  1488. <sort_descending>N</sort_descending>
  1489. <output_padding>N</output_padding>
  1490. <date_format_lenient>N</date_format_lenient>
  1491. <date_format_locale>zh_CN</date_format_locale>
  1492. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1493. <lenient_string_to_number>N</lenient_string_to_number>
  1494. </value-meta>
  1495. <value-meta>
  1496. <type>Integer</type>
  1497. <storagetype>normal</storagetype>
  1498. <name>status</name>
  1499. <length>9</length>
  1500. <precision>0</precision>
  1501. <origin>表输入</origin>
  1502. <comments>status</comments>
  1503. <conversion_Mask>####0;-####0</conversion_Mask>
  1504. <decimal_symbol>.</decimal_symbol>
  1505. <grouping_symbol>,</grouping_symbol>
  1506. <currency_symbol/>
  1507. <trim_type>none</trim_type>
  1508. <case_insensitive>N</case_insensitive>
  1509. <collator_disabled>Y</collator_disabled>
  1510. <collator_strength>0</collator_strength>
  1511. <sort_descending>N</sort_descending>
  1512. <output_padding>N</output_padding>
  1513. <date_format_lenient>N</date_format_lenient>
  1514. <date_format_locale>zh_CN</date_format_locale>
  1515. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1516. <lenient_string_to_number>N</lenient_string_to_number>
  1517. </value-meta>
  1518. <value-meta>
  1519. <type>Integer</type>
  1520. <storagetype>normal</storagetype>
  1521. <name>is_close</name>
  1522. <length>9</length>
  1523. <precision>0</precision>
  1524. <origin>表输入</origin>
  1525. <comments>is_close</comments>
  1526. <conversion_Mask>####0;-####0</conversion_Mask>
  1527. <decimal_symbol>.</decimal_symbol>
  1528. <grouping_symbol>,</grouping_symbol>
  1529. <currency_symbol/>
  1530. <trim_type>none</trim_type>
  1531. <case_insensitive>N</case_insensitive>
  1532. <collator_disabled>Y</collator_disabled>
  1533. <collator_strength>0</collator_strength>
  1534. <sort_descending>N</sort_descending>
  1535. <output_padding>N</output_padding>
  1536. <date_format_lenient>N</date_format_lenient>
  1537. <date_format_locale>zh_CN</date_format_locale>
  1538. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1539. <lenient_string_to_number>N</lenient_string_to_number>
  1540. </value-meta>
  1541. <value-meta>
  1542. <type>String</type>
  1543. <storagetype>normal</storagetype>
  1544. <name>sync_name</name>
  1545. <length>50</length>
  1546. <precision>-1</precision>
  1547. <origin>表输入</origin>
  1548. <comments>sync_name</comments>
  1549. <conversion_Mask/>
  1550. <decimal_symbol>.</decimal_symbol>
  1551. <grouping_symbol>,</grouping_symbol>
  1552. <currency_symbol/>
  1553. <trim_type>none</trim_type>
  1554. <case_insensitive>N</case_insensitive>
  1555. <collator_disabled>Y</collator_disabled>
  1556. <collator_strength>0</collator_strength>
  1557. <sort_descending>N</sort_descending>
  1558. <output_padding>N</output_padding>
  1559. <date_format_lenient>N</date_format_lenient>
  1560. <date_format_locale>zh_CN</date_format_locale>
  1561. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1562. <lenient_string_to_number>N</lenient_string_to_number>
  1563. </value-meta>
  1564. <value-meta>
  1565. <type>Integer</type>
  1566. <storagetype>normal</storagetype>
  1567. <name>sync_id</name>
  1568. <length>9</length>
  1569. <precision>0</precision>
  1570. <origin>表输入</origin>
  1571. <comments>sync_id</comments>
  1572. <conversion_Mask>####0;-####0</conversion_Mask>
  1573. <decimal_symbol>.</decimal_symbol>
  1574. <grouping_symbol>,</grouping_symbol>
  1575. <currency_symbol/>
  1576. <trim_type>none</trim_type>
  1577. <case_insensitive>N</case_insensitive>
  1578. <collator_disabled>Y</collator_disabled>
  1579. <collator_strength>0</collator_strength>
  1580. <sort_descending>N</sort_descending>
  1581. <output_padding>N</output_padding>
  1582. <date_format_lenient>N</date_format_lenient>
  1583. <date_format_locale>zh_CN</date_format_locale>
  1584. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1585. <lenient_string_to_number>N</lenient_string_to_number>
  1586. </value-meta>
  1587. <value-meta>
  1588. <type>Timestamp</type>
  1589. <storagetype>normal</storagetype>
  1590. <name>sync_time</name>
  1591. <length>3</length>
  1592. <precision>-1</precision>
  1593. <origin>表输入</origin>
  1594. <comments>sync_time</comments>
  1595. <conversion_Mask/>
  1596. <decimal_symbol>.</decimal_symbol>
  1597. <grouping_symbol>,</grouping_symbol>
  1598. <currency_symbol/>
  1599. <trim_type>none</trim_type>
  1600. <case_insensitive>N</case_insensitive>
  1601. <collator_disabled>Y</collator_disabled>
  1602. <collator_strength>0</collator_strength>
  1603. <sort_descending>N</sort_descending>
  1604. <output_padding>N</output_padding>
  1605. <date_format_lenient>N</date_format_lenient>
  1606. <date_format_locale>zh_CN</date_format_locale>
  1607. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1608. <lenient_string_to_number>N</lenient_string_to_number>
  1609. </value-meta>
  1610. </row-meta>
  1611. <attributes/>
  1612. <cluster_schema/>
  1613. <remotesteps>
  1614. <input>
  1615. </input>
  1616. <output>
  1617. </output>
  1618. </remotesteps>
  1619. <GUI>
  1620. <xloc>48</xloc>
  1621. <yloc>64</yloc>
  1622. <draw>Y</draw>
  1623. </GUI>
  1624. </step>
  1625. <step>
  1626. <name>表输入-mom入库任务</name>
  1627. <type>TableInput</type>
  1628. <description/>
  1629. <distribute>Y</distribute>
  1630. <custom_distribution/>
  1631. <copies>1</copies>
  1632. <partitioning>
  1633. <method>none</method>
  1634. <schema_name/>
  1635. </partitioning>
  1636. <connection>MOM</connection>
  1637. <sql>SELECT
  1638. T2.id AS mom_task_ins_id,
  1639. T2.interface_id AS mom_interface_pid
  1640. FROM wms_task_in T1
  1641. LEFT JOIN wms_task_ins T2 ON T1.id =T2.task_in_id
  1642. WHERE 1=1
  1643. AND T1.interface_id =0${interface_id} AND T1.bill_type_code ='1'</sql>
  1644. <limit>0</limit>
  1645. <lookup/>
  1646. <execute_each_row>N</execute_each_row>
  1647. <variables_active>Y</variables_active>
  1648. <lazy_conversion_active>N</lazy_conversion_active>
  1649. <cached_row_meta_active>N</cached_row_meta_active>
  1650. <row-meta>
  1651. <value-meta>
  1652. <type>String</type>
  1653. <storagetype>normal</storagetype>
  1654. <name>mom_task_ins_id</name>
  1655. <length>20</length>
  1656. <precision>-1</precision>
  1657. <origin>表输入-mom入库任务</origin>
  1658. <comments>mom_task_ins_id</comments>
  1659. <conversion_Mask/>
  1660. <decimal_symbol>.</decimal_symbol>
  1661. <grouping_symbol>,</grouping_symbol>
  1662. <currency_symbol/>
  1663. <trim_type>none</trim_type>
  1664. <case_insensitive>N</case_insensitive>
  1665. <collator_disabled>Y</collator_disabled>
  1666. <collator_strength>0</collator_strength>
  1667. <sort_descending>N</sort_descending>
  1668. <output_padding>N</output_padding>
  1669. <date_format_lenient>N</date_format_lenient>
  1670. <date_format_locale>zh_CN</date_format_locale>
  1671. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1672. <lenient_string_to_number>N</lenient_string_to_number>
  1673. </value-meta>
  1674. <value-meta>
  1675. <type>Integer</type>
  1676. <storagetype>normal</storagetype>
  1677. <name>mom_interface_pid</name>
  1678. <length>9</length>
  1679. <precision>0</precision>
  1680. <origin>表输入-mom入库任务</origin>
  1681. <comments>mom_interface_pid</comments>
  1682. <conversion_Mask>####0;-####0</conversion_Mask>
  1683. <decimal_symbol>.</decimal_symbol>
  1684. <grouping_symbol>,</grouping_symbol>
  1685. <currency_symbol/>
  1686. <trim_type>none</trim_type>
  1687. <case_insensitive>N</case_insensitive>
  1688. <collator_disabled>Y</collator_disabled>
  1689. <collator_strength>0</collator_strength>
  1690. <sort_descending>N</sort_descending>
  1691. <output_padding>N</output_padding>
  1692. <date_format_lenient>N</date_format_lenient>
  1693. <date_format_locale>zh_CN</date_format_locale>
  1694. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1695. <lenient_string_to_number>N</lenient_string_to_number>
  1696. </value-meta>
  1697. </row-meta>
  1698. <attributes/>
  1699. <cluster_schema/>
  1700. <remotesteps>
  1701. <input>
  1702. </input>
  1703. <output>
  1704. </output>
  1705. </remotesteps>
  1706. <GUI>
  1707. <xloc>576</xloc>
  1708. <yloc>176</yloc>
  1709. <draw>Y</draw>
  1710. </GUI>
  1711. </step>
  1712. <step>
  1713. <name>表输入-mom物料档案</name>
  1714. <type>TableInput</type>
  1715. <description/>
  1716. <distribute>Y</distribute>
  1717. <custom_distribution/>
  1718. <copies>1</copies>
  1719. <partitioning>
  1720. <method>none</method>
  1721. <schema_name/>
  1722. </partitioning>
  1723. <connection>MOM</connection>
  1724. <sql>SELECT
  1725. material_code AS mom_material_code
  1726. ,excess_ratio_out AS mom_excess_ratio_out
  1727. ,warehouse_code_out AS mom_warehouse_code
  1728. ,location_code_out AS mom_location_code
  1729. ,CASE WHEN 0${mom_is_back_flush} = 0 AND collect_type = 2 THEN 0 ELSE 1 END AS mom_is_back_flush
  1730. FROM base_material
  1731. </sql>
  1732. <limit>0</limit>
  1733. <lookup/>
  1734. <execute_each_row>N</execute_each_row>
  1735. <variables_active>Y</variables_active>
  1736. <lazy_conversion_active>N</lazy_conversion_active>
  1737. <cached_row_meta_active>N</cached_row_meta_active>
  1738. <row-meta>
  1739. <value-meta>
  1740. <type>String</type>
  1741. <storagetype>normal</storagetype>
  1742. <name>mom_material_code</name>
  1743. <length>50</length>
  1744. <precision>-1</precision>
  1745. <origin>表输入-mom物料档案</origin>
  1746. <comments>mom_material_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. <value-meta>
  1763. <type>BigNumber</type>
  1764. <storagetype>normal</storagetype>
  1765. <name>mom_excess_ratio_out</name>
  1766. <length>24</length>
  1767. <precision>6</precision>
  1768. <origin>表输入-mom物料档案</origin>
  1769. <comments>mom_excess_ratio_out</comments>
  1770. <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
  1771. <decimal_symbol>.</decimal_symbol>
  1772. <grouping_symbol/>
  1773. <currency_symbol/>
  1774. <trim_type>none</trim_type>
  1775. <case_insensitive>N</case_insensitive>
  1776. <collator_disabled>Y</collator_disabled>
  1777. <collator_strength>0</collator_strength>
  1778. <sort_descending>N</sort_descending>
  1779. <output_padding>N</output_padding>
  1780. <date_format_lenient>N</date_format_lenient>
  1781. <date_format_locale>zh_CN</date_format_locale>
  1782. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1783. <lenient_string_to_number>N</lenient_string_to_number>
  1784. </value-meta>
  1785. <value-meta>
  1786. <type>String</type>
  1787. <storagetype>normal</storagetype>
  1788. <name>mom_warehouse_code</name>
  1789. <length>50</length>
  1790. <precision>-1</precision>
  1791. <origin>表输入-mom物料档案</origin>
  1792. <comments>mom_warehouse_code</comments>
  1793. <conversion_Mask/>
  1794. <decimal_symbol>.</decimal_symbol>
  1795. <grouping_symbol>,</grouping_symbol>
  1796. <currency_symbol/>
  1797. <trim_type>none</trim_type>
  1798. <case_insensitive>N</case_insensitive>
  1799. <collator_disabled>Y</collator_disabled>
  1800. <collator_strength>0</collator_strength>
  1801. <sort_descending>N</sort_descending>
  1802. <output_padding>N</output_padding>
  1803. <date_format_lenient>N</date_format_lenient>
  1804. <date_format_locale>zh_CN</date_format_locale>
  1805. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1806. <lenient_string_to_number>N</lenient_string_to_number>
  1807. </value-meta>
  1808. <value-meta>
  1809. <type>String</type>
  1810. <storagetype>normal</storagetype>
  1811. <name>mom_location_code</name>
  1812. <length>50</length>
  1813. <precision>-1</precision>
  1814. <origin>表输入-mom物料档案</origin>
  1815. <comments>mom_location_code</comments>
  1816. <conversion_Mask/>
  1817. <decimal_symbol>.</decimal_symbol>
  1818. <grouping_symbol>,</grouping_symbol>
  1819. <currency_symbol/>
  1820. <trim_type>none</trim_type>
  1821. <case_insensitive>N</case_insensitive>
  1822. <collator_disabled>Y</collator_disabled>
  1823. <collator_strength>0</collator_strength>
  1824. <sort_descending>N</sort_descending>
  1825. <output_padding>N</output_padding>
  1826. <date_format_lenient>N</date_format_lenient>
  1827. <date_format_locale>zh_CN</date_format_locale>
  1828. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1829. <lenient_string_to_number>N</lenient_string_to_number>
  1830. </value-meta>
  1831. <value-meta>
  1832. <type>Integer</type>
  1833. <storagetype>normal</storagetype>
  1834. <name>mom_is_back_flush</name>
  1835. <length>15</length>
  1836. <precision>0</precision>
  1837. <origin>表输入-mom物料档案</origin>
  1838. <comments>mom_is_back_flush</comments>
  1839. <conversion_Mask>####0;-####0</conversion_Mask>
  1840. <decimal_symbol>.</decimal_symbol>
  1841. <grouping_symbol>,</grouping_symbol>
  1842. <currency_symbol/>
  1843. <trim_type>none</trim_type>
  1844. <case_insensitive>N</case_insensitive>
  1845. <collator_disabled>Y</collator_disabled>
  1846. <collator_strength>0</collator_strength>
  1847. <sort_descending>N</sort_descending>
  1848. <output_padding>N</output_padding>
  1849. <date_format_lenient>N</date_format_lenient>
  1850. <date_format_locale>zh_CN</date_format_locale>
  1851. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1852. <lenient_string_to_number>N</lenient_string_to_number>
  1853. </value-meta>
  1854. </row-meta>
  1855. <attributes/>
  1856. <cluster_schema/>
  1857. <remotesteps>
  1858. <input>
  1859. </input>
  1860. <output>
  1861. </output>
  1862. </remotesteps>
  1863. <GUI>
  1864. <xloc>400</xloc>
  1865. <yloc>176</yloc>
  1866. <draw>Y</draw>
  1867. </GUI>
  1868. </step>
  1869. <step>
  1870. <name>表输入-主id</name>
  1871. <type>TableInput</type>
  1872. <description/>
  1873. <distribute>Y</distribute>
  1874. <custom_distribution/>
  1875. <copies>1</copies>
  1876. <partitioning>
  1877. <method>none</method>
  1878. <schema_name/>
  1879. </partitioning>
  1880. <connection>MOM</connection>
  1881. <sql>SELECT
  1882. interface_id as master_interface_id,
  1883. id as mom_task_out_id
  1884. FROM wms_task_out
  1885. WHERE interface_id =0${interface_id} AND bill_type_code ='1' ORDER BY create_time DESC LIMIT 1</sql>
  1886. <limit>0</limit>
  1887. <lookup/>
  1888. <execute_each_row>N</execute_each_row>
  1889. <variables_active>Y</variables_active>
  1890. <lazy_conversion_active>N</lazy_conversion_active>
  1891. <cached_row_meta_active>N</cached_row_meta_active>
  1892. <row-meta>
  1893. <value-meta>
  1894. <type>Integer</type>
  1895. <storagetype>normal</storagetype>
  1896. <name>master_interface_id</name>
  1897. <length>9</length>
  1898. <precision>0</precision>
  1899. <origin>表输入-主id</origin>
  1900. <comments>master_interface_id</comments>
  1901. <conversion_Mask>####0;-####0</conversion_Mask>
  1902. <decimal_symbol>.</decimal_symbol>
  1903. <grouping_symbol>,</grouping_symbol>
  1904. <currency_symbol/>
  1905. <trim_type>none</trim_type>
  1906. <case_insensitive>N</case_insensitive>
  1907. <collator_disabled>Y</collator_disabled>
  1908. <collator_strength>0</collator_strength>
  1909. <sort_descending>N</sort_descending>
  1910. <output_padding>N</output_padding>
  1911. <date_format_lenient>N</date_format_lenient>
  1912. <date_format_locale>zh_CN</date_format_locale>
  1913. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1914. <lenient_string_to_number>N</lenient_string_to_number>
  1915. </value-meta>
  1916. <value-meta>
  1917. <type>String</type>
  1918. <storagetype>normal</storagetype>
  1919. <name>mom_task_out_id</name>
  1920. <length>20</length>
  1921. <precision>-1</precision>
  1922. <origin>表输入-主id</origin>
  1923. <comments>mom_task_out_id</comments>
  1924. <conversion_Mask/>
  1925. <decimal_symbol>.</decimal_symbol>
  1926. <grouping_symbol>,</grouping_symbol>
  1927. <currency_symbol/>
  1928. <trim_type>none</trim_type>
  1929. <case_insensitive>N</case_insensitive>
  1930. <collator_disabled>Y</collator_disabled>
  1931. <collator_strength>0</collator_strength>
  1932. <sort_descending>N</sort_descending>
  1933. <output_padding>N</output_padding>
  1934. <date_format_lenient>N</date_format_lenient>
  1935. <date_format_locale>zh_CN</date_format_locale>
  1936. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1937. <lenient_string_to_number>N</lenient_string_to_number>
  1938. </value-meta>
  1939. </row-meta>
  1940. <attributes/>
  1941. <cluster_schema/>
  1942. <remotesteps>
  1943. <input>
  1944. </input>
  1945. <output>
  1946. </output>
  1947. </remotesteps>
  1948. <GUI>
  1949. <xloc>224</xloc>
  1950. <yloc>176</yloc>
  1951. <draw>Y</draw>
  1952. </GUI>
  1953. </step>
  1954. <step_error_handling>
  1955. </step_error_handling>
  1956. <slave-step-copy-partition-distribution>
  1957. </slave-step-copy-partition-distribution>
  1958. <slave_transformation>N</slave_transformation>
  1959. <attributes/>
  1960. </transformation>