mem_Product_parent.ktr 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <transformation>
  3. <info>
  4. <name>mem_Product_parent</name>
  5. <description/>
  6. <extended_description/>
  7. <trans_version/>
  8. <trans_type>Normal</trans_type>
  9. <directory>/</directory>
  10. <parameters>
  11. </parameters>
  12. <log>
  13. <trans-log-table>
  14. <connection/>
  15. <schema/>
  16. <table/>
  17. <size_limit_lines/>
  18. <interval/>
  19. <timeout_days/>
  20. <field>
  21. <id>ID_BATCH</id>
  22. <enabled>Y</enabled>
  23. <name>ID_BATCH</name>
  24. </field>
  25. <field>
  26. <id>CHANNEL_ID</id>
  27. <enabled>Y</enabled>
  28. <name>CHANNEL_ID</name>
  29. </field>
  30. <field>
  31. <id>TRANSNAME</id>
  32. <enabled>Y</enabled>
  33. <name>TRANSNAME</name>
  34. </field>
  35. <field>
  36. <id>STATUS</id>
  37. <enabled>Y</enabled>
  38. <name>STATUS</name>
  39. </field>
  40. <field>
  41. <id>LINES_READ</id>
  42. <enabled>Y</enabled>
  43. <name>LINES_READ</name>
  44. <subject/>
  45. </field>
  46. <field>
  47. <id>LINES_WRITTEN</id>
  48. <enabled>Y</enabled>
  49. <name>LINES_WRITTEN</name>
  50. <subject/>
  51. </field>
  52. <field>
  53. <id>LINES_UPDATED</id>
  54. <enabled>Y</enabled>
  55. <name>LINES_UPDATED</name>
  56. <subject/>
  57. </field>
  58. <field>
  59. <id>LINES_INPUT</id>
  60. <enabled>Y</enabled>
  61. <name>LINES_INPUT</name>
  62. <subject/>
  63. </field>
  64. <field>
  65. <id>LINES_OUTPUT</id>
  66. <enabled>Y</enabled>
  67. <name>LINES_OUTPUT</name>
  68. <subject/>
  69. </field>
  70. <field>
  71. <id>LINES_REJECTED</id>
  72. <enabled>Y</enabled>
  73. <name>LINES_REJECTED</name>
  74. <subject/>
  75. </field>
  76. <field>
  77. <id>ERRORS</id>
  78. <enabled>Y</enabled>
  79. <name>ERRORS</name>
  80. </field>
  81. <field>
  82. <id>STARTDATE</id>
  83. <enabled>Y</enabled>
  84. <name>STARTDATE</name>
  85. </field>
  86. <field>
  87. <id>ENDDATE</id>
  88. <enabled>Y</enabled>
  89. <name>ENDDATE</name>
  90. </field>
  91. <field>
  92. <id>LOGDATE</id>
  93. <enabled>Y</enabled>
  94. <name>LOGDATE</name>
  95. </field>
  96. <field>
  97. <id>DEPDATE</id>
  98. <enabled>Y</enabled>
  99. <name>DEPDATE</name>
  100. </field>
  101. <field>
  102. <id>REPLAYDATE</id>
  103. <enabled>Y</enabled>
  104. <name>REPLAYDATE</name>
  105. </field>
  106. <field>
  107. <id>LOG_FIELD</id>
  108. <enabled>Y</enabled>
  109. <name>LOG_FIELD</name>
  110. </field>
  111. <field>
  112. <id>EXECUTING_SERVER</id>
  113. <enabled>N</enabled>
  114. <name>EXECUTING_SERVER</name>
  115. </field>
  116. <field>
  117. <id>EXECUTING_USER</id>
  118. <enabled>N</enabled>
  119. <name>EXECUTING_USER</name>
  120. </field>
  121. <field>
  122. <id>CLIENT</id>
  123. <enabled>N</enabled>
  124. <name>CLIENT</name>
  125. </field>
  126. </trans-log-table>
  127. <perf-log-table>
  128. <connection/>
  129. <schema/>
  130. <table/>
  131. <interval/>
  132. <timeout_days/>
  133. <field>
  134. <id>ID_BATCH</id>
  135. <enabled>Y</enabled>
  136. <name>ID_BATCH</name>
  137. </field>
  138. <field>
  139. <id>SEQ_NR</id>
  140. <enabled>Y</enabled>
  141. <name>SEQ_NR</name>
  142. </field>
  143. <field>
  144. <id>LOGDATE</id>
  145. <enabled>Y</enabled>
  146. <name>LOGDATE</name>
  147. </field>
  148. <field>
  149. <id>TRANSNAME</id>
  150. <enabled>Y</enabled>
  151. <name>TRANSNAME</name>
  152. </field>
  153. <field>
  154. <id>STEPNAME</id>
  155. <enabled>Y</enabled>
  156. <name>STEPNAME</name>
  157. </field>
  158. <field>
  159. <id>STEP_COPY</id>
  160. <enabled>Y</enabled>
  161. <name>STEP_COPY</name>
  162. </field>
  163. <field>
  164. <id>LINES_READ</id>
  165. <enabled>Y</enabled>
  166. <name>LINES_READ</name>
  167. </field>
  168. <field>
  169. <id>LINES_WRITTEN</id>
  170. <enabled>Y</enabled>
  171. <name>LINES_WRITTEN</name>
  172. </field>
  173. <field>
  174. <id>LINES_UPDATED</id>
  175. <enabled>Y</enabled>
  176. <name>LINES_UPDATED</name>
  177. </field>
  178. <field>
  179. <id>LINES_INPUT</id>
  180. <enabled>Y</enabled>
  181. <name>LINES_INPUT</name>
  182. </field>
  183. <field>
  184. <id>LINES_OUTPUT</id>
  185. <enabled>Y</enabled>
  186. <name>LINES_OUTPUT</name>
  187. </field>
  188. <field>
  189. <id>LINES_REJECTED</id>
  190. <enabled>Y</enabled>
  191. <name>LINES_REJECTED</name>
  192. </field>
  193. <field>
  194. <id>ERRORS</id>
  195. <enabled>Y</enabled>
  196. <name>ERRORS</name>
  197. </field>
  198. <field>
  199. <id>INPUT_BUFFER_ROWS</id>
  200. <enabled>Y</enabled>
  201. <name>INPUT_BUFFER_ROWS</name>
  202. </field>
  203. <field>
  204. <id>OUTPUT_BUFFER_ROWS</id>
  205. <enabled>Y</enabled>
  206. <name>OUTPUT_BUFFER_ROWS</name>
  207. </field>
  208. </perf-log-table>
  209. <channel-log-table>
  210. <connection/>
  211. <schema/>
  212. <table/>
  213. <timeout_days/>
  214. <field>
  215. <id>ID_BATCH</id>
  216. <enabled>Y</enabled>
  217. <name>ID_BATCH</name>
  218. </field>
  219. <field>
  220. <id>CHANNEL_ID</id>
  221. <enabled>Y</enabled>
  222. <name>CHANNEL_ID</name>
  223. </field>
  224. <field>
  225. <id>LOG_DATE</id>
  226. <enabled>Y</enabled>
  227. <name>LOG_DATE</name>
  228. </field>
  229. <field>
  230. <id>LOGGING_OBJECT_TYPE</id>
  231. <enabled>Y</enabled>
  232. <name>LOGGING_OBJECT_TYPE</name>
  233. </field>
  234. <field>
  235. <id>OBJECT_NAME</id>
  236. <enabled>Y</enabled>
  237. <name>OBJECT_NAME</name>
  238. </field>
  239. <field>
  240. <id>OBJECT_COPY</id>
  241. <enabled>Y</enabled>
  242. <name>OBJECT_COPY</name>
  243. </field>
  244. <field>
  245. <id>REPOSITORY_DIRECTORY</id>
  246. <enabled>Y</enabled>
  247. <name>REPOSITORY_DIRECTORY</name>
  248. </field>
  249. <field>
  250. <id>FILENAME</id>
  251. <enabled>Y</enabled>
  252. <name>FILENAME</name>
  253. </field>
  254. <field>
  255. <id>OBJECT_ID</id>
  256. <enabled>Y</enabled>
  257. <name>OBJECT_ID</name>
  258. </field>
  259. <field>
  260. <id>OBJECT_REVISION</id>
  261. <enabled>Y</enabled>
  262. <name>OBJECT_REVISION</name>
  263. </field>
  264. <field>
  265. <id>PARENT_CHANNEL_ID</id>
  266. <enabled>Y</enabled>
  267. <name>PARENT_CHANNEL_ID</name>
  268. </field>
  269. <field>
  270. <id>ROOT_CHANNEL_ID</id>
  271. <enabled>Y</enabled>
  272. <name>ROOT_CHANNEL_ID</name>
  273. </field>
  274. </channel-log-table>
  275. <step-log-table>
  276. <connection/>
  277. <schema/>
  278. <table/>
  279. <timeout_days/>
  280. <field>
  281. <id>ID_BATCH</id>
  282. <enabled>Y</enabled>
  283. <name>ID_BATCH</name>
  284. </field>
  285. <field>
  286. <id>CHANNEL_ID</id>
  287. <enabled>Y</enabled>
  288. <name>CHANNEL_ID</name>
  289. </field>
  290. <field>
  291. <id>LOG_DATE</id>
  292. <enabled>Y</enabled>
  293. <name>LOG_DATE</name>
  294. </field>
  295. <field>
  296. <id>TRANSNAME</id>
  297. <enabled>Y</enabled>
  298. <name>TRANSNAME</name>
  299. </field>
  300. <field>
  301. <id>STEPNAME</id>
  302. <enabled>Y</enabled>
  303. <name>STEPNAME</name>
  304. </field>
  305. <field>
  306. <id>STEP_COPY</id>
  307. <enabled>Y</enabled>
  308. <name>STEP_COPY</name>
  309. </field>
  310. <field>
  311. <id>LINES_READ</id>
  312. <enabled>Y</enabled>
  313. <name>LINES_READ</name>
  314. </field>
  315. <field>
  316. <id>LINES_WRITTEN</id>
  317. <enabled>Y</enabled>
  318. <name>LINES_WRITTEN</name>
  319. </field>
  320. <field>
  321. <id>LINES_UPDATED</id>
  322. <enabled>Y</enabled>
  323. <name>LINES_UPDATED</name>
  324. </field>
  325. <field>
  326. <id>LINES_INPUT</id>
  327. <enabled>Y</enabled>
  328. <name>LINES_INPUT</name>
  329. </field>
  330. <field>
  331. <id>LINES_OUTPUT</id>
  332. <enabled>Y</enabled>
  333. <name>LINES_OUTPUT</name>
  334. </field>
  335. <field>
  336. <id>LINES_REJECTED</id>
  337. <enabled>Y</enabled>
  338. <name>LINES_REJECTED</name>
  339. </field>
  340. <field>
  341. <id>ERRORS</id>
  342. <enabled>Y</enabled>
  343. <name>ERRORS</name>
  344. </field>
  345. <field>
  346. <id>LOG_FIELD</id>
  347. <enabled>N</enabled>
  348. <name>LOG_FIELD</name>
  349. </field>
  350. </step-log-table>
  351. <metrics-log-table>
  352. <connection/>
  353. <schema/>
  354. <table/>
  355. <timeout_days/>
  356. <field>
  357. <id>ID_BATCH</id>
  358. <enabled>Y</enabled>
  359. <name>ID_BATCH</name>
  360. </field>
  361. <field>
  362. <id>CHANNEL_ID</id>
  363. <enabled>Y</enabled>
  364. <name>CHANNEL_ID</name>
  365. </field>
  366. <field>
  367. <id>LOG_DATE</id>
  368. <enabled>Y</enabled>
  369. <name>LOG_DATE</name>
  370. </field>
  371. <field>
  372. <id>METRICS_DATE</id>
  373. <enabled>Y</enabled>
  374. <name>METRICS_DATE</name>
  375. </field>
  376. <field>
  377. <id>METRICS_CODE</id>
  378. <enabled>Y</enabled>
  379. <name>METRICS_CODE</name>
  380. </field>
  381. <field>
  382. <id>METRICS_DESCRIPTION</id>
  383. <enabled>Y</enabled>
  384. <name>METRICS_DESCRIPTION</name>
  385. </field>
  386. <field>
  387. <id>METRICS_SUBJECT</id>
  388. <enabled>Y</enabled>
  389. <name>METRICS_SUBJECT</name>
  390. </field>
  391. <field>
  392. <id>METRICS_TYPE</id>
  393. <enabled>Y</enabled>
  394. <name>METRICS_TYPE</name>
  395. </field>
  396. <field>
  397. <id>METRICS_VALUE</id>
  398. <enabled>Y</enabled>
  399. <name>METRICS_VALUE</name>
  400. </field>
  401. </metrics-log-table>
  402. </log>
  403. <maxdate>
  404. <connection/>
  405. <table/>
  406. <field/>
  407. <offset>0.0</offset>
  408. <maxdiff>0.0</maxdiff>
  409. </maxdate>
  410. <size_rowset>10000</size_rowset>
  411. <sleep_time_empty>50</sleep_time_empty>
  412. <sleep_time_full>50</sleep_time_full>
  413. <unique_connections>N</unique_connections>
  414. <feedback_shown>Y</feedback_shown>
  415. <feedback_size>50000</feedback_size>
  416. <using_thread_priorities>Y</using_thread_priorities>
  417. <shared_objects_file/>
  418. <capture_step_performance>N</capture_step_performance>
  419. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  420. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  421. <dependencies>
  422. </dependencies>
  423. <partitionschemas>
  424. </partitionschemas>
  425. <slaveservers>
  426. </slaveservers>
  427. <clusterschemas>
  428. </clusterschemas>
  429. <created_user>-</created_user>
  430. <created_date>2019/05/16 17:49:47.596</created_date>
  431. <modified_user>-</modified_user>
  432. <modified_date>2019/05/16 17:49:47.596</modified_date>
  433. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  434. <is_key_private>N</is_key_private>
  435. </info>
  436. <notepads>
  437. </notepads>
  438. <connection>
  439. <name>testSqlserver</name>
  440. <server>192.168.20.122</server>
  441. <type>MSSQLNATIVE</type>
  442. <access>Native</access>
  443. <database>MemberData</database>
  444. <port>1433</port>
  445. <username>ljhyPortal2016</username>
  446. <password>Encrypted 746573746ed7f9c1af00ce938a8b5aef398cc2fe8c</password>
  447. <servername/>
  448. <data_tablespace/>
  449. <index_tablespace/>
  450. <attributes>
  451. <attribute>
  452. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  453. <attribute>N</attribute>
  454. </attribute>
  455. <attribute>
  456. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  457. <attribute>N</attribute>
  458. </attribute>
  459. <attribute>
  460. <code>INITIAL_POOL_SIZE</code>
  461. <attribute>100</attribute>
  462. </attribute>
  463. <attribute>
  464. <code>IS_CLUSTERED</code>
  465. <attribute>N</attribute>
  466. </attribute>
  467. <attribute>
  468. <code>MAXIMUM_POOL_SIZE</code>
  469. <attribute>300</attribute>
  470. </attribute>
  471. <attribute>
  472. <code>MSSQLUseIntegratedSecurity</code>
  473. <attribute>false</attribute>
  474. </attribute>
  475. <attribute>
  476. <code>MSSQL_DOUBLE_DECIMAL_SEPARATOR</code>
  477. <attribute>N</attribute>
  478. </attribute>
  479. <attribute>
  480. <code>PORT_NUMBER</code>
  481. <attribute>1433</attribute>
  482. </attribute>
  483. <attribute>
  484. <code>PRESERVE_RESERVED_WORD_CASE</code>
  485. <attribute>Y</attribute>
  486. </attribute>
  487. <attribute>
  488. <code>QUOTE_ALL_FIELDS</code>
  489. <attribute>N</attribute>
  490. </attribute>
  491. <attribute>
  492. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  493. <attribute>Y</attribute>
  494. </attribute>
  495. <attribute>
  496. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  497. <attribute>Y</attribute>
  498. </attribute>
  499. <attribute>
  500. <code>USE_POOLING</code>
  501. <attribute>Y</attribute>
  502. </attribute>
  503. </attributes>
  504. </connection>
  505. <order>
  506. <hop>
  507. <from>表输入 2</from>
  508. <to>Java 代码</to>
  509. <enabled>Y</enabled>
  510. </hop>
  511. <hop>
  512. <from>Java 代码</from>
  513. <to>Elasticsearch bulk insert 2</to>
  514. <enabled>Y</enabled>
  515. </hop>
  516. </order>
  517. <step>
  518. <name>Elasticsearch bulk insert 2</name>
  519. <type>ElasticSearchBulk</type>
  520. <description/>
  521. <distribute>Y</distribute>
  522. <custom_distribution/>
  523. <copies>1</copies>
  524. <partitioning>
  525. <method>none</method>
  526. <schema_name/>
  527. </partitioning>
  528. <general>
  529. <index>product_parent</index>
  530. <type>_doc</type>
  531. <batchSize>500</batchSize>
  532. <timeout>100</timeout>
  533. <timeoutUnit>SECONDS</timeoutUnit>
  534. <isJson>N</isJson>
  535. <idField>ProductCode</idField>
  536. <overwriteIfExists>Y</overwriteIfExists>
  537. <useOutput>N</useOutput>
  538. <stopOnError>Y</stopOnError>
  539. </general>
  540. <fields>
  541. <field>
  542. <columnName>Adverse</columnName>
  543. <targetName>Adverse</targetName>
  544. </field>
  545. <field>
  546. <columnName>AppreciationPrice</columnName>
  547. <targetName>AppreciationPrice</targetName>
  548. </field>
  549. <field>
  550. <columnName>ApprovalNumber</columnName>
  551. <targetName>ApprovalNumber</targetName>
  552. </field>
  553. <field>
  554. <columnName>BarCode</columnName>
  555. <targetName>BarCode</targetName>
  556. </field>
  557. <field>
  558. <columnName>BranchCode</columnName>
  559. <targetName>BranchCode</targetName>
  560. </field>
  561. <field>
  562. <columnName>BrandCode</columnName>
  563. <targetName>BrandCode</targetName>
  564. </field>
  565. <field>
  566. <columnName>BtManual</columnName>
  567. <targetName>BtManual</targetName>
  568. </field>
  569. <field>
  570. <columnName>BusinessIds</columnName>
  571. <targetName>BusinessIds</targetName>
  572. </field>
  573. <field>
  574. <columnName>CQuantity</columnName>
  575. <targetName>CQuantity</targetName>
  576. </field>
  577. <field>
  578. <columnName>CategoryType</columnName>
  579. <targetName>CategoryType</targetName>
  580. </field>
  581. <field>
  582. <columnName>Characters</columnName>
  583. <targetName>Characters</targetName>
  584. </field>
  585. <field>
  586. <columnName>CheckPendingPrice</columnName>
  587. <targetName>CheckPendingPrice</targetName>
  588. </field>
  589. <field>
  590. <columnName>ChemicalName</columnName>
  591. <targetName>ChemicalName</targetName>
  592. </field>
  593. <field>
  594. <columnName>Child</columnName>
  595. <targetName>Child</targetName>
  596. </field>
  597. <field>
  598. <columnName>ClassCode</columnName>
  599. <targetName>ClassCode</targetName>
  600. </field>
  601. <field>
  602. <columnName>Comment</columnName>
  603. <targetName>Comment</targetName>
  604. </field>
  605. <field>
  606. <columnName>CommonTitle</columnName>
  607. <targetName>CommonTitle</targetName>
  608. </field>
  609. <field>
  610. <columnName>CommonTitlePinyin</columnName>
  611. <targetName>CommonTitlePinyin</targetName>
  612. </field>
  613. <field>
  614. <columnName>Composition</columnName>
  615. <targetName>Composition</targetName>
  616. </field>
  617. <field>
  618. <columnName>ConsumeDays</columnName>
  619. <targetName>ConsumeDays</targetName>
  620. </field>
  621. <field>
  622. <columnName>ControlAreaRegion</columnName>
  623. <targetName>ControlAreaRegion</targetName>
  624. </field>
  625. <field>
  626. <columnName>ControlNumber</columnName>
  627. <targetName>ControlNumber</targetName>
  628. </field>
  629. <field>
  630. <columnName>CreationDate</columnName>
  631. <targetName>CreationDate</targetName>
  632. </field>
  633. <field>
  634. <columnName>Displaytab</columnName>
  635. <targetName>Displaytab</targetName>
  636. </field>
  637. <field>
  638. <columnName>DivisionCode</columnName>
  639. <targetName>DivisionCode</targetName>
  640. </field>
  641. <field>
  642. <columnName>Dosage</columnName>
  643. <targetName>Dosage</targetName>
  644. </field>
  645. <field>
  646. <columnName>DrugInteractions</columnName>
  647. <targetName>DrugInteractions</targetName>
  648. </field>
  649. <field>
  650. <columnName>EnglishName</columnName>
  651. <targetName>EnglishName</targetName>
  652. </field>
  653. <field>
  654. <columnName>ExternalID</columnName>
  655. <targetName>ExternalID</targetName>
  656. </field>
  657. <field>
  658. <columnName>FinancialType</columnName>
  659. <targetName>FinancialType</targetName>
  660. </field>
  661. <field>
  662. <columnName>Formula</columnName>
  663. <targetName>Formula</targetName>
  664. </field>
  665. <field>
  666. <columnName>Formulation</columnName>
  667. <targetName>Formulation</targetName>
  668. </field>
  669. <field>
  670. <columnName>FormulationCode</columnName>
  671. <targetName>FormulationCode</targetName>
  672. </field>
  673. <field>
  674. <columnName>GiftCategory</columnName>
  675. <targetName>GiftCategory</targetName>
  676. </field>
  677. <field>
  678. <columnName>GmpCertificateUrl</columnName>
  679. <targetName>GmpCertificateUrl</targetName>
  680. </field>
  681. <field>
  682. <columnName>GmpCode</columnName>
  683. <targetName>GmpCode</targetName>
  684. </field>
  685. <field>
  686. <columnName>HealthInsuranceType</columnName>
  687. <targetName>HealthInsuranceType</targetName>
  688. </field>
  689. <field>
  690. <columnName>Img100</columnName>
  691. <targetName>Img100</targetName>
  692. </field>
  693. <field>
  694. <columnName>Img180</columnName>
  695. <targetName>Img180</targetName>
  696. </field>
  697. <field>
  698. <columnName>Img320</columnName>
  699. <targetName>Img320</targetName>
  700. </field>
  701. <field>
  702. <columnName>Inspection</columnName>
  703. <targetName>Inspection</targetName>
  704. </field>
  705. <field>
  706. <columnName>Introduction</columnName>
  707. <targetName>Introduction</targetName>
  708. </field>
  709. <field>
  710. <columnName>IsControl</columnName>
  711. <targetName>IsControl</targetName>
  712. </field>
  713. <field>
  714. <columnName>IsDrugRecord</columnName>
  715. <targetName>IsDrugRecord</targetName>
  716. </field>
  717. <field>
  718. <columnName>IsGifts</columnName>
  719. <targetName>IsGifts</targetName>
  720. </field>
  721. <field>
  722. <columnName>IsLimitPrice</columnName>
  723. <targetName>IsLimitPrice</targetName>
  724. </field>
  725. <field>
  726. <columnName>IsRecommend</columnName>
  727. <targetName>IsRecommend</targetName>
  728. </field>
  729. <field>
  730. <columnName>IsSuit</columnName>
  731. <targetName>IsSuit</targetName>
  732. </field>
  733. <field>
  734. <columnName>IsVisible</columnName>
  735. <targetName>IsVisible</targetName>
  736. </field>
  737. <field>
  738. <columnName>LastModified</columnName>
  739. <targetName>LastModified</targetName>
  740. </field>
  741. <field>
  742. <columnName>Manual</columnName>
  743. <targetName>Manual</targetName>
  744. </field>
  745. <field>
  746. <columnName>Manufacturer</columnName>
  747. <targetName>Manufacturer</targetName>
  748. </field>
  749. <field>
  750. <columnName>ManufacturerCode</columnName>
  751. <targetName>ManufacturerCode</targetName>
  752. </field>
  753. <field>
  754. <columnName>MarketPrice</columnName>
  755. <targetName>MarketPrice</targetName>
  756. </field>
  757. <field>
  758. <columnName>MassDate</columnName>
  759. <targetName>MassDate</targetName>
  760. </field>
  761. <field>
  762. <columnName>MerchantManageCode</columnName>
  763. <targetName>MerchantManageCode</targetName>
  764. </field>
  765. <field>
  766. <columnName>MinMarketPrice</columnName>
  767. <targetName>MinMarketPrice</targetName>
  768. </field>
  769. <field>
  770. <columnName>MobilephoneUrl</columnName>
  771. <targetName>MobilephoneUrl</targetName>
  772. </field>
  773. <field>
  774. <columnName>Molecular</columnName>
  775. <targetName>Molecular</targetName>
  776. </field>
  777. <field>
  778. <columnName>OlderPatients</columnName>
  779. <targetName>OlderPatients</targetName>
  780. </field>
  781. <field>
  782. <columnName>OurPrice</columnName>
  783. <targetName>OurPrice</targetName>
  784. </field>
  785. <field>
  786. <columnName>OutOfStockRecommendCodes</columnName>
  787. <targetName>OutOfStockRecommendCodes</targetName>
  788. </field>
  789. <field>
  790. <columnName>Overdose</columnName>
  791. <targetName>Overdose</targetName>
  792. </field>
  793. <field>
  794. <columnName>Packing</columnName>
  795. <targetName>Packing</targetName>
  796. </field>
  797. <field>
  798. <columnName>PackingNumber</columnName>
  799. <targetName>PackingNumber</targetName>
  800. </field>
  801. <field>
  802. <columnName>PackingProduct</columnName>
  803. <targetName>PackingProduct</targetName>
  804. </field>
  805. <field>
  806. <columnName>Pharmaco</columnName>
  807. <targetName>Pharmaco</targetName>
  808. </field>
  809. <field>
  810. <columnName>Pharmacokinetics</columnName>
  811. <targetName>Pharmacokinetics</targetName>
  812. </field>
  813. <field>
  814. <columnName>PinyinCode</columnName>
  815. <targetName>PinyinCode</targetName>
  816. </field>
  817. <field>
  818. <columnName>PinyinFullCode</columnName>
  819. <targetName>PinyinFullCode</targetName>
  820. </field>
  821. <field>
  822. <columnName>PlaceCode</columnName>
  823. <targetName>PlaceCode</targetName>
  824. </field>
  825. <field>
  826. <columnName>PlureProductStatusType</columnName>
  827. <targetName>PlureProductStatusType</targetName>
  828. </field>
  829. <field>
  830. <columnName>PostageLogo</columnName>
  831. <targetName>PostageLogo</targetName>
  832. </field>
  833. <field>
  834. <columnName>Precautions</columnName>
  835. <targetName>Precautions</targetName>
  836. </field>
  837. <field>
  838. <columnName>PregnantWoman</columnName>
  839. <targetName>PregnantWoman</targetName>
  840. </field>
  841. <field>
  842. <columnName>PrescriptionType</columnName>
  843. <targetName>PrescriptionType</targetName>
  844. </field>
  845. <field>
  846. <columnName>PriceSectorPricing</columnName>
  847. <targetName>PriceSectorPricing</targetName>
  848. </field>
  849. <field>
  850. <columnName>ProductAttribute</columnName>
  851. <targetName>ProductAttribute</targetName>
  852. </field>
  853. <field>
  854. <columnName>ProductCode</columnName>
  855. <targetName>ProductCode</targetName>
  856. </field>
  857. <field>
  858. <columnName>ProductCodeForOutOfStock</columnName>
  859. <targetName>ProductCodeForOutOfStock</targetName>
  860. </field>
  861. <field>
  862. <columnName>ProductHotType</columnName>
  863. <targetName>ProductHotType</targetName>
  864. </field>
  865. <field>
  866. <columnName>ProductImageUrl</columnName>
  867. <targetName>ProductImageUrl</targetName>
  868. </field>
  869. <field>
  870. <columnName>ProductInventory</columnName>
  871. <targetName>ProductInventory</targetName>
  872. </field>
  873. <field>
  874. <columnName>ProductKey</columnName>
  875. <targetName>ProductKey</targetName>
  876. </field>
  877. <field>
  878. <columnName>ProductLine</columnName>
  879. <targetName>ProductLine</targetName>
  880. </field>
  881. <field>
  882. <columnName>ProductName</columnName>
  883. <targetName>ProductName</targetName>
  884. </field>
  885. <field>
  886. <columnName>ProductRecommend</columnName>
  887. <targetName>ProductRecommend</targetName>
  888. </field>
  889. <field>
  890. <columnName>ProductStatusType</columnName>
  891. <targetName>ProductStatusType</targetName>
  892. </field>
  893. <field>
  894. <columnName>ProductTag</columnName>
  895. <targetName>ProductTag</targetName>
  896. </field>
  897. <field>
  898. <columnName>ProductType</columnName>
  899. <targetName>ProductType</targetName>
  900. </field>
  901. <field>
  902. <columnName>Productmainmaterial</columnName>
  903. <targetName>Productmainmaterial</targetName>
  904. </field>
  905. <field>
  906. <columnName>Productusecrowd</columnName>
  907. <targetName>Productusecrowd</targetName>
  908. </field>
  909. <field>
  910. <columnName>ProductusecrowdCode</columnName>
  911. <targetName>ProductusecrowdCode</targetName>
  912. </field>
  913. <field>
  914. <columnName>ProfitLevel</columnName>
  915. <targetName>ProfitLevel</targetName>
  916. </field>
  917. <field>
  918. <columnName>ProudctDescription</columnName>
  919. <targetName>ProudctDescription</targetName>
  920. </field>
  921. <field>
  922. <columnName>PurchasePrice</columnName>
  923. <targetName>PurchasePrice</targetName>
  924. </field>
  925. <field>
  926. <columnName>PurchaseWhile</columnName>
  927. <targetName>PurchaseWhile</targetName>
  928. </field>
  929. <field>
  930. <columnName>QcClass</columnName>
  931. <targetName>QcClass</targetName>
  932. </field>
  933. <field>
  934. <columnName>Quantity</columnName>
  935. <targetName>Quantity</targetName>
  936. </field>
  937. <field>
  938. <columnName>Remark</columnName>
  939. <targetName>Remark</targetName>
  940. </field>
  941. <field>
  942. <columnName>SFDAApprovalValidDate</columnName>
  943. <targetName>SFDAApprovalValidDate</targetName>
  944. </field>
  945. <field>
  946. <columnName>SFDACode</columnName>
  947. <targetName>SFDACode</targetName>
  948. </field>
  949. <field>
  950. <columnName>SFDAGmpCertificateDate</columnName>
  951. <targetName>SFDAGmpCertificateDate</targetName>
  952. </field>
  953. <field>
  954. <columnName>SFDAStatus</columnName>
  955. <targetName>SFDAStatus</targetName>
  956. </field>
  957. <field>
  958. <columnName>ShowMall</columnName>
  959. <targetName>ShowMall</targetName>
  960. </field>
  961. <field>
  962. <columnName>StandardCode</columnName>
  963. <targetName>StandardCode</targetName>
  964. </field>
  965. <field>
  966. <columnName>Standards</columnName>
  967. <targetName>Standards</targetName>
  968. </field>
  969. <field>
  970. <columnName>Storage</columnName>
  971. <targetName>Storage</targetName>
  972. </field>
  973. <field>
  974. <columnName>Structure</columnName>
  975. <targetName>Structure</targetName>
  976. </field>
  977. <field>
  978. <columnName>SubProductLine</columnName>
  979. <targetName>SubProductLine</targetName>
  980. </field>
  981. <field>
  982. <columnName>SuitDescription</columnName>
  983. <targetName>SuitDescription</targetName>
  984. </field>
  985. <field>
  986. <columnName>SyncStatus</columnName>
  987. <targetName>SyncStatus</targetName>
  988. </field>
  989. <field>
  990. <columnName>Taboo</columnName>
  991. <targetName>Taboo</targetName>
  992. </field>
  993. <field>
  994. <columnName>ThumbnailUrl</columnName>
  995. <targetName>ThumbnailUrl</targetName>
  996. </field>
  997. <field>
  998. <columnName>ToErp</columnName>
  999. <targetName>ToErp</targetName>
  1000. </field>
  1001. <field>
  1002. <columnName>Unit</columnName>
  1003. <targetName>Unit</targetName>
  1004. </field>
  1005. <field>
  1006. <columnName>UsageCode</columnName>
  1007. <targetName>UsageCode</targetName>
  1008. </field>
  1009. <field>
  1010. <columnName>UserName</columnName>
  1011. <targetName>UserName</targetName>
  1012. </field>
  1013. <field>
  1014. <columnName>Views</columnName>
  1015. <targetName>Views</targetName>
  1016. </field>
  1017. <field>
  1018. <columnName>WapManual</columnName>
  1019. <targetName>WapManual</targetName>
  1020. </field>
  1021. <field>
  1022. <columnName>Weight</columnName>
  1023. <targetName>Weight</targetName>
  1024. </field>
  1025. <field>
  1026. <columnName>XQuantity</columnName>
  1027. <targetName>XQuantity</targetName>
  1028. </field>
  1029. <field>
  1030. <columnName>product_join_field</columnName>
  1031. <targetName>product_join_field</targetName>
  1032. </field>
  1033. <field>
  1034. <columnName>recordState</columnName>
  1035. <targetName>recordState</targetName>
  1036. </field>
  1037. </fields>
  1038. <servers>
  1039. <server>
  1040. <address>192.168.50.32</address>
  1041. <port>9300</port>
  1042. </server>
  1043. </servers>
  1044. <settings>
  1045. <setting>
  1046. <name>cluster.name</name>
  1047. <value>es</value>
  1048. </setting>
  1049. <setting>
  1050. <name>custom.aliase.source</name>
  1051. <value>mem_product</value>
  1052. </setting>
  1053. <setting>
  1054. <name>custom.fields.Adverse</name>
  1055. <value>{"type":"text","analyzer": "ik_max_word",
  1056. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1057. </setting>
  1058. <setting>
  1059. <name>custom.fields.Characters</name>
  1060. <value>{"type":"text","analyzer": "ik_max_word",
  1061. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1062. </setting>
  1063. <setting>
  1064. <name>custom.fields.ChemicalName</name>
  1065. <value>{"type":"text"}</value>
  1066. </setting>
  1067. <setting>
  1068. <name>custom.fields.Child</name>
  1069. <value>{"type":"text"}</value>
  1070. </setting>
  1071. <setting>
  1072. <name>custom.fields.CreationDate</name>
  1073. <value>{"type":"date","format":"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||strict_date_optional_time||epoch_millis"}</value>
  1074. </setting>
  1075. <setting>
  1076. <name>custom.fields.Dosage</name>
  1077. <value>{"type":"text","analyzer": "ik_max_word",
  1078. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1079. </setting>
  1080. <setting>
  1081. <name>custom.fields.DrugInteractions</name>
  1082. <value>{"type":"text","analyzer": "ik_max_word",
  1083. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1084. </setting>
  1085. <setting>
  1086. <name>custom.fields.EnglishName</name>
  1087. <value>{"type":"text"}</value>
  1088. </setting>
  1089. <setting>
  1090. <name>custom.fields.Introduction</name>
  1091. <value>{"type":"text","analyzer": "ik_max_word",
  1092. "search_analyzer":"ik_smart","ignore_above":5000}</value>
  1093. </setting>
  1094. <setting>
  1095. <name>custom.fields.LastModified</name>
  1096. <value>{"type":"date","format":"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||strict_date_optional_time||epoch_millis"}</value>
  1097. </setting>
  1098. <setting>
  1099. <name>custom.fields.Manual</name>
  1100. <value>{"type":"text"}</value>
  1101. </setting>
  1102. <setting>
  1103. <name>custom.fields.Manufacturer</name>
  1104. <value>{"type":"text","analyzer": "ik_max_word",
  1105. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1106. </setting>
  1107. <setting>
  1108. <name>custom.fields.OlderPatients</name>
  1109. <value>{"type":"text"}</value>
  1110. </setting>
  1111. <setting>
  1112. <name>custom.fields.Overdose</name>
  1113. <value>{"type":"text"}</value>
  1114. </setting>
  1115. <setting>
  1116. <name>custom.fields.PackingProduct</name>
  1117. <value>{"type":"text"}</value>
  1118. </setting>
  1119. <setting>
  1120. <name>custom.fields.Pharmaco</name>
  1121. <value>{"type":"text","analyzer": "ik_max_word",
  1122. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1123. </setting>
  1124. <setting>
  1125. <name>custom.fields.Pharmacokinetics</name>
  1126. <value>{"type":"text","analyzer": "ik_max_word",
  1127. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1128. </setting>
  1129. <setting>
  1130. <name>custom.fields.Precautions</name>
  1131. <value>{"type":"text","analyzer": "ik_max_word",
  1132. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1133. </setting>
  1134. <setting>
  1135. <name>custom.fields.PregnantWoman</name>
  1136. <value>{"type":"text","analyzer": "ik_max_word",
  1137. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1138. </setting>
  1139. <setting>
  1140. <name>custom.fields.ProductName</name>
  1141. <value>{"type":"text","analyzer": "ik_max_word",
  1142. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1143. </setting>
  1144. <setting>
  1145. <name>custom.fields.ProductTag</name>
  1146. <value>{"type":"text","analyzer": "ik_max_word",
  1147. "search_analyzer":"ik_smart","index":true}</value>
  1148. </setting>
  1149. <setting>
  1150. <name>custom.fields.ProudctDescription</name>
  1151. <value>{"type":"text","analyzer": "ik_max_word",
  1152. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1153. </setting>
  1154. <setting>
  1155. <name>custom.fields.ProudctMainMaterial</name>
  1156. <value>{"type":"text","analyzer": "ik_max_word",
  1157. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1158. </setting>
  1159. <setting>
  1160. <name>custom.fields.ProudctName</name>
  1161. <value>{"type":"text","analyzer": "ik_max_word",
  1162. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1163. </setting>
  1164. <setting>
  1165. <name>custom.fields.Proudctusercrowd</name>
  1166. <value>{"type":"text","analyzer": "ik_max_word",
  1167. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1168. </setting>
  1169. <setting>
  1170. <name>custom.fields.SFDAApprovalValidDate</name>
  1171. <value>{"type":"date","format":"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||strict_date_optional_time||epoch_millis"}</value>
  1172. </setting>
  1173. <setting>
  1174. <name>custom.fields.SFDAGmpCertificateDate</name>
  1175. <value>{"type":"date","format":"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||strict_date_optional_time||epoch_millis"}</value>
  1176. </setting>
  1177. <setting>
  1178. <name>custom.fields.Standards</name>
  1179. <value>{"type":"text"}</value>
  1180. </setting>
  1181. <setting>
  1182. <name>custom.fields.Storage</name>
  1183. <value>{"type":"text","analyzer": "ik_max_word",
  1184. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1185. </setting>
  1186. <setting>
  1187. <name>custom.fields.Taboo</name>
  1188. <value>{"type":"text","analyzer": "ik_max_word",
  1189. "search_analyzer":"ik_smart","ignore_above":300}</value>
  1190. </setting>
  1191. <setting>
  1192. <name>custom.fields.product_join_field</name>
  1193. <value>{ "type": "join",
  1194. "relations": {
  1195. "Product": "Order"
  1196. }}</value>
  1197. </setting>
  1198. <setting>
  1199. <name>custom.index.number_of_replicas</name>
  1200. <value>1</value>
  1201. </setting>
  1202. <setting>
  1203. <name>custom.index.number_of_shards</name>
  1204. <value>1</value>
  1205. </setting>
  1206. </settings>
  1207. <attributes/>
  1208. <cluster_schema/>
  1209. <remotesteps>
  1210. <input>
  1211. </input>
  1212. <output>
  1213. </output>
  1214. </remotesteps>
  1215. <GUI>
  1216. <xloc>368</xloc>
  1217. <yloc>176</yloc>
  1218. <draw>Y</draw>
  1219. </GUI>
  1220. </step>
  1221. <step>
  1222. <name>Java 代码</name>
  1223. <type>UserDefinedJavaClass</type>
  1224. <description/>
  1225. <distribute>Y</distribute>
  1226. <custom_distribution/>
  1227. <copies>10</copies>
  1228. <partitioning>
  1229. <method>none</method>
  1230. <schema_name/>
  1231. </partitioning>
  1232. <definitions>
  1233. <definition>
  1234. <class_type>TRANSFORM_CLASS</class_type>
  1235. <class_name>Processor</class_name>
  1236. <class_source>import java.sql.*;
  1237. import org.pentaho.di.core.database.*;
  1238. public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
  1239. {
  1240. Object[] r = getRow();
  1241. if (r == null) {
  1242. setOutputDone();
  1243. return false;
  1244. }
  1245. r = createOutputRow(r, data.outputRowMeta.size());
  1246. //获取数据库名和表名
  1247. String dbName = "testSqlServer";//getInputRowMeta().getString(r, "conname", null );
  1248. String tablename = "DataImport_product";//getInputRowMeta().getString(r, "tablename", null );
  1249. String idname = "ProductKey";//getInputRowMeta().getString(r, "idname", null );
  1250. String sourceidname = "ProductCode";//getInputRowMeta().getString(r, "sourceidname", null );
  1251. String sourcetablename = "product";//getInputRowMeta().getString(r, "sourcetablename", null );
  1252. if (dbName==null||tablename==null) {
  1253. throw new KettleException("Unable to find field with name "+tablename+" in the input row.");
  1254. }
  1255. //logBasic("table---"+tablename);
  1256. //数据库连接
  1257. Database database=null;
  1258. DatabaseMeta databaseMeta=null;
  1259. try {
  1260. databaseMeta = getTransMeta().findDatabase(dbName);
  1261. if (databaseMeta==null) {
  1262. logError("A connection with name "+dbName+" could not be found!");
  1263. setErrors(1);
  1264. return false;
  1265. }
  1266. database = new Database(getTrans(), databaseMeta);
  1267. database.connect();
  1268. //logBasic("success!");
  1269. } catch(Exception e) {
  1270. logError("Connecting to database "+dbName+" failed.", e);
  1271. setErrors(1);
  1272. return false;
  1273. }
  1274. //查询表数据
  1275. ResultSet resultSet;
  1276. try {
  1277. RowMetaInterface idxRowMeta =data.outputRowMeta;
  1278. int i=0;
  1279. r = createOutputRow(r, data.outputRowMeta.size());
  1280. //int index = getInputRowMeta().size();
  1281. // Add the index name
  1282. //
  1283. String Id = idxRowMeta.getString(r, idname, null);
  1284. // Add the column name
  1285. String DataId = idxRowMeta.getString(r, sourceidname, null);
  1286. String sqlSelect = "select Id from "+tablename + " where DataId = '"+ DataId +"'";
  1287. resultSet = database.openQuery(sqlSelect);
  1288. Object[] idxRow = database.getRow(resultSet);
  1289. if(idxRow!=null){
  1290. return true;
  1291. }
  1292. //logBasic("idxRow--Id"+Id);
  1293. //logBasic("idxRow--sourcetablename"+sourcetablename);
  1294. //logBasic("idxRow--DataId"+DataId);
  1295. //3.获得预处理对象
  1296. String sql=" insert into "+tablename+" values (?,?,?)";
  1297. //logBasic("idxRow--database"+ database);
  1298. PreparedStatement stat = database.prepareSQL(sql);
  1299. //logBasic("idxRow--database"+ stat);
  1300. //stat.addBatch(sql);
  1301. //4.SQL语句占位符设置实际参数
  1302. stat.setString(1, Id);//索引参数1代表着sql中的第一个?号,也就是我需要将条件sid所对应的sname数据更新为“儿童玩具测试”
  1303. stat.setString(2, sourcetablename);//索引参数2代表着sql中的第二个?号,也就是条件是sid为3
  1304. stat.setString(3, DataId);//索引参数2代表着sql中的第二个?号,也就是条件是sid为3
  1305. //5.执行SQL语句
  1306. boolean line = stat.execute();
  1307. //int[] line = stat.executeBatch();
  1308. System.out.println("更新记录数"+ line);
  1309. //6.释放资源
  1310. stat.close();
  1311. //logBasic("idxRow--length"+i);
  1312. }
  1313. catch(Exception e) {
  1314. throw new KettleException(e);
  1315. }
  1316. //释放连接
  1317. if (database!=null) {
  1318. database.disconnect();
  1319. }
  1320. // Send the row on to the next step.
  1321. putRow(data.outputRowMeta, r);
  1322. return true;
  1323. }</class_source>
  1324. </definition>
  1325. </definitions>
  1326. <fields>
  1327. </fields>
  1328. <clear_result_fields>N</clear_result_fields>
  1329. <info_steps/>
  1330. <target_steps/>
  1331. <usage_parameters/>
  1332. <attributes/>
  1333. <cluster_schema/>
  1334. <remotesteps>
  1335. <input>
  1336. </input>
  1337. <output>
  1338. </output>
  1339. </remotesteps>
  1340. <GUI>
  1341. <xloc>497</xloc>
  1342. <yloc>58</yloc>
  1343. <draw>Y</draw>
  1344. </GUI>
  1345. </step>
  1346. <step>
  1347. <name>表输入 2</name>
  1348. <type>TableInput</type>
  1349. <description/>
  1350. <distribute>Y</distribute>
  1351. <custom_distribution/>
  1352. <copies>1</copies>
  1353. <partitioning>
  1354. <method>none</method>
  1355. <schema_name/>
  1356. </partitioning>
  1357. <connection>testSqlserver</connection>
  1358. <sql>SELECT
  1359. row_number() over (order by productCode asc ) as ProductKey
  1360. ,[ProductCode]
  1361. ,convert(varchar(19),[CreationDate],120) as [CreationDate]
  1362. ,convert(varchar(19),[LastModified],120) as [LastModified]
  1363. ,[ProductName]
  1364. ,ltrim(rtrim([ClassCode])) as ClassCode
  1365. ,[CommonTitle]
  1366. ,[Introduction]
  1367. ,[Unit]
  1368. ,[Manufacturer]
  1369. ,[Packing]
  1370. ,[ProductStatusType]
  1371. ,[IsVisible]
  1372. ,[PurchasePrice]
  1373. ,[MarketPrice]
  1374. ,[OurPrice]
  1375. ,[AppreciationPrice]
  1376. ,[ProfitLevel]
  1377. ,[Manual]
  1378. ,[WapManual]
  1379. ,[Views]
  1380. ,[PriceSectorPricing]
  1381. ,[BrandCode]
  1382. ,[ProductType]
  1383. ,[Inspection]
  1384. ,[Composition]
  1385. ,[Weight]
  1386. ,[GmpCode]
  1387. ,[GmpCertificateUrl]
  1388. ,[ProductImageUrl]
  1389. ,[ThumbnailUrl]
  1390. ,[Img100]
  1391. ,[Img180]
  1392. ,[Img320]
  1393. ,[StandardCode]
  1394. ,[BarCode]
  1395. ,[ApprovalNumber]
  1396. ,[ProductAttribute]
  1397. ,[Formulation]
  1398. ,[PrescriptionType]
  1399. ,[PurchaseWhile]
  1400. ,[HealthInsuranceType]
  1401. ,[ConsumeDays]
  1402. ,[ProductTag]
  1403. ,[IsGifts]
  1404. ,[Standards]
  1405. ,[Dosage]
  1406. ,[MassDate]
  1407. ,[Storage]
  1408. ,[IsControl]
  1409. ,[ControlNumber]
  1410. ,[PackingNumber]
  1411. ,[PinyinCode]
  1412. ,[PinyinFullCode]
  1413. ,[ProductLine]
  1414. ,[SubProductLine]
  1415. ,[IsRecommend]
  1416. ,[SFDACode]
  1417. ,convert(varchar(19),[SFDAApprovalValidDate],120) as [SFDAApprovalValidDate]
  1418. ,convert(varchar(19),[SFDAGmpCertificateDate],120) as [SFDAGmpCertificateDate]
  1419. ,[SFDAStatus]
  1420. ,[QcClass]
  1421. ,[SyncStatus]
  1422. ,[recordState]
  1423. ,[IsSuit]
  1424. ,[SuitDescription]
  1425. ,[FinancialType]
  1426. ,[ProudctDescription]
  1427. ,[PlureProductStatusType]
  1428. ,[Productmainmaterial]
  1429. ,[Productusecrowd]
  1430. ,[Displaytab]
  1431. ,[EnglishName]
  1432. ,[ChemicalName]
  1433. ,[Structure]
  1434. ,[Formula]
  1435. ,[Molecular]
  1436. ,[Characters]
  1437. ,[Adverse]
  1438. ,[Taboo]
  1439. ,[Precautions]
  1440. ,[Child]
  1441. ,[OlderPatients]
  1442. ,[PregnantWoman]
  1443. ,[DrugInteractions]
  1444. ,[Overdose]
  1445. ,[Pharmaco]
  1446. ,[Pharmacokinetics]
  1447. ,[PackingProduct]
  1448. ,[ExternalID]
  1449. ,[Remark]
  1450. ,[ProductHotType]
  1451. ,[MobilephoneUrl]
  1452. ,[BtManual]
  1453. ,[ProductRecommend]
  1454. ,[ToErp]
  1455. ,[ProductusecrowdCode]
  1456. ,[PlaceCode]
  1457. ,[FormulationCode]
  1458. ,[UsageCode]
  1459. ,[ManufacturerCode]
  1460. ,[ShowMall]
  1461. ,[DivisionCode]
  1462. ,[BranchCode]
  1463. ,[MerchantManageCode]
  1464. ,[MinMarketPrice]
  1465. ,[CheckPendingPrice]
  1466. ,[ControlAreaRegion]
  1467. ,[ProductCodeForOutOfStock]
  1468. ,[IsLimitPrice]
  1469. ,[CommonTitlePinyin]
  1470. ,[ProductInventory]
  1471. ,[PostageLogo]
  1472. ,[Quantity]
  1473. ,[IsDrugRecord]
  1474. ,[OutOfStockRecommendCodes]
  1475. ,[GiftCategory]
  1476. ,[BusinessIds]
  1477. ,[CategoryType]
  1478. ,[XQuantity]
  1479. ,[UserName]
  1480. ,[Comment]
  1481. ,[CQuantity]
  1482. ,'Product' as product_join_field
  1483. FROM [MemberData].[dbo].[mem_Product]</sql>
  1484. <limit>0</limit>
  1485. <lookup/>
  1486. <execute_each_row>N</execute_each_row>
  1487. <variables_active>N</variables_active>
  1488. <lazy_conversion_active>N</lazy_conversion_active>
  1489. <attributes/>
  1490. <cluster_schema/>
  1491. <remotesteps>
  1492. <input>
  1493. </input>
  1494. <output>
  1495. </output>
  1496. </remotesteps>
  1497. <GUI>
  1498. <xloc>288</xloc>
  1499. <yloc>32</yloc>
  1500. <draw>Y</draw>
  1501. </GUI>
  1502. </step>
  1503. <step_error_handling>
  1504. </step_error_handling>
  1505. <slave-step-copy-partition-distribution>
  1506. </slave-step-copy-partition-distribution>
  1507. <slave_transformation>N</slave_transformation>
  1508. <attributes/>
  1509. </transformation>