Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

A_PARTNER_SUPPLIER_sync_dw_supplier.json 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. {
  2. "warehouse_table": "dw_supplier",
  3. "business_tables": "A_PARTNER_SUPPLIER",
  4. "description": "供应商信息同步到数据仓库",
  5. "fields": [
  6. {
  7. "name": "supplier_id",
  8. "source_name": "SUPPLIER_ID",
  9. "type": "VARCHAR(40)",
  10. "description": "供应商唯一标识符",
  11. "is_incremental": false,
  12. "is_accounting": false
  13. },
  14. {
  15. "name": "supplier_name",
  16. "source_name": "SUPPLIER_NAME",
  17. "type": "VARCHAR(200)",
  18. "description": "供应商名称",
  19. "is_incremental": false,
  20. "is_accounting": false
  21. },
  22. {
  23. "name": "supplier_cname",
  24. "source_name": "SUPPLIER_CNAME",
  25. "type": "VARCHAR(200)",
  26. "description": "供应商简称",
  27. "is_incremental": false,
  28. "is_accounting": false
  29. },
  30. {
  31. "name": "supplier_full_name",
  32. "source_name": "SUPPLIER_FULL_NAME",
  33. "type": "VARCHAR(200)",
  34. "description": "供应商全称",
  35. "is_incremental": false,
  36. "is_accounting": false
  37. },
  38. {
  39. "name": "supplier_state",
  40. "source_name": "SUPPLIER_STATE",
  41. "type": "BIGINT",
  42. "description": "供应商状态",
  43. "is_incremental": false,
  44. "is_accounting": true
  45. },
  46. {
  47. "name": "supplier_category",
  48. "source_name": "SUPPLIER_CATEGORY",
  49. "type": "VARCHAR(40)",
  50. "description": "供应商类别",
  51. "is_incremental": false,
  52. "is_accounting": false
  53. },
  54. {
  55. "name": "supplier_score",
  56. "source_name": "SUPPLIER_SCORE",
  57. "type": "BIGINT",
  58. "description": "供应商评分",
  59. "is_incremental": false,
  60. "is_accounting": false
  61. },
  62. {
  63. "name": "supplier_contact",
  64. "source_name": "SUPPLIER_CONTACT",
  65. "type": "VARCHAR(100)",
  66. "description": "业务对接联系人",
  67. "is_incremental": false,
  68. "is_accounting": false
  69. },
  70. {
  71. "name": "represent_name",
  72. "source_name": "REPRESENT_NAME",
  73. "type": "VARCHAR(100)",
  74. "description": "法人代表姓名",
  75. "is_incremental": false,
  76. "is_accounting": false
  77. },
  78. {
  79. "name": "represent_tel",
  80. "source_name": "REPRESENT_TEL",
  81. "type": "VARCHAR(40)",
  82. "description": "法人代表电话",
  83. "is_incremental": false,
  84. "is_accounting": false
  85. },
  86. {
  87. "name": "represent_idcard",
  88. "source_name": "REPRESENT_IDCARD",
  89. "type": "VARCHAR(40)",
  90. "description": "法人代表身份证",
  91. "is_incremental": false,
  92. "is_accounting": false
  93. },
  94. {
  95. "name": "supplier_tel",
  96. "source_name": "SUPPLIER_TEL",
  97. "type": "VARCHAR(64)",
  98. "description": "供应商固定电话",
  99. "is_incremental": false,
  100. "is_accounting": false
  101. },
  102. {
  103. "name": "supplier_mobile",
  104. "source_name": "SUPPLIER_MOBILE",
  105. "type": "VARCHAR(40)",
  106. "description": "供应商手机",
  107. "is_incremental": false,
  108. "is_accounting": false
  109. },
  110. {
  111. "name": "supplier_email",
  112. "source_name": "SUPPLIER_EMAIL",
  113. "type": "VARCHAR(100)",
  114. "description": "供应商邮箱",
  115. "is_incremental": false,
  116. "is_accounting": false
  117. },
  118. {
  119. "name": "supplier_bank",
  120. "source_name": "SUPPLIER_BANK",
  121. "type": "VARCHAR(100)",
  122. "description": "供应商银行信息",
  123. "is_incremental": false,
  124. "is_accounting": false
  125. },
  126. {
  127. "name": "supplier_business_buyer",
  128. "source_name": "SUPPLIER_BUSINESS_BUYER",
  129. "type": "VARCHAR(100)",
  130. "description": "业务采购负责人",
  131. "is_incremental": false,
  132. "is_accounting": false
  133. },
  134. {
  135. "name": "supplier_business_tel",
  136. "source_name": "SUPPLIER_BUSINESS_TEL",
  137. "type": "VARCHAR(40)",
  138. "description": "业务联系电话",
  139. "is_incremental": false,
  140. "is_accounting": false
  141. },
  142. {
  143. "name": "area_province",
  144. "source_name": "AREA_PROVINCE",
  145. "type": "VARCHAR(40)",
  146. "description": "省份",
  147. "is_incremental": false,
  148. "is_accounting": false
  149. },
  150. {
  151. "name": "area_province_code",
  152. "source_name": "AREA_PROVINCE_CODE",
  153. "type": "VARCHAR(40)",
  154. "description": "省份代码",
  155. "is_incremental": false,
  156. "is_accounting": false
  157. },
  158. {
  159. "name": "area_city",
  160. "source_name": "AREA_CITY",
  161. "type": "VARCHAR(40)",
  162. "description": "城市",
  163. "is_incremental": false,
  164. "is_accounting": false
  165. },
  166. {
  167. "name": "area_city_code",
  168. "source_name": "AREA_CITY_CODE",
  169. "type": "VARCHAR(16)",
  170. "description": "城市代码",
  171. "is_incremental": false,
  172. "is_accounting": false
  173. },
  174. {
  175. "name": "area_district",
  176. "source_name": "AREA_DISTRICT",
  177. "type": "VARCHAR(40)",
  178. "description": "区县",
  179. "is_incremental": false,
  180. "is_accounting": false
  181. },
  182. {
  183. "name": "area_district_code",
  184. "source_name": "AREA_DISTRICT_CODE",
  185. "type": "VARCHAR(40)",
  186. "description": "区县代码",
  187. "is_incremental": false,
  188. "is_accounting": false
  189. },
  190. {
  191. "name": "area_town",
  192. "source_name": "AREA_TOWN",
  193. "type": "VARCHAR(40)",
  194. "description": "乡镇/街道",
  195. "is_incremental": false,
  196. "is_accounting": false
  197. },
  198. {
  199. "name": "area_town_code",
  200. "source_name": "AREA_TOWN_CODE",
  201. "type": "VARCHAR(40)",
  202. "description": "乡镇/街道代码",
  203. "is_incremental": false,
  204. "is_accounting": false
  205. },
  206. {
  207. "name": "common_cooperate",
  208. "source_name": "COMMON_COOPERATE",
  209. "type": "VARCHAR(40)",
  210. "description": "合作类型",
  211. "is_incremental": false,
  212. "is_accounting": false
  213. },
  214. {
  215. "name": "common_cooperate_code",
  216. "source_name": "COMMON_COOPERATE_CODE",
  217. "type": "VARCHAR(24)",
  218. "description": "合作类型代码",
  219. "is_incremental": false,
  220. "is_accounting": false
  221. },
  222. {
  223. "name": "common_level",
  224. "source_name": "COMMON_LEVEL",
  225. "type": "VARCHAR(40)",
  226. "description": "供应商等级",
  227. "is_incremental": false,
  228. "is_accounting": false
  229. },
  230. {
  231. "name": "common_level_code",
  232. "source_name": "COMMON_LEVEL_CODE",
  233. "type": "VARCHAR(16)",
  234. "description": "供应商等级代码",
  235. "is_incremental": false,
  236. "is_accounting": false
  237. },
  238. {
  239. "name": "common_manage_type",
  240. "source_name": "COMMON_MANAGETYPE",
  241. "type": "VARCHAR(40)",
  242. "description": "管理类型",
  243. "is_incremental": false,
  244. "is_accounting": false
  245. },
  246. {
  247. "name": "common_manage_type_code",
  248. "source_name": "COMMON_MANAGETYPE_CODE",
  249. "type": "VARCHAR(16)",
  250. "description": "管理类型代码",
  251. "is_incremental": false,
  252. "is_accounting": false
  253. },
  254. {
  255. "name": "common_production_type",
  256. "source_name": "COMMON_PRODUCTION_TYPE",
  257. "type": "VARCHAR(16)",
  258. "description": "生产类型",
  259. "is_incremental": false,
  260. "is_accounting": false
  261. },
  262. {
  263. "name": "common_production_type_name",
  264. "source_name": "COMMON_PRODUCTION_TYPE_NAME",
  265. "type": "VARCHAR(40)",
  266. "description": "生产类型名称",
  267. "is_incremental": false,
  268. "is_accounting": false
  269. },
  270. {
  271. "name": "common_quality",
  272. "source_name": "COMMON_QUALITY",
  273. "type": "VARCHAR(40)",
  274. "description": "质量等级",
  275. "is_incremental": false,
  276. "is_accounting": false
  277. },
  278. {
  279. "name": "common_quality_code",
  280. "source_name": "COMMON_QUALITY_CODE",
  281. "type": "VARCHAR(16)",
  282. "description": "质量等级代码",
  283. "is_incremental": false,
  284. "is_accounting": false
  285. },
  286. {
  287. "name": "cooperation_brand",
  288. "source_name": "COOPERATION_BRAND",
  289. "type": "VARCHAR(60)",
  290. "description": "合作品牌",
  291. "is_incremental": false,
  292. "is_accounting": false
  293. },
  294. {
  295. "name": "annual_output",
  296. "source_name": "ANNUAL_OUTPUT",
  297. "type": "BIGINT",
  298. "description": "年产量",
  299. "is_incremental": false,
  300. "is_accounting": false
  301. },
  302. {
  303. "name": "month_output",
  304. "source_name": "MONTH_OUTPUT",
  305. "type": "BIGINT",
  306. "description": "月产量",
  307. "is_incremental": false,
  308. "is_accounting": false
  309. },
  310. {
  311. "name": "month_new_goods_count",
  312. "source_name": "MONTH_NEW_GOODS_COUNT",
  313. "type": "BIGINT",
  314. "description": "每月新品数量",
  315. "is_incremental": false,
  316. "is_accounting": false
  317. },
  318. {
  319. "name": "machines_number",
  320. "source_name": "MACHINES_NUMBER",
  321. "type": "BIGINT",
  322. "description": "机器数量",
  323. "is_incremental": false,
  324. "is_accounting": false
  325. },
  326. {
  327. "name": "edition_making_time",
  328. "source_name": "EDITION_MAKING_TIME",
  329. "type": "BIGINT",
  330. "description": "版单制作时间",
  331. "is_incremental": false,
  332. "is_accounting": false
  333. },
  334. {
  335. "name": "introduction_year",
  336. "source_name": "INTRODUCTION_YEAR",
  337. "type": "BIGINT",
  338. "description": "引入年份",
  339. "is_incremental": false,
  340. "is_accounting": false
  341. },
  342. {
  343. "name": "supplier_factory_nums",
  344. "source_name": "SUPPLIER_FACTORY_NUMS",
  345. "type": "BIGINT",
  346. "description": "工厂数量",
  347. "is_incremental": false,
  348. "is_accounting": false
  349. },
  350. {
  351. "name": "supplier_company_life",
  352. "source_name": "SUPPLIER_COMPANY_LIFE",
  353. "type": "BIGINT",
  354. "description": "公司成立年限",
  355. "is_incremental": false,
  356. "is_accounting": false
  357. },
  358. {
  359. "name": "supplier_area",
  360. "source_name": "SUPPLIER_AREA",
  361. "type": "BIGINT",
  362. "description": "供应商区域代码",
  363. "is_incremental": false,
  364. "is_accounting": false
  365. },
  366. {
  367. "name": "supplier_factory",
  368. "source_name": "SUPPLIER_FACTORY",
  369. "type": "BIGINT",
  370. "description": "是否为工厂",
  371. "is_incremental": false,
  372. "is_accounting": false
  373. },
  374. {
  375. "name": "supplier_material",
  376. "source_name": "SUPPLIER_MATERIAL",
  377. "type": "BIGINT",
  378. "description": "是否为物料供应商",
  379. "is_incremental": false,
  380. "is_accounting": false
  381. },
  382. {
  383. "name": "supplier_mwarehouse",
  384. "source_name": "SUPPLIER_MWAREHOUSE",
  385. "type": "BIGINT",
  386. "description": "是否为物料仓库",
  387. "is_incremental": false,
  388. "is_accounting": false
  389. },
  390. {
  391. "name": "supplier_gwarehouse",
  392. "source_name": "SUPPLIER_GWAREHOUSE",
  393. "type": "BIGINT",
  394. "description": "是否为成品仓库",
  395. "is_incremental": false,
  396. "is_accounting": false
  397. },
  398. {
  399. "name": "supplier_sales_customer",
  400. "source_name": "SUPPLIER_SALES_CUSTOMER",
  401. "type": "BIGINT",
  402. "description": "是否为销售客户",
  403. "is_incremental": false,
  404. "is_accounting": false
  405. },
  406. {
  407. "name": "system_is_scm",
  408. "source_name": "SYSTEM_IS_SCM",
  409. "type": "BIGINT",
  410. "description": "是否为SCM系统供应商",
  411. "is_incremental": false,
  412. "is_accounting": false
  413. },
  414. {
  415. "name": "retail_now_discount",
  416. "source_name": "RETAIL_NOW_DISCOUNT",
  417. "type": "BIGINT",
  418. "description": "零售现款折扣",
  419. "is_incremental": false,
  420. "is_accounting": false
  421. },
  422. {
  423. "name": "wholesale_now_discount",
  424. "source_name": "WHOLESALE_NOW_DISCOUNT",
  425. "type": "BIGINT",
  426. "description": "批发现款折扣",
  427. "is_incremental": false,
  428. "is_accounting": false
  429. },
  430. {
  431. "name": "wholesale_futures_discount",
  432. "source_name": "WHOLESALE_FUTURES_DISCOUNT",
  433. "type": "BIGINT",
  434. "description": "批发期货折扣",
  435. "is_incremental": false,
  436. "is_accounting": false
  437. },
  438. {
  439. "name": "supplier_assessment_code",
  440. "source_name": "SUPPLIER_ASSESSMENT_CODE",
  441. "type": "BIGINT",
  442. "description": "供应商评估代码",
  443. "is_incremental": false,
  444. "is_accounting": false
  445. },
  446. {
  447. "name": "supplier_assessment_name",
  448. "source_name": "SUPPLIER_ASSESSMENT_NAME",
  449. "type": "VARCHAR(64)",
  450. "description": "供应商评估名称",
  451. "is_incremental": false,
  452. "is_accounting": false
  453. },
  454. {
  455. "name": "tax_ratio",
  456. "source_name": "TAX_RATIO",
  457. "type": "BIGINT",
  458. "description": "税率",
  459. "is_incremental": false,
  460. "is_accounting": false
  461. },
  462. {
  463. "name": "tax_ratio_id",
  464. "source_name": "TAX_RATIO_ID",
  465. "type": "VARCHAR(16)",
  466. "description": "税率ID",
  467. "is_incremental": false,
  468. "is_accounting": false
  469. },
  470. {
  471. "name": "currency_id",
  472. "source_name": "CURRENCY_ID",
  473. "type": "VARCHAR(32)",
  474. "description": "货币ID",
  475. "is_incremental": false,
  476. "is_accounting": false
  477. },
  478. {
  479. "name": "payment_scheme_id",
  480. "source_name": "PAYMENT_SCHEME_ID",
  481. "type": "VARCHAR(8)",
  482. "description": "付款方案ID",
  483. "is_incremental": false,
  484. "is_accounting": false
  485. },
  486. {
  487. "name": "factory_id",
  488. "source_name": "FACTORY_ID",
  489. "type": "VARCHAR(32)",
  490. "description": "工厂ID",
  491. "is_incremental": false,
  492. "is_accounting": false
  493. },
  494. {
  495. "name": "contract_template_id",
  496. "source_name": "CONTRACT_TEMPLATE_ID",
  497. "type": "VARCHAR(32)",
  498. "description": "合同模板ID",
  499. "is_incremental": false,
  500. "is_accounting": false
  501. },
  502. {
  503. "name": "electron_sign_platform",
  504. "source_name": "ELECTRON_SIGN_PLATFORM",
  505. "type": "VARCHAR(32)",
  506. "description": "电子签章平台",
  507. "is_incremental": false,
  508. "is_accounting": false
  509. },
  510. {
  511. "name": "sign_mode",
  512. "source_name": "SIGN_MODE",
  513. "type": "VARCHAR(8)",
  514. "description": "签章模式",
  515. "is_incremental": false,
  516. "is_accounting": false
  517. },
  518. {
  519. "name": "society_credit_code",
  520. "source_name": "SOCIETY_CREDIT_CODE",
  521. "type": "VARCHAR(128)",
  522. "description": "社会信用代码",
  523. "is_incremental": false,
  524. "is_accounting": false
  525. },
  526. {
  527. "name": "supplier_outside_id",
  528. "source_name": "SUPPLIER_OUTSIDE_ID",
  529. "type": "VARCHAR(128)",
  530. "description": "外部系统供应商ID",
  531. "is_incremental": false,
  532. "is_accounting": false
  533. },
  534. {
  535. "name": "tenant_id",
  536. "source_name": "TENANT_ID",
  537. "type": "VARCHAR(64)",
  538. "description": "租户ID",
  539. "is_incremental": false,
  540. "is_accounting": false
  541. },
  542. {
  543. "name": "supplier_company_id",
  544. "source_name": "SUPPLIER_COMPANY_ID",
  545. "type": "VARCHAR(64)",
  546. "description": "供应商公司ID",
  547. "is_incremental": false,
  548. "is_accounting": false
  549. },
  550. {
  551. "name": "supplier_depot_id",
  552. "source_name": "SUPPLIER_DEPOT_ID",
  553. "type": "VARCHAR(64)",
  554. "description": "供应商仓库ID",
  555. "is_incremental": false,
  556. "is_accounting": false
  557. },
  558. {
  559. "name": "create_date",
  560. "source_name": "CREATE_DATE",
  561. "type": "DATETIME",
  562. "description": "创建时间",
  563. "is_incremental": false,
  564. "is_accounting": false
  565. },
  566. {
  567. "name": "create_userid",
  568. "source_name": "CREATE_USERID",
  569. "type": "VARCHAR(64)",
  570. "description": "创建用户ID",
  571. "is_incremental": false,
  572. "is_accounting": false
  573. },
  574. {
  575. "name": "create_username",
  576. "source_name": "CREATE_USERNAME",
  577. "type": "VARCHAR(64)",
  578. "description": "创建用户名",
  579. "is_incremental": false,
  580. "is_accounting": false
  581. },
  582. {
  583. "name": "update_date",
  584. "source_name": "UPDATE_DATE",
  585. "type": "DATETIME",
  586. "description": "更新时间",
  587. "is_incremental": true,
  588. "is_accounting": false
  589. },
  590. {
  591. "name": "update_userid",
  592. "source_name": "UPDATE_USERID",
  593. "type": "VARCHAR(64)",
  594. "description": "更新用户ID",
  595. "is_incremental": false,
  596. "is_accounting": false
  597. },
  598. {
  599. "name": "update_username",
  600. "source_name": "UPDATE_USERNAME",
  601. "type": "VARCHAR(64)",
  602. "description": "更新用户名",
  603. "is_incremental": false,
  604. "is_accounting": false
  605. },
  606. {
  607. "name": "time_begin",
  608. "source_name": "TIME_BEGIN",
  609. "type": "DATETIME",
  610. "description": "有效开始时间",
  611. "is_incremental": false,
  612. "is_accounting": false
  613. },
  614. {
  615. "name": "time_end",
  616. "source_name": "TIME_END",
  617. "type": "DATETIME",
  618. "description": "有效结束时间",
  619. "is_incremental": false,
  620. "is_accounting": false
  621. },
  622. {
  623. "name": "time_import",
  624. "source_name": "TIME_IMPORT",
  625. "type": "DATETIME",
  626. "description": "数据导入时间",
  627. "is_incremental": false,
  628. "is_accounting": false
  629. }
  630. ],
  631. "full_sync_sql": "INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_category, supplier_score, supplier_contact, represent_name, represent_tel, represent_idcard, supplier_tel, supplier_mobile, supplier_email, supplier_bank, supplier_business_buyer, supplier_business_tel, area_province, area_province_code, area_city, area_city_code, area_district, area_district_code, area_town, area_town_code, common_cooperate, common_cooperate_code, common_level, common_level_code, common_manage_type, common_manage_type_code, common_production_type, common_production_type_name, common_quality, common_quality_code, cooperation_brand, annual_output, month_output, month_new_goods_count, machines_number, edition_making_time, introduction_year, supplier_factory_nums, supplier_company_life, supplier_area, supplier_factory, supplier_material, supplier_mwarehouse, supplier_gwarehouse, supplier_sales_customer, system_is_scm, retail_now_discount, wholesale_now_discount, wholesale_futures_discount, supplier_assessment_code, supplier_assessment_name, tax_ratio, tax_ratio_id, currency_id, payment_scheme_id, factory_id, contract_template_id, electron_sign_platform, sign_mode, society_credit_code, supplier_outside_id, tenant_id, supplier_company_id, supplier_depot_id, create_date, create_userid, create_username, update_date, update_userid, update_username, time_begin, time_end, time_import)\nSELECT \n SUPPLIER_ID as supplier_id,\n SUPPLIER_NAME as supplier_name,\n SUPPLIER_CNAME as supplier_cname,\n SUPPLIER_FULL_NAME as supplier_full_name,\n SUPPLIER_STATE as supplier_state,\n SUPPLIER_CATEGORY as supplier_category,\n SUPPLIER_SCORE as supplier_score,\n SUPPLIER_CONTACT as supplier_contact,\n REPRESENT_NAME as represent_name,\n REPRESENT_TEL as represent_tel,\n REPRESENT_IDCARD as represent_idcard,\n SUPPLIER_TEL as supplier_tel,\n SUPPLIER_MOBILE as supplier_mobile,\n SUPPLIER_EMAIL as supplier_email,\n SUPPLIER_BANK as supplier_bank,\n SUPPLIER_BUSINESS_BUYER as supplier_business_buyer,\n SUPPLIER_BUSINESS_TEL as supplier_business_tel,\n AREA_PROVINCE as area_province,\n AREA_PROVINCE_CODE as area_province_code,\n AREA_CITY as area_city,\n AREA_CITY_CODE as area_city_code,\n AREA_DISTRICT as area_district,\n AREA_DISTRICT_CODE as area_district_code,\n AREA_TOWN as area_town,\n AREA_TOWN_CODE as area_town_code,\n COMMON_COOPERATE as common_cooperate,\n COMMON_COOPERATE_CODE as common_cooperate_code,\n COMMON_LEVEL as common_level,\n COMMON_LEVEL_CODE as common_level_code,\n COMMON_MANAGETYPE as common_manage_type,\n COMMON_MANAGETYPE_CODE as common_manage_type_code,\n COMMON_PRODUCTION_TYPE as common_production_type,\n COMMON_PRODUCTION_TYPE_NAME as common_production_type_name,\n COMMON_QUALITY as common_quality,\n COMMON_QUALITY_CODE as common_quality_code,\n COOPERATION_BRAND as cooperation_brand,\n ANNUAL_OUTPUT as annual_output,\n MONTH_OUTPUT as month_output,\n MONTH_NEW_GOODS_COUNT as month_new_goods_count,\n MACHINES_NUMBER as machines_number,\n EDITION_MAKING_TIME as edition_making_time,\n INTRODUCTION_YEAR as introduction_year,\n SUPPLIER_FACTORY_NUMS as supplier_factory_nums,\n SUPPLIER_COMPANY_LIFE as supplier_company_life,\n SUPPLIER_AREA as supplier_area,\n SUPPLIER_FACTORY as supplier_factory,\n SUPPLIER_MATERIAL as supplier_material,\n SUPPLIER_MWAREHOUSE as supplier_mwarehouse,\n SUPPLIER_GWAREHOUSE as supplier_gwarehouse,\n SUPPLIER_SALES_CUSTOMER as supplier_sales_customer,\n SYSTEM_IS_SCM as system_is_scm,\n RETAIL_NOW_DISCOUNT as retail_now_discount,\n WHOLESALE_NOW_DISCOUNT as wholesale_now_discount,\n WHOLESALE_FUTURES_DISCOUNT as wholesale_futures_discount,\n SUPPLIER_ASSESSMENT_CODE as supplier_assessment_code,\n SUPPLIER_ASSESSMENT_NAME as supplier_assessment_name,\n TAX_RATIO as tax_ratio,\n TAX_RATIO_ID as tax_ratio_id,\n CURRENCY_ID as currency_id,\n PAYMENT_SCHEME_ID as payment_scheme_id,\n FACTORY_ID as factory_id,\n CONTRACT_TEMPLATE_ID as contract_template_id,\n ELECTRON_SIGN_PLATFORM as electron_sign_platform,\n SIGN_MODE as sign_mode,\n SOCIETY_CREDIT_CODE as society_credit_code,\n SUPPLIER_OUTSIDE_ID as supplier_outside_id,\n TENANT_ID as tenant_id,\n SUPPLIER_COMPANY_ID as supplier_company_id,\n SUPPLIER_DEPOT_ID as supplier_depot_id,\n CREATE_DATE as create_date,\n CREATE_USERID as create_userid,\n CREATE_USERNAME as create_username,\n UPDATE_DATE as update_date,\n UPDATE_USERID as update_userid,\n UPDATE_USERNAME as update_username,\n TIME_BEGIN as time_begin,\n TIME_END as time_end,\n TIME_IMPORT as time_import\nFROM A_PARTNER_SUPPLIER\nWHERE SUPPLIER_STATE = 1\nORDER BY SUPPLIER_ID\nLIMIT :page_size OFFSET :offset;",
  632. "incremental_sync_sql": "INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_category, supplier_score, supplier_contact, represent_name, represent_tel, represent_idcard, supplier_tel, supplier_mobile, supplier_email, supplier_bank, supplier_business_buyer, supplier_business_tel, area_province, area_province_code, area_city, area_city_code, area_district, area_district_code, area_town, area_town_code, common_cooperate, common_cooperate_code, common_level, common_level_code, common_manage_type, common_manage_type_code, common_production_type, common_production_type_name, common_quality, common_quality_code, cooperation_brand, annual_output, month_output, month_new_goods_count, machines_number, edition_making_time, introduction_year, supplier_factory_nums, supplier_company_life, supplier_area, supplier_factory, supplier_material, supplier_mwarehouse, supplier_gwarehouse, supplier_sales_customer, system_is_scm, retail_now_discount, wholesale_now_discount, wholesale_futures_discount, supplier_assessment_code, supplier_assessment_name, tax_ratio, tax_ratio_id, currency_id, payment_scheme_id, factory_id, contract_template_id, electron_sign_platform, sign_mode, society_credit_code, supplier_outside_id, tenant_id, supplier_company_id, supplier_depot_id, create_date, create_userid, create_username, update_date, update_userid, update_username, time_begin, time_end, time_import)\nSELECT \n SUPPLIER_ID as supplier_id,\n SUPPLIER_NAME as supplier_name,\n SUPPLIER_CNAME as supplier_cname,\n SUPPLIER_FULL_NAME as supplier_full_name,\n SUPPLIER_STATE as supplier_state,\n SUPPLIER_CATEGORY as supplier_category,\n SUPPLIER_SCORE as supplier_score,\n SUPPLIER_CONTACT as supplier_contact,\n REPRESENT_NAME as represent_name,\n REPRESENT_TEL as represent_tel,\n REPRESENT_IDCARD as represent_idcard,\n SUPPLIER_TEL as supplier_tel,\n SUPPLIER_MOBILE as supplier_mobile,\n SUPPLIER_EMAIL as supplier_email,\n SUPPLIER_BANK as supplier_bank,\n SUPPLIER_BUSINESS_BUYER as supplier_business_buyer,\n SUPPLIER_BUSINESS_TEL as supplier_business_tel,\n AREA_PROVINCE as area_province,\n AREA_PROVINCE_CODE as area_province_code,\n AREA_CITY as area_city,\n AREA_CITY_CODE as area_city_code,\n AREA_DISTRICT as area_district,\n AREA_DISTRICT_CODE as area_district_code,\n AREA_TOWN as area_town,\n AREA_TOWN_CODE as area_town_code,\n COMMON_COOPERATE as common_cooperate,\n COMMON_COOPERATE_CODE as common_cooperate_code,\n COMMON_LEVEL as common_level,\n COMMON_LEVEL_CODE as common_level_code,\n COMMON_MANAGETYPE as common_manage_type,\n COMMON_MANAGETYPE_CODE as common_manage_type_code,\n COMMON_PRODUCTION_TYPE as common_production_type,\n COMMON_PRODUCTION_TYPE_NAME as common_production_type_name,\n COMMON_QUALITY as common_quality,\n COMMON_QUALITY_CODE as common_quality_code,\n COOPERATION_BRAND as cooperation_brand,\n ANNUAL_OUTPUT as annual_output,\n MONTH_OUTPUT as month_output,\n MONTH_NEW_GOODS_COUNT as month_new_goods_count,\n MACHINES_NUMBER as machines_number,\n EDITION_MAKING_TIME as edition_making_time,\n INTRODUCTION_YEAR as introduction_year,\n SUPPLIER_FACTORY_NUMS as supplier_factory_nums,\n SUPPLIER_COMPANY_LIFE as supplier_company_life,\n SUPPLIER_AREA as supplier_area,\n SUPPLIER_FACTORY as supplier_factory,\n SUPPLIER_MATERIAL as supplier_material,\n SUPPLIER_MWAREHOUSE as supplier_mwarehouse,\n SUPPLIER_GWAREHOUSE as supplier_gwarehouse,\n SUPPLIER_SALES_CUSTOMER as supplier_sales_customer,\n SYSTEM_IS_SCM as system_is_scm,\n RETAIL_NOW_DISCOUNT as retail_now_discount,\n WHOLESALE_NOW_DISCOUNT as wholesale_now_discount,\n WHOLESALE_FUTURES_DISCOUNT as wholesale_futures_discount,\n SUPPLIER_ASSESSMENT_CODE as supplier_assessment_code,\n SUPPLIER_ASSESSMENT_NAME as supplier_assessment_name,\n TAX_RATIO as tax_ratio,\n TAX_RATIO_ID as tax_ratio_id,\n CURRENCY_ID as currency_id,\n PAYMENT_SCHEME_ID as payment_scheme_id,\n FACTORY_ID as factory_id,\n CONTRACT_TEMPLATE_ID as contract_template_id,\n ELECTRON_SIGN_PLATFORM as electron_sign_platform,\n SIGN_MODE as sign_mode,\n SOCIETY_CREDIT_CODE as society_credit_code,\n SUPPLIER_OUTSIDE_ID as supplier_outside_id,\n TENANT_ID as tenant_id,\n SUPPLIER_COMPANY_ID as supplier_company_id,\n SUPPLIER_DEPOT_ID as supplier_depot_id,\n CREATE_DATE as create_date,\n CREATE_USERID as create_userid,\n CREATE_USERNAME as create_username,\n UPDATE_DATE as update_date,\n UPDATE_USERID as update_userid,\n UPDATE_USERNAME as update_username,\n TIME_BEGIN as time_begin,\n TIME_END as time_end,\n TIME_IMPORT as time_import\nFROM A_PARTNER_SUPPLIER\nWHERE SUPPLIER_STATE = 1\n AND UPDATE_DATE > :sync_last_time\nORDER BY UPDATE_DATE ASC, SUPPLIER_ID\nLIMIT :page_size OFFSET :offset;",
  633. "count_sql": {
  634. "full_count": "SELECT COUNT(*) as total_count FROM A_PARTNER_SUPPLIER WHERE SUPPLIER_STATE = 1;",
  635. "incremental_count": "SELECT COUNT(*) as incremental_count FROM A_PARTNER_SUPPLIER WHERE SUPPLIER_STATE = 1 AND UPDATE_DATE > :sync_last_time;"
  636. },
  637. "parameters": {
  638. "incremental_param": "sync_last_time",
  639. "page_size_param": "page_size",
  640. "offset_param": "offset"
  641. },
  642. "config": {
  643. "accounting_field": "SUPPLIER_STATE",
  644. "accounting_condition": "= 1",
  645. "incremental_field": "UPDATE_DATE"
  646. }
  647. }