物料分类数据同步.ktr 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  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/01/04 10:02:59.030</created_date>
  432. <modified_user>-</modified_user>
  433. <modified_date>2024/01/04 10:02:59.030</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>${MOMDB_HOST}</server>
  442. <type>GENERIC</type>
  443. <access>Native</access>
  444. <database>${MOMDB_NAME}</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>CUSTOM_DRIVER_CLASS</code>
  454. <attribute>${mysql_driverclassname}</attribute>
  455. </attribute>
  456. <attribute>
  457. <code>CUSTOM_URL</code>
  458. <attribute>${mysql_url}</attribute>
  459. </attribute>
  460. <attribute>
  461. <code>DATABASE_DIALECT_ID</code>
  462. <attribute>Generic database</attribute>
  463. </attribute>
  464. <attribute>
  465. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  466. <attribute>N</attribute>
  467. </attribute>
  468. <attribute>
  469. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  470. <attribute>N</attribute>
  471. </attribute>
  472. <attribute>
  473. <code>IS_CLUSTERED</code>
  474. <attribute>N</attribute>
  475. </attribute>
  476. <attribute>
  477. <code>PORT_NUMBER</code>
  478. <attribute>3306</attribute>
  479. </attribute>
  480. <attribute>
  481. <code>PRESERVE_RESERVED_WORD_CASE</code>
  482. <attribute>Y</attribute>
  483. </attribute>
  484. <attribute>
  485. <code>QUOTE_ALL_FIELDS</code>
  486. <attribute>N</attribute>
  487. </attribute>
  488. <attribute>
  489. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  490. <attribute>Y</attribute>
  491. </attribute>
  492. <attribute>
  493. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  494. <attribute>Y</attribute>
  495. </attribute>
  496. <attribute>
  497. <code>USE_POOLING</code>
  498. <attribute>N</attribute>
  499. </attribute>
  500. </attributes>
  501. </connection>
  502. <connection>
  503. <name>U8</name>
  504. <server>${U8DB_HOST}</server>
  505. <type>GENERIC</type>
  506. <access>Native</access>
  507. <database>${U8DB_NAME}</database>
  508. <port>1433</port>
  509. <username>${sqlserver_username}</username>
  510. <password>${sqlserver_password}</password>
  511. <servername/>
  512. <data_tablespace/>
  513. <index_tablespace/>
  514. <attributes>
  515. <attribute>
  516. <code>CUSTOM_DRIVER_CLASS</code>
  517. <attribute>${sqlserver_driverclassname}</attribute>
  518. </attribute>
  519. <attribute>
  520. <code>CUSTOM_URL</code>
  521. <attribute>${sqlserver_url}</attribute>
  522. </attribute>
  523. <attribute>
  524. <code>DATABASE_DIALECT_ID</code>
  525. <attribute>Generic database</attribute>
  526. </attribute>
  527. <attribute>
  528. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  529. <attribute>N</attribute>
  530. </attribute>
  531. <attribute>
  532. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  533. <attribute>N</attribute>
  534. </attribute>
  535. <attribute>
  536. <code>IS_CLUSTERED</code>
  537. <attribute>N</attribute>
  538. </attribute>
  539. <attribute>
  540. <code>PORT_NUMBER</code>
  541. <attribute>1433</attribute>
  542. </attribute>
  543. <attribute>
  544. <code>PRESERVE_RESERVED_WORD_CASE</code>
  545. <attribute>Y</attribute>
  546. </attribute>
  547. <attribute>
  548. <code>QUOTE_ALL_FIELDS</code>
  549. <attribute>N</attribute>
  550. </attribute>
  551. <attribute>
  552. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  553. <attribute>Y</attribute>
  554. </attribute>
  555. <attribute>
  556. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  557. <attribute>Y</attribute>
  558. </attribute>
  559. <attribute>
  560. <code>USE_POOLING</code>
  561. <attribute>N</attribute>
  562. </attribute>
  563. </attributes>
  564. </connection>
  565. <order>
  566. <hop>
  567. <from>获取变量</from>
  568. <to>表输入-U8物料分类</to>
  569. <enabled>Y</enabled>
  570. </hop>
  571. <hop>
  572. <from>表输入-U8物料分类</from>
  573. <to>插入 / 更新</to>
  574. <enabled>Y</enabled>
  575. </hop>
  576. </order>
  577. <step>
  578. <name>插入 / 更新</name>
  579. <type>InsertUpdate</type>
  580. <description/>
  581. <distribute>N</distribute>
  582. <custom_distribution/>
  583. <copies>1</copies>
  584. <partitioning>
  585. <method>none</method>
  586. <schema_name/>
  587. </partitioning>
  588. <connection>MOM</connection>
  589. <commit>1000</commit>
  590. <update_bypassed>N</update_bypassed>
  591. <lookup>
  592. <schema/>
  593. <table>base_material_class</table>
  594. <key>
  595. <name>material_class_code</name>
  596. <field>material_class_code</field>
  597. <condition>=</condition>
  598. <name2/>
  599. </key>
  600. <value>
  601. <name>parent_id</name>
  602. <rename>parent_id</rename>
  603. <update>Y</update>
  604. </value>
  605. <value>
  606. <name>ancestors</name>
  607. <rename>ancestors</rename>
  608. <update>Y</update>
  609. </value>
  610. <value>
  611. <name>material_class_code</name>
  612. <rename>material_class_code</rename>
  613. <update>N</update>
  614. </value>
  615. <value>
  616. <name>material_class_name</name>
  617. <rename>material_class_name</rename>
  618. <update>Y</update>
  619. </value>
  620. <value>
  621. <name>material_level</name>
  622. <rename>material_level</rename>
  623. <update>Y</update>
  624. </value>
  625. <value>
  626. <name>material_end</name>
  627. <rename>material_end</rename>
  628. <update>Y</update>
  629. </value>
  630. <value>
  631. <name>create_by</name>
  632. <rename>sync_name</rename>
  633. <update>N</update>
  634. </value>
  635. <value>
  636. <name>create_id</name>
  637. <rename>sync_id</rename>
  638. <update>N</update>
  639. </value>
  640. <value>
  641. <name>create_time</name>
  642. <rename>sync_time</rename>
  643. <update>N</update>
  644. </value>
  645. <value>
  646. <name>update_by</name>
  647. <rename>sync_name</rename>
  648. <update>Y</update>
  649. </value>
  650. <value>
  651. <name>update_time</name>
  652. <rename>sync_time</rename>
  653. <update>Y</update>
  654. </value>
  655. </lookup>
  656. <attributes/>
  657. <cluster_schema/>
  658. <remotesteps>
  659. <input>
  660. </input>
  661. <output>
  662. </output>
  663. </remotesteps>
  664. <GUI>
  665. <xloc>576</xloc>
  666. <yloc>128</yloc>
  667. <draw>Y</draw>
  668. </GUI>
  669. </step>
  670. <step>
  671. <name>获取变量</name>
  672. <type>GetVariable</type>
  673. <description/>
  674. <distribute>Y</distribute>
  675. <custom_distribution/>
  676. <copies>1</copies>
  677. <partitioning>
  678. <method>none</method>
  679. <schema_name/>
  680. </partitioning>
  681. <fields>
  682. <field>
  683. <name>mysql_driverclassname</name>
  684. <variable>${mysql_driverclassname}</variable>
  685. <type>String</type>
  686. <format/>
  687. <currency/>
  688. <decimal/>
  689. <group/>
  690. <length>-1</length>
  691. <precision>-1</precision>
  692. <trim_type>none</trim_type>
  693. </field>
  694. <field>
  695. <name>mysql_password</name>
  696. <variable>${mysql_password}</variable>
  697. <type>String</type>
  698. <format/>
  699. <currency/>
  700. <decimal/>
  701. <group/>
  702. <length>-1</length>
  703. <precision>-1</precision>
  704. <trim_type>none</trim_type>
  705. </field>
  706. <field>
  707. <name>mysql_url</name>
  708. <variable>${mysql_url}</variable>
  709. <type>String</type>
  710. <format/>
  711. <currency/>
  712. <decimal/>
  713. <group/>
  714. <length>-1</length>
  715. <precision>-1</precision>
  716. <trim_type>none</trim_type>
  717. </field>
  718. <field>
  719. <name>mysql_username</name>
  720. <variable>${mysql_username}</variable>
  721. <type>String</type>
  722. <format/>
  723. <currency/>
  724. <decimal/>
  725. <group/>
  726. <length>-1</length>
  727. <precision>-1</precision>
  728. <trim_type>none</trim_type>
  729. </field>
  730. <field>
  731. <name>USER_ID</name>
  732. <variable>${userId}</variable>
  733. <type>String</type>
  734. <format/>
  735. <currency/>
  736. <decimal/>
  737. <group/>
  738. <length>-1</length>
  739. <precision>-1</precision>
  740. <trim_type>none</trim_type>
  741. </field>
  742. <field>
  743. <name>sqlserver_driverclassname</name>
  744. <variable>${sqlserver_driverclassname}</variable>
  745. <type>String</type>
  746. <format/>
  747. <currency/>
  748. <decimal/>
  749. <group/>
  750. <length>-1</length>
  751. <precision>-1</precision>
  752. <trim_type>none</trim_type>
  753. </field>
  754. <field>
  755. <name>sqlserver_password</name>
  756. <variable>${sqlserver_password}</variable>
  757. <type>String</type>
  758. <format/>
  759. <currency/>
  760. <decimal/>
  761. <group/>
  762. <length>-1</length>
  763. <precision>-1</precision>
  764. <trim_type>none</trim_type>
  765. </field>
  766. <field>
  767. <name>sqlserver_url</name>
  768. <variable>${sqlserver_url}</variable>
  769. <type>String</type>
  770. <format/>
  771. <currency/>
  772. <decimal/>
  773. <group/>
  774. <length>-1</length>
  775. <precision>-1</precision>
  776. <trim_type>none</trim_type>
  777. </field>
  778. <field>
  779. <name>sqlserver_username</name>
  780. <variable>${sqlserver_username}</variable>
  781. <type>String</type>
  782. <format/>
  783. <currency/>
  784. <decimal/>
  785. <group/>
  786. <length>-1</length>
  787. <precision>-1</precision>
  788. <trim_type>none</trim_type>
  789. </field>
  790. <field>
  791. <name>USER_NAME</name>
  792. <variable>${userName}</variable>
  793. <type>String</type>
  794. <format/>
  795. <currency/>
  796. <decimal/>
  797. <group/>
  798. <length>-1</length>
  799. <precision>-1</precision>
  800. <trim_type>none</trim_type>
  801. </field>
  802. </fields>
  803. <attributes/>
  804. <cluster_schema/>
  805. <remotesteps>
  806. <input>
  807. </input>
  808. <output>
  809. </output>
  810. </remotesteps>
  811. <GUI>
  812. <xloc>128</xloc>
  813. <yloc>128</yloc>
  814. <draw>Y</draw>
  815. </GUI>
  816. </step>
  817. <step>
  818. <name>表输入-U8物料分类</name>
  819. <type>TableInput</type>
  820. <description/>
  821. <distribute>N</distribute>
  822. <custom_distribution/>
  823. <copies>1</copies>
  824. <partitioning>
  825. <method>none</method>
  826. <schema_name/>
  827. </partitioning>
  828. <connection>U8</connection>
  829. <sql>DECLARE @USER_NAME VARCHAR(50),@USER_ID INT
  830. SET @USER_NAME = CASE '${USER_NAME}' WHEN '' THEN '管理员(kettle)' ELSE '${USER_NAME}' END
  831. SET @USER_ID = CASE 0${USER_ID} WHEN 0 THEN 1 ELSE 0${USER_ID} END
  832. SELECT
  833. NULL AS parent_id
  834. ,NULL AS ancestors
  835. ,cInvCCode AS material_class_code
  836. ,cInvCName AS material_class_name
  837. ,iInvCGrade AS material_level
  838. ,bInvCEnd AS material_end
  839. ,@USER_NAME AS sync_name
  840. ,@USER_ID AS sync_id
  841. ,GETDATE() AS sync_time
  842. FROM InventoryClass</sql>
  843. <limit>0</limit>
  844. <lookup/>
  845. <execute_each_row>N</execute_each_row>
  846. <variables_active>Y</variables_active>
  847. <lazy_conversion_active>N</lazy_conversion_active>
  848. <cached_row_meta_active>N</cached_row_meta_active>
  849. <row-meta>
  850. <value-meta>
  851. <type>Integer</type>
  852. <storagetype>normal</storagetype>
  853. <name>parent_id</name>
  854. <length>9</length>
  855. <precision>0</precision>
  856. <origin>表输入-U8物料分类</origin>
  857. <comments>parent_id</comments>
  858. <conversion_Mask>####0;-####0</conversion_Mask>
  859. <decimal_symbol>.</decimal_symbol>
  860. <grouping_symbol>,</grouping_symbol>
  861. <currency_symbol/>
  862. <trim_type>none</trim_type>
  863. <case_insensitive>N</case_insensitive>
  864. <collator_disabled>Y</collator_disabled>
  865. <collator_strength>0</collator_strength>
  866. <sort_descending>N</sort_descending>
  867. <output_padding>N</output_padding>
  868. <date_format_lenient>N</date_format_lenient>
  869. <date_format_locale>zh_CN</date_format_locale>
  870. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  871. <lenient_string_to_number>N</lenient_string_to_number>
  872. </value-meta>
  873. <value-meta>
  874. <type>Integer</type>
  875. <storagetype>normal</storagetype>
  876. <name>ancestors</name>
  877. <length>9</length>
  878. <precision>0</precision>
  879. <origin>表输入-U8物料分类</origin>
  880. <comments>ancestors</comments>
  881. <conversion_Mask>####0;-####0</conversion_Mask>
  882. <decimal_symbol>.</decimal_symbol>
  883. <grouping_symbol>,</grouping_symbol>
  884. <currency_symbol/>
  885. <trim_type>none</trim_type>
  886. <case_insensitive>N</case_insensitive>
  887. <collator_disabled>Y</collator_disabled>
  888. <collator_strength>0</collator_strength>
  889. <sort_descending>N</sort_descending>
  890. <output_padding>N</output_padding>
  891. <date_format_lenient>N</date_format_lenient>
  892. <date_format_locale>zh_CN</date_format_locale>
  893. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  894. <lenient_string_to_number>N</lenient_string_to_number>
  895. </value-meta>
  896. <value-meta>
  897. <type>String</type>
  898. <storagetype>normal</storagetype>
  899. <name>material_class_code</name>
  900. <length>12</length>
  901. <precision>-1</precision>
  902. <origin>表输入-U8物料分类</origin>
  903. <comments>material_class_code</comments>
  904. <conversion_Mask/>
  905. <decimal_symbol>.</decimal_symbol>
  906. <grouping_symbol>,</grouping_symbol>
  907. <currency_symbol/>
  908. <trim_type>none</trim_type>
  909. <case_insensitive>N</case_insensitive>
  910. <collator_disabled>Y</collator_disabled>
  911. <collator_strength>0</collator_strength>
  912. <sort_descending>N</sort_descending>
  913. <output_padding>N</output_padding>
  914. <date_format_lenient>N</date_format_lenient>
  915. <date_format_locale>zh_CN</date_format_locale>
  916. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  917. <lenient_string_to_number>N</lenient_string_to_number>
  918. </value-meta>
  919. <value-meta>
  920. <type>String</type>
  921. <storagetype>normal</storagetype>
  922. <name>material_class_name</name>
  923. <length>100</length>
  924. <precision>-1</precision>
  925. <origin>表输入-U8物料分类</origin>
  926. <comments>material_class_name</comments>
  927. <conversion_Mask/>
  928. <decimal_symbol>.</decimal_symbol>
  929. <grouping_symbol>,</grouping_symbol>
  930. <currency_symbol/>
  931. <trim_type>none</trim_type>
  932. <case_insensitive>N</case_insensitive>
  933. <collator_disabled>Y</collator_disabled>
  934. <collator_strength>0</collator_strength>
  935. <sort_descending>N</sort_descending>
  936. <output_padding>N</output_padding>
  937. <date_format_lenient>N</date_format_lenient>
  938. <date_format_locale>zh_CN</date_format_locale>
  939. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  940. <lenient_string_to_number>N</lenient_string_to_number>
  941. </value-meta>
  942. <value-meta>
  943. <type>Integer</type>
  944. <storagetype>normal</storagetype>
  945. <name>material_level</name>
  946. <length>2</length>
  947. <precision>0</precision>
  948. <origin>表输入-U8物料分类</origin>
  949. <comments>material_level</comments>
  950. <conversion_Mask>####0;-####0</conversion_Mask>
  951. <decimal_symbol>.</decimal_symbol>
  952. <grouping_symbol>,</grouping_symbol>
  953. <currency_symbol/>
  954. <trim_type>none</trim_type>
  955. <case_insensitive>N</case_insensitive>
  956. <collator_disabled>Y</collator_disabled>
  957. <collator_strength>0</collator_strength>
  958. <sort_descending>N</sort_descending>
  959. <output_padding>N</output_padding>
  960. <date_format_lenient>N</date_format_lenient>
  961. <date_format_locale>zh_CN</date_format_locale>
  962. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  963. <lenient_string_to_number>N</lenient_string_to_number>
  964. </value-meta>
  965. <value-meta>
  966. <type>Boolean</type>
  967. <storagetype>normal</storagetype>
  968. <name>material_end</name>
  969. <length>-1</length>
  970. <precision>-1</precision>
  971. <origin>表输入-U8物料分类</origin>
  972. <comments>material_end</comments>
  973. <conversion_Mask/>
  974. <decimal_symbol>.</decimal_symbol>
  975. <grouping_symbol>,</grouping_symbol>
  976. <currency_symbol/>
  977. <trim_type>none</trim_type>
  978. <case_insensitive>N</case_insensitive>
  979. <collator_disabled>Y</collator_disabled>
  980. <collator_strength>0</collator_strength>
  981. <sort_descending>N</sort_descending>
  982. <output_padding>N</output_padding>
  983. <date_format_lenient>N</date_format_lenient>
  984. <date_format_locale>zh_CN</date_format_locale>
  985. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  986. <lenient_string_to_number>N</lenient_string_to_number>
  987. </value-meta>
  988. <value-meta>
  989. <type>String</type>
  990. <storagetype>normal</storagetype>
  991. <name>sync_name</name>
  992. <length>6</length>
  993. <precision>-1</precision>
  994. <origin>表输入-U8物料分类</origin>
  995. <comments>sync_name</comments>
  996. <conversion_Mask/>
  997. <decimal_symbol>.</decimal_symbol>
  998. <grouping_symbol>,</grouping_symbol>
  999. <currency_symbol/>
  1000. <trim_type>none</trim_type>
  1001. <case_insensitive>N</case_insensitive>
  1002. <collator_disabled>Y</collator_disabled>
  1003. <collator_strength>0</collator_strength>
  1004. <sort_descending>N</sort_descending>
  1005. <output_padding>N</output_padding>
  1006. <date_format_lenient>N</date_format_lenient>
  1007. <date_format_locale>zh_CN</date_format_locale>
  1008. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1009. <lenient_string_to_number>N</lenient_string_to_number>
  1010. </value-meta>
  1011. <value-meta>
  1012. <type>Integer</type>
  1013. <storagetype>normal</storagetype>
  1014. <name>sync_id</name>
  1015. <length>9</length>
  1016. <precision>0</precision>
  1017. <origin>表输入-U8物料分类</origin>
  1018. <comments>sync_id</comments>
  1019. <conversion_Mask>####0;-####0</conversion_Mask>
  1020. <decimal_symbol>.</decimal_symbol>
  1021. <grouping_symbol>,</grouping_symbol>
  1022. <currency_symbol/>
  1023. <trim_type>none</trim_type>
  1024. <case_insensitive>N</case_insensitive>
  1025. <collator_disabled>Y</collator_disabled>
  1026. <collator_strength>0</collator_strength>
  1027. <sort_descending>N</sort_descending>
  1028. <output_padding>N</output_padding>
  1029. <date_format_lenient>N</date_format_lenient>
  1030. <date_format_locale>zh_CN</date_format_locale>
  1031. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1032. <lenient_string_to_number>N</lenient_string_to_number>
  1033. </value-meta>
  1034. <value-meta>
  1035. <type>Timestamp</type>
  1036. <storagetype>normal</storagetype>
  1037. <name>sync_time</name>
  1038. <length>3</length>
  1039. <precision>-1</precision>
  1040. <origin>表输入-U8物料分类</origin>
  1041. <comments>sync_time</comments>
  1042. <conversion_Mask/>
  1043. <decimal_symbol>.</decimal_symbol>
  1044. <grouping_symbol>,</grouping_symbol>
  1045. <currency_symbol/>
  1046. <trim_type>none</trim_type>
  1047. <case_insensitive>N</case_insensitive>
  1048. <collator_disabled>Y</collator_disabled>
  1049. <collator_strength>0</collator_strength>
  1050. <sort_descending>N</sort_descending>
  1051. <output_padding>N</output_padding>
  1052. <date_format_lenient>N</date_format_lenient>
  1053. <date_format_locale>zh_CN</date_format_locale>
  1054. <date_format_timezone>Asia/Shanghai</date_format_timezone>
  1055. <lenient_string_to_number>N</lenient_string_to_number>
  1056. </value-meta>
  1057. </row-meta>
  1058. <attributes/>
  1059. <cluster_schema/>
  1060. <remotesteps>
  1061. <input>
  1062. </input>
  1063. <output>
  1064. </output>
  1065. </remotesteps>
  1066. <GUI>
  1067. <xloc>320</xloc>
  1068. <yloc>128</yloc>
  1069. <draw>Y</draw>
  1070. </GUI>
  1071. </step>
  1072. <step_error_handling>
  1073. <error>
  1074. <source_step>插入 / 更新</source_step>
  1075. <target_step>执行SQL脚本</target_step>
  1076. <is_enabled>N</is_enabled>
  1077. <nr_valuename/>
  1078. <descriptions_valuename/>
  1079. <fields_valuename/>
  1080. <codes_valuename/>
  1081. <max_errors/>
  1082. <max_pct_errors/>
  1083. <min_pct_rows/>
  1084. </error>
  1085. </step_error_handling>
  1086. <slave-step-copy-partition-distribution>
  1087. </slave-step-copy-partition-distribution>
  1088. <slave_transformation>N</slave_transformation>
  1089. <attributes/>
  1090. </transformation>