关闭同步.ktr 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270
  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. </parameters>
  13. <log>
  14. <trans-log-table>
  15. <connection/>
  16. <schema/>
  17. <table/>
  18. <size_limit_lines/>
  19. <interval/>
  20. <timeout_days/>
  21. <field>
  22. <id>ID_BATCH</id>
  23. <enabled>Y</enabled>
  24. <name>ID_BATCH</name>
  25. </field>
  26. <field>
  27. <id>CHANNEL_ID</id>
  28. <enabled>Y</enabled>
  29. <name>CHANNEL_ID</name>
  30. </field>
  31. <field>
  32. <id>TRANSNAME</id>
  33. <enabled>Y</enabled>
  34. <name>TRANSNAME</name>
  35. </field>
  36. <field>
  37. <id>STATUS</id>
  38. <enabled>Y</enabled>
  39. <name>STATUS</name>
  40. </field>
  41. <field>
  42. <id>LINES_READ</id>
  43. <enabled>Y</enabled>
  44. <name>LINES_READ</name>
  45. <subject/>
  46. </field>
  47. <field>
  48. <id>LINES_WRITTEN</id>
  49. <enabled>Y</enabled>
  50. <name>LINES_WRITTEN</name>
  51. <subject/>
  52. </field>
  53. <field>
  54. <id>LINES_UPDATED</id>
  55. <enabled>Y</enabled>
  56. <name>LINES_UPDATED</name>
  57. <subject/>
  58. </field>
  59. <field>
  60. <id>LINES_INPUT</id>
  61. <enabled>Y</enabled>
  62. <name>LINES_INPUT</name>
  63. <subject/>
  64. </field>
  65. <field>
  66. <id>LINES_OUTPUT</id>
  67. <enabled>Y</enabled>
  68. <name>LINES_OUTPUT</name>
  69. <subject/>
  70. </field>
  71. <field>
  72. <id>LINES_REJECTED</id>
  73. <enabled>Y</enabled>
  74. <name>LINES_REJECTED</name>
  75. <subject/>
  76. </field>
  77. <field>
  78. <id>ERRORS</id>
  79. <enabled>Y</enabled>
  80. <name>ERRORS</name>
  81. </field>
  82. <field>
  83. <id>STARTDATE</id>
  84. <enabled>Y</enabled>
  85. <name>STARTDATE</name>
  86. </field>
  87. <field>
  88. <id>ENDDATE</id>
  89. <enabled>Y</enabled>
  90. <name>ENDDATE</name>
  91. </field>
  92. <field>
  93. <id>LOGDATE</id>
  94. <enabled>Y</enabled>
  95. <name>LOGDATE</name>
  96. </field>
  97. <field>
  98. <id>DEPDATE</id>
  99. <enabled>Y</enabled>
  100. <name>DEPDATE</name>
  101. </field>
  102. <field>
  103. <id>REPLAYDATE</id>
  104. <enabled>Y</enabled>
  105. <name>REPLAYDATE</name>
  106. </field>
  107. <field>
  108. <id>LOG_FIELD</id>
  109. <enabled>Y</enabled>
  110. <name>LOG_FIELD</name>
  111. </field>
  112. <field>
  113. <id>EXECUTING_SERVER</id>
  114. <enabled>N</enabled>
  115. <name>EXECUTING_SERVER</name>
  116. </field>
  117. <field>
  118. <id>EXECUTING_USER</id>
  119. <enabled>N</enabled>
  120. <name>EXECUTING_USER</name>
  121. </field>
  122. <field>
  123. <id>CLIENT</id>
  124. <enabled>N</enabled>
  125. <name>CLIENT</name>
  126. </field>
  127. </trans-log-table>
  128. <perf-log-table>
  129. <connection/>
  130. <schema/>
  131. <table/>
  132. <interval/>
  133. <timeout_days/>
  134. <field>
  135. <id>ID_BATCH</id>
  136. <enabled>Y</enabled>
  137. <name>ID_BATCH</name>
  138. </field>
  139. <field>
  140. <id>SEQ_NR</id>
  141. <enabled>Y</enabled>
  142. <name>SEQ_NR</name>
  143. </field>
  144. <field>
  145. <id>LOGDATE</id>
  146. <enabled>Y</enabled>
  147. <name>LOGDATE</name>
  148. </field>
  149. <field>
  150. <id>TRANSNAME</id>
  151. <enabled>Y</enabled>
  152. <name>TRANSNAME</name>
  153. </field>
  154. <field>
  155. <id>STEPNAME</id>
  156. <enabled>Y</enabled>
  157. <name>STEPNAME</name>
  158. </field>
  159. <field>
  160. <id>STEP_COPY</id>
  161. <enabled>Y</enabled>
  162. <name>STEP_COPY</name>
  163. </field>
  164. <field>
  165. <id>LINES_READ</id>
  166. <enabled>Y</enabled>
  167. <name>LINES_READ</name>
  168. </field>
  169. <field>
  170. <id>LINES_WRITTEN</id>
  171. <enabled>Y</enabled>
  172. <name>LINES_WRITTEN</name>
  173. </field>
  174. <field>
  175. <id>LINES_UPDATED</id>
  176. <enabled>Y</enabled>
  177. <name>LINES_UPDATED</name>
  178. </field>
  179. <field>
  180. <id>LINES_INPUT</id>
  181. <enabled>Y</enabled>
  182. <name>LINES_INPUT</name>
  183. </field>
  184. <field>
  185. <id>LINES_OUTPUT</id>
  186. <enabled>Y</enabled>
  187. <name>LINES_OUTPUT</name>
  188. </field>
  189. <field>
  190. <id>LINES_REJECTED</id>
  191. <enabled>Y</enabled>
  192. <name>LINES_REJECTED</name>
  193. </field>
  194. <field>
  195. <id>ERRORS</id>
  196. <enabled>Y</enabled>
  197. <name>ERRORS</name>
  198. </field>
  199. <field>
  200. <id>INPUT_BUFFER_ROWS</id>
  201. <enabled>Y</enabled>
  202. <name>INPUT_BUFFER_ROWS</name>
  203. </field>
  204. <field>
  205. <id>OUTPUT_BUFFER_ROWS</id>
  206. <enabled>Y</enabled>
  207. <name>OUTPUT_BUFFER_ROWS</name>
  208. </field>
  209. </perf-log-table>
  210. <channel-log-table>
  211. <connection/>
  212. <schema/>
  213. <table/>
  214. <timeout_days/>
  215. <field>
  216. <id>ID_BATCH</id>
  217. <enabled>Y</enabled>
  218. <name>ID_BATCH</name>
  219. </field>
  220. <field>
  221. <id>CHANNEL_ID</id>
  222. <enabled>Y</enabled>
  223. <name>CHANNEL_ID</name>
  224. </field>
  225. <field>
  226. <id>LOG_DATE</id>
  227. <enabled>Y</enabled>
  228. <name>LOG_DATE</name>
  229. </field>
  230. <field>
  231. <id>LOGGING_OBJECT_TYPE</id>
  232. <enabled>Y</enabled>
  233. <name>LOGGING_OBJECT_TYPE</name>
  234. </field>
  235. <field>
  236. <id>OBJECT_NAME</id>
  237. <enabled>Y</enabled>
  238. <name>OBJECT_NAME</name>
  239. </field>
  240. <field>
  241. <id>OBJECT_COPY</id>
  242. <enabled>Y</enabled>
  243. <name>OBJECT_COPY</name>
  244. </field>
  245. <field>
  246. <id>REPOSITORY_DIRECTORY</id>
  247. <enabled>Y</enabled>
  248. <name>REPOSITORY_DIRECTORY</name>
  249. </field>
  250. <field>
  251. <id>FILENAME</id>
  252. <enabled>Y</enabled>
  253. <name>FILENAME</name>
  254. </field>
  255. <field>
  256. <id>OBJECT_ID</id>
  257. <enabled>Y</enabled>
  258. <name>OBJECT_ID</name>
  259. </field>
  260. <field>
  261. <id>OBJECT_REVISION</id>
  262. <enabled>Y</enabled>
  263. <name>OBJECT_REVISION</name>
  264. </field>
  265. <field>
  266. <id>PARENT_CHANNEL_ID</id>
  267. <enabled>Y</enabled>
  268. <name>PARENT_CHANNEL_ID</name>
  269. </field>
  270. <field>
  271. <id>ROOT_CHANNEL_ID</id>
  272. <enabled>Y</enabled>
  273. <name>ROOT_CHANNEL_ID</name>
  274. </field>
  275. </channel-log-table>
  276. <step-log-table>
  277. <connection/>
  278. <schema/>
  279. <table/>
  280. <timeout_days/>
  281. <field>
  282. <id>ID_BATCH</id>
  283. <enabled>Y</enabled>
  284. <name>ID_BATCH</name>
  285. </field>
  286. <field>
  287. <id>CHANNEL_ID</id>
  288. <enabled>Y</enabled>
  289. <name>CHANNEL_ID</name>
  290. </field>
  291. <field>
  292. <id>LOG_DATE</id>
  293. <enabled>Y</enabled>
  294. <name>LOG_DATE</name>
  295. </field>
  296. <field>
  297. <id>TRANSNAME</id>
  298. <enabled>Y</enabled>
  299. <name>TRANSNAME</name>
  300. </field>
  301. <field>
  302. <id>STEPNAME</id>
  303. <enabled>Y</enabled>
  304. <name>STEPNAME</name>
  305. </field>
  306. <field>
  307. <id>STEP_COPY</id>
  308. <enabled>Y</enabled>
  309. <name>STEP_COPY</name>
  310. </field>
  311. <field>
  312. <id>LINES_READ</id>
  313. <enabled>Y</enabled>
  314. <name>LINES_READ</name>
  315. </field>
  316. <field>
  317. <id>LINES_WRITTEN</id>
  318. <enabled>Y</enabled>
  319. <name>LINES_WRITTEN</name>
  320. </field>
  321. <field>
  322. <id>LINES_UPDATED</id>
  323. <enabled>Y</enabled>
  324. <name>LINES_UPDATED</name>
  325. </field>
  326. <field>
  327. <id>LINES_INPUT</id>
  328. <enabled>Y</enabled>
  329. <name>LINES_INPUT</name>
  330. </field>
  331. <field>
  332. <id>LINES_OUTPUT</id>
  333. <enabled>Y</enabled>
  334. <name>LINES_OUTPUT</name>
  335. </field>
  336. <field>
  337. <id>LINES_REJECTED</id>
  338. <enabled>Y</enabled>
  339. <name>LINES_REJECTED</name>
  340. </field>
  341. <field>
  342. <id>ERRORS</id>
  343. <enabled>Y</enabled>
  344. <name>ERRORS</name>
  345. </field>
  346. <field>
  347. <id>LOG_FIELD</id>
  348. <enabled>N</enabled>
  349. <name>LOG_FIELD</name>
  350. </field>
  351. </step-log-table>
  352. <metrics-log-table>
  353. <connection/>
  354. <schema/>
  355. <table/>
  356. <timeout_days/>
  357. <field>
  358. <id>ID_BATCH</id>
  359. <enabled>Y</enabled>
  360. <name>ID_BATCH</name>
  361. </field>
  362. <field>
  363. <id>CHANNEL_ID</id>
  364. <enabled>Y</enabled>
  365. <name>CHANNEL_ID</name>
  366. </field>
  367. <field>
  368. <id>LOG_DATE</id>
  369. <enabled>Y</enabled>
  370. <name>LOG_DATE</name>
  371. </field>
  372. <field>
  373. <id>METRICS_DATE</id>
  374. <enabled>Y</enabled>
  375. <name>METRICS_DATE</name>
  376. </field>
  377. <field>
  378. <id>METRICS_CODE</id>
  379. <enabled>Y</enabled>
  380. <name>METRICS_CODE</name>
  381. </field>
  382. <field>
  383. <id>METRICS_DESCRIPTION</id>
  384. <enabled>Y</enabled>
  385. <name>METRICS_DESCRIPTION</name>
  386. </field>
  387. <field>
  388. <id>METRICS_SUBJECT</id>
  389. <enabled>Y</enabled>
  390. <name>METRICS_SUBJECT</name>
  391. </field>
  392. <field>
  393. <id>METRICS_TYPE</id>
  394. <enabled>Y</enabled>
  395. <name>METRICS_TYPE</name>
  396. </field>
  397. <field>
  398. <id>METRICS_VALUE</id>
  399. <enabled>Y</enabled>
  400. <name>METRICS_VALUE</name>
  401. </field>
  402. </metrics-log-table>
  403. </log>
  404. <maxdate>
  405. <connection/>
  406. <table/>
  407. <field/>
  408. <offset>0.0</offset>
  409. <maxdiff>0.0</maxdiff>
  410. </maxdate>
  411. <size_rowset>10000</size_rowset>
  412. <sleep_time_empty>50</sleep_time_empty>
  413. <sleep_time_full>50</sleep_time_full>
  414. <unique_connections>N</unique_connections>
  415. <feedback_shown>Y</feedback_shown>
  416. <feedback_size>50000</feedback_size>
  417. <using_thread_priorities>Y</using_thread_priorities>
  418. <shared_objects_file/>
  419. <capture_step_performance>N</capture_step_performance>
  420. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  421. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  422. <dependencies>
  423. </dependencies>
  424. <partitionschemas>
  425. </partitionschemas>
  426. <slaveservers>
  427. </slaveservers>
  428. <clusterschemas>
  429. </clusterschemas>
  430. <created_user>-</created_user>
  431. <created_date>2024/05/07 09:50:07.874</created_date>
  432. <modified_user>-</modified_user>
  433. <modified_date>2024/05/07 09:50:07.874</modified_date>
  434. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  435. <is_key_private>N</is_key_private>
  436. </info>
  437. <notepads>
  438. </notepads>
  439. <connection>
  440. <name>MOM</name>
  441. <server>${mysql_host}</server>
  442. <type>MYSQL</type>
  443. <access>Native</access>
  444. <database>${mysql_dbname}</database>
  445. <port>3306</port>
  446. <username>${mysql_username}</username>
  447. <password>${mysql_password}</password>
  448. <servername/>
  449. <data_tablespace/>
  450. <index_tablespace/>
  451. <attributes>
  452. <attribute>
  453. <code>EXTRA_OPTION_MYSQL.characterEncoding</code>
  454. <attribute>utf-8</attribute>
  455. </attribute>
  456. <attribute>
  457. <code>EXTRA_OPTION_MYSQL.defaultFetchSize</code>
  458. <attribute>5000</attribute>
  459. </attribute>
  460. <attribute>
  461. <code>EXTRA_OPTION_MYSQL.rewriteBatchedStatements</code>
  462. <attribute>true</attribute>
  463. </attribute>
  464. <attribute>
  465. <code>EXTRA_OPTION_MYSQL.useCompression</code>
  466. <attribute>true</attribute>
  467. </attribute>
  468. <attribute>
  469. <code>EXTRA_OPTION_MYSQL.useCursorFetch</code>
  470. <attribute>true</attribute>
  471. </attribute>
  472. <attribute>
  473. <code>EXTRA_OPTION_MYSQL.useServerPrepStmts</code>
  474. <attribute>true</attribute>
  475. </attribute>
  476. <attribute>
  477. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  478. <attribute>N</attribute>
  479. </attribute>
  480. <attribute>
  481. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  482. <attribute>N</attribute>
  483. </attribute>
  484. <attribute>
  485. <code>IS_CLUSTERED</code>
  486. <attribute>N</attribute>
  487. </attribute>
  488. <attribute>
  489. <code>PORT_NUMBER</code>
  490. <attribute>3306</attribute>
  491. </attribute>
  492. <attribute>
  493. <code>PRESERVE_RESERVED_WORD_CASE</code>
  494. <attribute>Y</attribute>
  495. </attribute>
  496. <attribute>
  497. <code>QUOTE_ALL_FIELDS</code>
  498. <attribute>N</attribute>
  499. </attribute>
  500. <attribute>
  501. <code>STREAM_RESULTS</code>
  502. <attribute>N</attribute>
  503. </attribute>
  504. <attribute>
  505. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  506. <attribute>Y</attribute>
  507. </attribute>
  508. <attribute>
  509. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  510. <attribute>Y</attribute>
  511. </attribute>
  512. <attribute>
  513. <code>USE_POOLING</code>
  514. <attribute>N</attribute>
  515. </attribute>
  516. </attributes>
  517. </connection>
  518. <connection>
  519. <name>U8</name>
  520. <server>${U8DB_HOST}</server>
  521. <type>GENERIC</type>
  522. <access>Native</access>
  523. <database>${U8DB_NAME}</database>
  524. <port>1433</port>
  525. <username>${sqlserver_username}</username>
  526. <password>${sqlserver_password}</password>
  527. <servername/>
  528. <data_tablespace/>
  529. <index_tablespace/>
  530. <attributes>
  531. <attribute>
  532. <code>CUSTOM_DRIVER_CLASS</code>
  533. <attribute>${sqlserver_driverclassname}</attribute>
  534. </attribute>
  535. <attribute>
  536. <code>CUSTOM_URL</code>
  537. <attribute>${sqlserver_url}</attribute>
  538. </attribute>
  539. <attribute>
  540. <code>DATABASE_DIALECT_ID</code>
  541. <attribute>Generic database</attribute>
  542. </attribute>
  543. <attribute>
  544. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  545. <attribute>N</attribute>
  546. </attribute>
  547. <attribute>
  548. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  549. <attribute>N</attribute>
  550. </attribute>
  551. <attribute>
  552. <code>IS_CLUSTERED</code>
  553. <attribute>N</attribute>
  554. </attribute>
  555. <attribute>
  556. <code>PORT_NUMBER</code>
  557. <attribute>1433</attribute>
  558. </attribute>
  559. <attribute>
  560. <code>PRESERVE_RESERVED_WORD_CASE</code>
  561. <attribute>Y</attribute>
  562. </attribute>
  563. <attribute>
  564. <code>QUOTE_ALL_FIELDS</code>
  565. <attribute>N</attribute>
  566. </attribute>
  567. <attribute>
  568. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  569. <attribute>Y</attribute>
  570. </attribute>
  571. <attribute>
  572. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  573. <attribute>Y</attribute>
  574. </attribute>
  575. <attribute>
  576. <code>USE_POOLING</code>
  577. <attribute>N</attribute>
  578. </attribute>
  579. </attributes>
  580. </connection>
  581. <order>
  582. <hop>
  583. <from>表输入-生产订单产品</from>
  584. <to>更新-生产订单产品</to>
  585. <enabled>N</enabled>
  586. </hop>
  587. <hop>
  588. <from>表输入-生产订单材料</from>
  589. <to>更新-生产订单材料</to>
  590. <enabled>Y</enabled>
  591. </hop>
  592. <hop>
  593. <from>获取变量</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. </order>
  603. <step>
  604. <name>更新-生产订单产品</name>
  605. <type>Update</type>
  606. <description/>
  607. <distribute>Y</distribute>
  608. <custom_distribution/>
  609. <copies>1</copies>
  610. <partitioning>
  611. <method>none</method>
  612. <schema_name/>
  613. </partitioning>
  614. <connection>MOM</connection>
  615. <skip_lookup>N</skip_lookup>
  616. <commit>1000</commit>
  617. <use_batch>Y</use_batch>
  618. <error_ignored>Y</error_ignored>
  619. <ignore_flag_field/>
  620. <lookup>
  621. <schema>cath_mom</schema>
  622. <table>wms_task_ins</table>
  623. <key>
  624. <name>interface_id</name>
  625. <field>interface_id</field>
  626. <condition>=</condition>
  627. <name2/>
  628. </key>
  629. <key>
  630. <name>CloseStatus</name>
  631. <field>is_close</field>
  632. <condition>=</condition>
  633. <name2/>
  634. </key>
  635. <value>
  636. <name>is_close</name>
  637. <rename>is_close</rename>
  638. </value>
  639. <value>
  640. <name>close_by</name>
  641. <rename>CloseUser</rename>
  642. </value>
  643. <value>
  644. <name>close_time</name>
  645. <rename>CloseTime</rename>
  646. </value>
  647. </lookup>
  648. <attributes/>
  649. <cluster_schema/>
  650. <remotesteps>
  651. <input>
  652. </input>
  653. <output>
  654. </output>
  655. </remotesteps>
  656. <GUI>
  657. <xloc>544</xloc>
  658. <yloc>32</yloc>
  659. <draw>Y</draw>
  660. </GUI>
  661. </step>
  662. <step>
  663. <name>更新-生产订单材料</name>
  664. <type>Update</type>
  665. <description/>
  666. <distribute>Y</distribute>
  667. <custom_distribution/>
  668. <copies>1</copies>
  669. <partitioning>
  670. <method>none</method>
  671. <schema_name/>
  672. </partitioning>
  673. <connection>MOM</connection>
  674. <skip_lookup>N</skip_lookup>
  675. <commit>1000</commit>
  676. <use_batch>Y</use_batch>
  677. <error_ignored>Y</error_ignored>
  678. <ignore_flag_field/>
  679. <lookup>
  680. <schema>cath_mom</schema>
  681. <table>wms_task_outs</table>
  682. <key>
  683. <name>interface_pid</name>
  684. <field>interface_pid</field>
  685. <condition>=</condition>
  686. <name2/>
  687. </key>
  688. <key>
  689. <name>CloseStatus</name>
  690. <field>is_close</field>
  691. <condition>=</condition>
  692. <name2/>
  693. </key>
  694. <value>
  695. <name>is_close</name>
  696. <rename>is_close</rename>
  697. </value>
  698. <value>
  699. <name>close_by</name>
  700. <rename>CloseUser</rename>
  701. </value>
  702. <value>
  703. <name>close_time</name>
  704. <rename>CloseTime</rename>
  705. </value>
  706. </lookup>
  707. <attributes/>
  708. <cluster_schema/>
  709. <remotesteps>
  710. <input>
  711. </input>
  712. <output>
  713. </output>
  714. </remotesteps>
  715. <GUI>
  716. <xloc>544</xloc>
  717. <yloc>144</yloc>
  718. <draw>Y</draw>
  719. </GUI>
  720. </step>
  721. <step>
  722. <name>表输入-生产订单产品</name>
  723. <type>TableInput</type>
  724. <description/>
  725. <distribute>Y</distribute>
  726. <custom_distribution/>
  727. <copies>1</copies>
  728. <partitioning>
  729. <method>none</method>
  730. <schema_name/>
  731. </partitioning>
  732. <connection>U8</connection>
  733. <sql>DECLARE @BEGIN_DATE DATE,@END_DATE DATE
  734. SET @BEGIN_DATE = DATEADD(WEEK, -1, CONVERT(VARCHAR(100), GETDATE(), 23))
  735. SET @END_DATE = CONVERT(VARCHAR(100), GETDATE(), 23)
  736. SELECT
  737. T2.MoDId AS interface_id
  738. ,0 AS is_close
  739. ,1 AS CloseStatus
  740. ,GETDATE() CloseTime
  741. ,'管理员(kettle)' CloseUser
  742. FROM mom_order T1
  743. LEFT JOIN mom_orderdetail T2 ON T1.MoId =T2.MoId
  744. LEFT JOIN mom_morder T4 ON T2.MoDId =T4.MoDId
  745. WHERE 1=1
  746. AND T2.Status =4 --3已审核4关闭
  747. AND CONVERT(DATE,T2.CloseTime) BETWEEN @BEGIN_DATE AND @END_DATE
  748. </sql>
  749. <limit>0</limit>
  750. <lookup/>
  751. <execute_each_row>N</execute_each_row>
  752. <variables_active>Y</variables_active>
  753. <lazy_conversion_active>N</lazy_conversion_active>
  754. <cached_row_meta_active>N</cached_row_meta_active>
  755. <row-meta>
  756. <value-meta>
  757. <type>Integer</type>
  758. <storagetype>normal</storagetype>
  759. <name>interface_id</name>
  760. <length>9</length>
  761. <precision>0</precision>
  762. <origin>表输入-生产订单产品</origin>
  763. <comments>interface_id</comments>
  764. <conversion_Mask>####0;-####0</conversion_Mask>
  765. <decimal_symbol>.</decimal_symbol>
  766. <grouping_symbol>,</grouping_symbol>
  767. <currency_symbol/>
  768. <trim_type>none</trim_type>
  769. <case_insensitive>N</case_insensitive>
  770. <collator_disabled>Y</collator_disabled>
  771. <collator_strength>0</collator_strength>
  772. <sort_descending>N</sort_descending>
  773. <output_padding>N</output_padding>
  774. <date_format_lenient>N</date_format_lenient>
  775. <date_format_locale>zh_CN</date_format_locale>
  776. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  777. <lenient_string_to_number>N</lenient_string_to_number>
  778. </value-meta>
  779. <value-meta>
  780. <type>Integer</type>
  781. <storagetype>normal</storagetype>
  782. <name>is_close</name>
  783. <length>9</length>
  784. <precision>0</precision>
  785. <origin>表输入-生产订单产品</origin>
  786. <comments>is_close</comments>
  787. <conversion_Mask>####0;-####0</conversion_Mask>
  788. <decimal_symbol>.</decimal_symbol>
  789. <grouping_symbol>,</grouping_symbol>
  790. <currency_symbol/>
  791. <trim_type>none</trim_type>
  792. <case_insensitive>N</case_insensitive>
  793. <collator_disabled>Y</collator_disabled>
  794. <collator_strength>0</collator_strength>
  795. <sort_descending>N</sort_descending>
  796. <output_padding>N</output_padding>
  797. <date_format_lenient>N</date_format_lenient>
  798. <date_format_locale>zh_CN</date_format_locale>
  799. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  800. <lenient_string_to_number>N</lenient_string_to_number>
  801. </value-meta>
  802. <value-meta>
  803. <type>Integer</type>
  804. <storagetype>normal</storagetype>
  805. <name>CloseStatus</name>
  806. <length>9</length>
  807. <precision>0</precision>
  808. <origin>表输入-生产订单产品</origin>
  809. <comments>CloseStatus</comments>
  810. <conversion_Mask>####0;-####0</conversion_Mask>
  811. <decimal_symbol>.</decimal_symbol>
  812. <grouping_symbol>,</grouping_symbol>
  813. <currency_symbol/>
  814. <trim_type>none</trim_type>
  815. <case_insensitive>N</case_insensitive>
  816. <collator_disabled>Y</collator_disabled>
  817. <collator_strength>0</collator_strength>
  818. <sort_descending>N</sort_descending>
  819. <output_padding>N</output_padding>
  820. <date_format_lenient>N</date_format_lenient>
  821. <date_format_locale>zh_CN</date_format_locale>
  822. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  823. <lenient_string_to_number>N</lenient_string_to_number>
  824. </value-meta>
  825. <value-meta>
  826. <type>Timestamp</type>
  827. <storagetype>normal</storagetype>
  828. <name>CloseTime</name>
  829. <length>3</length>
  830. <precision>-1</precision>
  831. <origin>表输入-生产订单产品</origin>
  832. <comments>CloseTime</comments>
  833. <conversion_Mask/>
  834. <decimal_symbol>.</decimal_symbol>
  835. <grouping_symbol>,</grouping_symbol>
  836. <currency_symbol/>
  837. <trim_type>none</trim_type>
  838. <case_insensitive>N</case_insensitive>
  839. <collator_disabled>Y</collator_disabled>
  840. <collator_strength>0</collator_strength>
  841. <sort_descending>N</sort_descending>
  842. <output_padding>N</output_padding>
  843. <date_format_lenient>N</date_format_lenient>
  844. <date_format_locale>zh_CN</date_format_locale>
  845. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  846. <lenient_string_to_number>N</lenient_string_to_number>
  847. </value-meta>
  848. <value-meta>
  849. <type>String</type>
  850. <storagetype>normal</storagetype>
  851. <name>CloseUser</name>
  852. <length>14</length>
  853. <precision>-1</precision>
  854. <origin>表输入-生产订单产品</origin>
  855. <comments>CloseUser</comments>
  856. <conversion_Mask/>
  857. <decimal_symbol>.</decimal_symbol>
  858. <grouping_symbol>,</grouping_symbol>
  859. <currency_symbol/>
  860. <trim_type>none</trim_type>
  861. <case_insensitive>N</case_insensitive>
  862. <collator_disabled>Y</collator_disabled>
  863. <collator_strength>0</collator_strength>
  864. <sort_descending>N</sort_descending>
  865. <output_padding>N</output_padding>
  866. <date_format_lenient>N</date_format_lenient>
  867. <date_format_locale>zh_CN</date_format_locale>
  868. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  869. <lenient_string_to_number>N</lenient_string_to_number>
  870. </value-meta>
  871. </row-meta>
  872. <attributes/>
  873. <cluster_schema/>
  874. <remotesteps>
  875. <input>
  876. </input>
  877. <output>
  878. </output>
  879. </remotesteps>
  880. <GUI>
  881. <xloc>272</xloc>
  882. <yloc>32</yloc>
  883. <draw>Y</draw>
  884. </GUI>
  885. </step>
  886. <step>
  887. <name>表输入-生产订单材料</name>
  888. <type>TableInput</type>
  889. <description/>
  890. <distribute>Y</distribute>
  891. <custom_distribution/>
  892. <copies>1</copies>
  893. <partitioning>
  894. <method>none</method>
  895. <schema_name/>
  896. </partitioning>
  897. <connection>U8</connection>
  898. <sql>DECLARE @BEGIN_DATE DATE,@END_DATE DATE
  899. SET @BEGIN_DATE = DATEADD(WEEK, -1, CONVERT(VARCHAR(100), GETDATE(), 23))
  900. SET @END_DATE = CONVERT(VARCHAR(100), GETDATE(), 23)
  901. SELECT
  902. T2.MoDId AS interface_pid
  903. ,0 AS is_close
  904. ,1 AS CloseStatus
  905. ,GETDATE() CloseTime
  906. ,'管理员(kettle)' CloseUser
  907. FROM mom_order T1
  908. LEFT JOIN mom_orderdetail T2 ON T1.MoId =T2.MoId
  909. LEFT JOIN mom_morder T4 ON T2.MoDId =T4.MoDId
  910. WHERE 1=1
  911. AND T2.Status =4 --3已审核4关闭
  912. AND CONVERT(DATE,T2.CloseTime) BETWEEN @BEGIN_DATE AND @END_DATE
  913. </sql>
  914. <limit>0</limit>
  915. <lookup/>
  916. <execute_each_row>N</execute_each_row>
  917. <variables_active>N</variables_active>
  918. <lazy_conversion_active>N</lazy_conversion_active>
  919. <cached_row_meta_active>N</cached_row_meta_active>
  920. <row-meta>
  921. <value-meta>
  922. <type>Integer</type>
  923. <storagetype>normal</storagetype>
  924. <name>interface_pid</name>
  925. <length>9</length>
  926. <precision>0</precision>
  927. <origin>表输入-生产订单材料</origin>
  928. <comments>interface_pid</comments>
  929. <conversion_Mask>####0;-####0</conversion_Mask>
  930. <decimal_symbol>.</decimal_symbol>
  931. <grouping_symbol>,</grouping_symbol>
  932. <currency_symbol/>
  933. <trim_type>none</trim_type>
  934. <case_insensitive>N</case_insensitive>
  935. <collator_disabled>Y</collator_disabled>
  936. <collator_strength>0</collator_strength>
  937. <sort_descending>N</sort_descending>
  938. <output_padding>N</output_padding>
  939. <date_format_lenient>N</date_format_lenient>
  940. <date_format_locale>zh_CN</date_format_locale>
  941. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  942. <lenient_string_to_number>N</lenient_string_to_number>
  943. </value-meta>
  944. <value-meta>
  945. <type>Integer</type>
  946. <storagetype>normal</storagetype>
  947. <name>is_close</name>
  948. <length>9</length>
  949. <precision>0</precision>
  950. <origin>表输入-生产订单材料</origin>
  951. <comments>is_close</comments>
  952. <conversion_Mask>####0;-####0</conversion_Mask>
  953. <decimal_symbol>.</decimal_symbol>
  954. <grouping_symbol>,</grouping_symbol>
  955. <currency_symbol/>
  956. <trim_type>none</trim_type>
  957. <case_insensitive>N</case_insensitive>
  958. <collator_disabled>Y</collator_disabled>
  959. <collator_strength>0</collator_strength>
  960. <sort_descending>N</sort_descending>
  961. <output_padding>N</output_padding>
  962. <date_format_lenient>N</date_format_lenient>
  963. <date_format_locale>zh_CN</date_format_locale>
  964. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  965. <lenient_string_to_number>N</lenient_string_to_number>
  966. </value-meta>
  967. <value-meta>
  968. <type>Integer</type>
  969. <storagetype>normal</storagetype>
  970. <name>CloseStatus</name>
  971. <length>9</length>
  972. <precision>0</precision>
  973. <origin>表输入-生产订单材料</origin>
  974. <comments>CloseStatus</comments>
  975. <conversion_Mask>####0;-####0</conversion_Mask>
  976. <decimal_symbol>.</decimal_symbol>
  977. <grouping_symbol>,</grouping_symbol>
  978. <currency_symbol/>
  979. <trim_type>none</trim_type>
  980. <case_insensitive>N</case_insensitive>
  981. <collator_disabled>Y</collator_disabled>
  982. <collator_strength>0</collator_strength>
  983. <sort_descending>N</sort_descending>
  984. <output_padding>N</output_padding>
  985. <date_format_lenient>N</date_format_lenient>
  986. <date_format_locale>zh_CN</date_format_locale>
  987. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  988. <lenient_string_to_number>N</lenient_string_to_number>
  989. </value-meta>
  990. <value-meta>
  991. <type>Timestamp</type>
  992. <storagetype>normal</storagetype>
  993. <name>CloseTime</name>
  994. <length>3</length>
  995. <precision>-1</precision>
  996. <origin>表输入-生产订单材料</origin>
  997. <comments>CloseTime</comments>
  998. <conversion_Mask/>
  999. <decimal_symbol>.</decimal_symbol>
  1000. <grouping_symbol>,</grouping_symbol>
  1001. <currency_symbol/>
  1002. <trim_type>none</trim_type>
  1003. <case_insensitive>N</case_insensitive>
  1004. <collator_disabled>Y</collator_disabled>
  1005. <collator_strength>0</collator_strength>
  1006. <sort_descending>N</sort_descending>
  1007. <output_padding>N</output_padding>
  1008. <date_format_lenient>N</date_format_lenient>
  1009. <date_format_locale>zh_CN</date_format_locale>
  1010. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1011. <lenient_string_to_number>N</lenient_string_to_number>
  1012. </value-meta>
  1013. <value-meta>
  1014. <type>String</type>
  1015. <storagetype>normal</storagetype>
  1016. <name>CloseUser</name>
  1017. <length>14</length>
  1018. <precision>-1</precision>
  1019. <origin>表输入-生产订单材料</origin>
  1020. <comments>CloseUser</comments>
  1021. <conversion_Mask/>
  1022. <decimal_symbol>.</decimal_symbol>
  1023. <grouping_symbol>,</grouping_symbol>
  1024. <currency_symbol/>
  1025. <trim_type>none</trim_type>
  1026. <case_insensitive>N</case_insensitive>
  1027. <collator_disabled>Y</collator_disabled>
  1028. <collator_strength>0</collator_strength>
  1029. <sort_descending>N</sort_descending>
  1030. <output_padding>N</output_padding>
  1031. <date_format_lenient>N</date_format_lenient>
  1032. <date_format_locale>zh_CN</date_format_locale>
  1033. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1034. <lenient_string_to_number>N</lenient_string_to_number>
  1035. </value-meta>
  1036. </row-meta>
  1037. <attributes/>
  1038. <cluster_schema/>
  1039. <remotesteps>
  1040. <input>
  1041. </input>
  1042. <output>
  1043. </output>
  1044. </remotesteps>
  1045. <GUI>
  1046. <xloc>272</xloc>
  1047. <yloc>144</yloc>
  1048. <draw>Y</draw>
  1049. </GUI>
  1050. </step>
  1051. <step>
  1052. <name>获取变量</name>
  1053. <type>GetVariable</type>
  1054. <description/>
  1055. <distribute>Y</distribute>
  1056. <custom_distribution/>
  1057. <copies>1</copies>
  1058. <partitioning>
  1059. <method>none</method>
  1060. <schema_name/>
  1061. </partitioning>
  1062. <fields>
  1063. <field>
  1064. <name>mysql_driverclassname</name>
  1065. <variable>${mysql_driverclassname}</variable>
  1066. <type>String</type>
  1067. <format/>
  1068. <currency/>
  1069. <decimal/>
  1070. <group/>
  1071. <length>-1</length>
  1072. <precision>-1</precision>
  1073. <trim_type>none</trim_type>
  1074. </field>
  1075. <field>
  1076. <name>mysql_password</name>
  1077. <variable>${mysql_password}</variable>
  1078. <type>String</type>
  1079. <format/>
  1080. <currency/>
  1081. <decimal/>
  1082. <group/>
  1083. <length>-1</length>
  1084. <precision>-1</precision>
  1085. <trim_type>none</trim_type>
  1086. </field>
  1087. <field>
  1088. <name>mysql_url</name>
  1089. <variable>${mysql_url}</variable>
  1090. <type>String</type>
  1091. <format/>
  1092. <currency/>
  1093. <decimal/>
  1094. <group/>
  1095. <length>-1</length>
  1096. <precision>-1</precision>
  1097. <trim_type>none</trim_type>
  1098. </field>
  1099. <field>
  1100. <name>mysql_username</name>
  1101. <variable>${mysql_username}</variable>
  1102. <type>String</type>
  1103. <format/>
  1104. <currency/>
  1105. <decimal/>
  1106. <group/>
  1107. <length>-1</length>
  1108. <precision>-1</precision>
  1109. <trim_type>none</trim_type>
  1110. </field>
  1111. <field>
  1112. <name>USER_ID</name>
  1113. <variable>${USER_ID}</variable>
  1114. <type>String</type>
  1115. <format/>
  1116. <currency/>
  1117. <decimal/>
  1118. <group/>
  1119. <length>-1</length>
  1120. <precision>-1</precision>
  1121. <trim_type>none</trim_type>
  1122. </field>
  1123. <field>
  1124. <name>sqlserver_driverclassname</name>
  1125. <variable>${sqlserver_driverclassname}</variable>
  1126. <type>String</type>
  1127. <format/>
  1128. <currency/>
  1129. <decimal/>
  1130. <group/>
  1131. <length>-1</length>
  1132. <precision>-1</precision>
  1133. <trim_type>none</trim_type>
  1134. </field>
  1135. <field>
  1136. <name>sqlserver_password</name>
  1137. <variable>${sqlserver_password}</variable>
  1138. <type>String</type>
  1139. <format/>
  1140. <currency/>
  1141. <decimal/>
  1142. <group/>
  1143. <length>-1</length>
  1144. <precision>-1</precision>
  1145. <trim_type>none</trim_type>
  1146. </field>
  1147. <field>
  1148. <name>sqlserver_url</name>
  1149. <variable>${sqlserver_url}</variable>
  1150. <type>String</type>
  1151. <format/>
  1152. <currency/>
  1153. <decimal/>
  1154. <group/>
  1155. <length>-1</length>
  1156. <precision>-1</precision>
  1157. <trim_type>none</trim_type>
  1158. </field>
  1159. <field>
  1160. <name>sqlserver_username</name>
  1161. <variable>${sqlserver_username}</variable>
  1162. <type>String</type>
  1163. <format/>
  1164. <currency/>
  1165. <decimal/>
  1166. <group/>
  1167. <length>-1</length>
  1168. <precision>-1</precision>
  1169. <trim_type>none</trim_type>
  1170. </field>
  1171. <field>
  1172. <name>USER_NAME</name>
  1173. <variable>${USER_NAME}</variable>
  1174. <type>String</type>
  1175. <format/>
  1176. <currency/>
  1177. <decimal/>
  1178. <group/>
  1179. <length>-1</length>
  1180. <precision>-1</precision>
  1181. <trim_type>none</trim_type>
  1182. </field>
  1183. <field>
  1184. <name>BEGIN_DATE</name>
  1185. <variable>${BEGIN_DATE}</variable>
  1186. <type>String</type>
  1187. <format/>
  1188. <currency/>
  1189. <decimal/>
  1190. <group/>
  1191. <length>-1</length>
  1192. <precision>-1</precision>
  1193. <trim_type>none</trim_type>
  1194. </field>
  1195. <field>
  1196. <name>END_DATE</name>
  1197. <variable>${END_DATE}</variable>
  1198. <type>String</type>
  1199. <format/>
  1200. <currency/>
  1201. <decimal/>
  1202. <group/>
  1203. <length>-1</length>
  1204. <precision>-1</precision>
  1205. <trim_type>none</trim_type>
  1206. </field>
  1207. <field>
  1208. <name>DEPT_CODE</name>
  1209. <variable>${DEPT_CODE}</variable>
  1210. <type>String</type>
  1211. <format/>
  1212. <currency/>
  1213. <decimal/>
  1214. <group/>
  1215. <length>-1</length>
  1216. <precision>-1</precision>
  1217. <trim_type>none</trim_type>
  1218. </field>
  1219. <field>
  1220. <name>mysql_host</name>
  1221. <variable>${mysql_host}</variable>
  1222. <type>String</type>
  1223. <format/>
  1224. <currency/>
  1225. <decimal/>
  1226. <group/>
  1227. <length>-1</length>
  1228. <precision>-1</precision>
  1229. <trim_type>none</trim_type>
  1230. </field>
  1231. <field>
  1232. <name>mysql_dbname</name>
  1233. <variable>${mysql_dbname}</variable>
  1234. <type>String</type>
  1235. <format/>
  1236. <currency/>
  1237. <decimal/>
  1238. <group/>
  1239. <length>-1</length>
  1240. <precision>-1</precision>
  1241. <trim_type>none</trim_type>
  1242. </field>
  1243. </fields>
  1244. <attributes/>
  1245. <cluster_schema/>
  1246. <remotesteps>
  1247. <input>
  1248. </input>
  1249. <output>
  1250. </output>
  1251. </remotesteps>
  1252. <GUI>
  1253. <xloc>64</xloc>
  1254. <yloc>80</yloc>
  1255. <draw>Y</draw>
  1256. </GUI>
  1257. </step>
  1258. <step_error_handling>
  1259. </step_error_handling>
  1260. <slave-step-copy-partition-distribution>
  1261. </slave-step-copy-partition-distribution>
  1262. <slave_transformation>N</slave_transformation>
  1263. <attributes/>
  1264. </transformation>