| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647 |
- {
- "warehouse_table": "dw_supplier",
- "business_tables": "A_PARTNER_SUPPLIER",
- "description": "供应商信息同步到数据仓库",
- "fields": [
- {
- "name": "supplier_id",
- "source_name": "SUPPLIER_ID",
- "type": "VARCHAR(40)",
- "description": "供应商唯一标识符",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_name",
- "source_name": "SUPPLIER_NAME",
- "type": "VARCHAR(200)",
- "description": "供应商名称",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_cname",
- "source_name": "SUPPLIER_CNAME",
- "type": "VARCHAR(200)",
- "description": "供应商简称",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_full_name",
- "source_name": "SUPPLIER_FULL_NAME",
- "type": "VARCHAR(200)",
- "description": "供应商全称",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_state",
- "source_name": "SUPPLIER_STATE",
- "type": "BIGINT",
- "description": "供应商状态",
- "is_incremental": false,
- "is_accounting": true
- },
- {
- "name": "supplier_category",
- "source_name": "SUPPLIER_CATEGORY",
- "type": "VARCHAR(40)",
- "description": "供应商类别",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_score",
- "source_name": "SUPPLIER_SCORE",
- "type": "BIGINT",
- "description": "供应商评分",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_contact",
- "source_name": "SUPPLIER_CONTACT",
- "type": "VARCHAR(100)",
- "description": "业务对接联系人",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "represent_name",
- "source_name": "REPRESENT_NAME",
- "type": "VARCHAR(100)",
- "description": "法人代表姓名",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "represent_tel",
- "source_name": "REPRESENT_TEL",
- "type": "VARCHAR(40)",
- "description": "法人代表电话",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "represent_idcard",
- "source_name": "REPRESENT_IDCARD",
- "type": "VARCHAR(40)",
- "description": "法人代表身份证",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_tel",
- "source_name": "SUPPLIER_TEL",
- "type": "VARCHAR(64)",
- "description": "供应商固定电话",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_mobile",
- "source_name": "SUPPLIER_MOBILE",
- "type": "VARCHAR(40)",
- "description": "供应商手机",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_email",
- "source_name": "SUPPLIER_EMAIL",
- "type": "VARCHAR(100)",
- "description": "供应商邮箱",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_bank",
- "source_name": "SUPPLIER_BANK",
- "type": "VARCHAR(100)",
- "description": "供应商银行信息",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_business_buyer",
- "source_name": "SUPPLIER_BUSINESS_BUYER",
- "type": "VARCHAR(100)",
- "description": "业务采购负责人",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_business_tel",
- "source_name": "SUPPLIER_BUSINESS_TEL",
- "type": "VARCHAR(40)",
- "description": "业务联系电话",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "area_province",
- "source_name": "AREA_PROVINCE",
- "type": "VARCHAR(40)",
- "description": "省份",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "area_province_code",
- "source_name": "AREA_PROVINCE_CODE",
- "type": "VARCHAR(40)",
- "description": "省份代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "area_city",
- "source_name": "AREA_CITY",
- "type": "VARCHAR(40)",
- "description": "城市",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "area_city_code",
- "source_name": "AREA_CITY_CODE",
- "type": "VARCHAR(16)",
- "description": "城市代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "area_district",
- "source_name": "AREA_DISTRICT",
- "type": "VARCHAR(40)",
- "description": "区县",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "area_district_code",
- "source_name": "AREA_DISTRICT_CODE",
- "type": "VARCHAR(40)",
- "description": "区县代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "area_town",
- "source_name": "AREA_TOWN",
- "type": "VARCHAR(40)",
- "description": "乡镇/街道",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "area_town_code",
- "source_name": "AREA_TOWN_CODE",
- "type": "VARCHAR(40)",
- "description": "乡镇/街道代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_cooperate",
- "source_name": "COMMON_COOPERATE",
- "type": "VARCHAR(40)",
- "description": "合作类型",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_cooperate_code",
- "source_name": "COMMON_COOPERATE_CODE",
- "type": "VARCHAR(24)",
- "description": "合作类型代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_level",
- "source_name": "COMMON_LEVEL",
- "type": "VARCHAR(40)",
- "description": "供应商等级",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_level_code",
- "source_name": "COMMON_LEVEL_CODE",
- "type": "VARCHAR(16)",
- "description": "供应商等级代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_manage_type",
- "source_name": "COMMON_MANAGETYPE",
- "type": "VARCHAR(40)",
- "description": "管理类型",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_manage_type_code",
- "source_name": "COMMON_MANAGETYPE_CODE",
- "type": "VARCHAR(16)",
- "description": "管理类型代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_production_type",
- "source_name": "COMMON_PRODUCTION_TYPE",
- "type": "VARCHAR(16)",
- "description": "生产类型",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_production_type_name",
- "source_name": "COMMON_PRODUCTION_TYPE_NAME",
- "type": "VARCHAR(40)",
- "description": "生产类型名称",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_quality",
- "source_name": "COMMON_QUALITY",
- "type": "VARCHAR(40)",
- "description": "质量等级",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "common_quality_code",
- "source_name": "COMMON_QUALITY_CODE",
- "type": "VARCHAR(16)",
- "description": "质量等级代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "cooperation_brand",
- "source_name": "COOPERATION_BRAND",
- "type": "VARCHAR(60)",
- "description": "合作品牌",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "annual_output",
- "source_name": "ANNUAL_OUTPUT",
- "type": "BIGINT",
- "description": "年产量",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "month_output",
- "source_name": "MONTH_OUTPUT",
- "type": "BIGINT",
- "description": "月产量",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "month_new_goods_count",
- "source_name": "MONTH_NEW_GOODS_COUNT",
- "type": "BIGINT",
- "description": "每月新品数量",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "machines_number",
- "source_name": "MACHINES_NUMBER",
- "type": "BIGINT",
- "description": "机器数量",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "edition_making_time",
- "source_name": "EDITION_MAKING_TIME",
- "type": "BIGINT",
- "description": "版单制作时间",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "introduction_year",
- "source_name": "INTRODUCTION_YEAR",
- "type": "BIGINT",
- "description": "引入年份",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_factory_nums",
- "source_name": "SUPPLIER_FACTORY_NUMS",
- "type": "BIGINT",
- "description": "工厂数量",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_company_life",
- "source_name": "SUPPLIER_COMPANY_LIFE",
- "type": "BIGINT",
- "description": "公司成立年限",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_area",
- "source_name": "SUPPLIER_AREA",
- "type": "BIGINT",
- "description": "供应商区域代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_factory",
- "source_name": "SUPPLIER_FACTORY",
- "type": "BIGINT",
- "description": "是否为工厂",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_material",
- "source_name": "SUPPLIER_MATERIAL",
- "type": "BIGINT",
- "description": "是否为物料供应商",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_mwarehouse",
- "source_name": "SUPPLIER_MWAREHOUSE",
- "type": "BIGINT",
- "description": "是否为物料仓库",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_gwarehouse",
- "source_name": "SUPPLIER_GWAREHOUSE",
- "type": "BIGINT",
- "description": "是否为成品仓库",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_sales_customer",
- "source_name": "SUPPLIER_SALES_CUSTOMER",
- "type": "BIGINT",
- "description": "是否为销售客户",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "system_is_scm",
- "source_name": "SYSTEM_IS_SCM",
- "type": "BIGINT",
- "description": "是否为SCM系统供应商",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "retail_now_discount",
- "source_name": "RETAIL_NOW_DISCOUNT",
- "type": "BIGINT",
- "description": "零售现款折扣",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "wholesale_now_discount",
- "source_name": "WHOLESALE_NOW_DISCOUNT",
- "type": "BIGINT",
- "description": "批发现款折扣",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "wholesale_futures_discount",
- "source_name": "WHOLESALE_FUTURES_DISCOUNT",
- "type": "BIGINT",
- "description": "批发期货折扣",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_assessment_code",
- "source_name": "SUPPLIER_ASSESSMENT_CODE",
- "type": "BIGINT",
- "description": "供应商评估代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_assessment_name",
- "source_name": "SUPPLIER_ASSESSMENT_NAME",
- "type": "VARCHAR(64)",
- "description": "供应商评估名称",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "tax_ratio",
- "source_name": "TAX_RATIO",
- "type": "BIGINT",
- "description": "税率",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "tax_ratio_id",
- "source_name": "TAX_RATIO_ID",
- "type": "VARCHAR(16)",
- "description": "税率ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "currency_id",
- "source_name": "CURRENCY_ID",
- "type": "VARCHAR(32)",
- "description": "货币ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "payment_scheme_id",
- "source_name": "PAYMENT_SCHEME_ID",
- "type": "VARCHAR(8)",
- "description": "付款方案ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "factory_id",
- "source_name": "FACTORY_ID",
- "type": "VARCHAR(32)",
- "description": "工厂ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "contract_template_id",
- "source_name": "CONTRACT_TEMPLATE_ID",
- "type": "VARCHAR(32)",
- "description": "合同模板ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "electron_sign_platform",
- "source_name": "ELECTRON_SIGN_PLATFORM",
- "type": "VARCHAR(32)",
- "description": "电子签章平台",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "sign_mode",
- "source_name": "SIGN_MODE",
- "type": "VARCHAR(8)",
- "description": "签章模式",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "society_credit_code",
- "source_name": "SOCIETY_CREDIT_CODE",
- "type": "VARCHAR(128)",
- "description": "社会信用代码",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_outside_id",
- "source_name": "SUPPLIER_OUTSIDE_ID",
- "type": "VARCHAR(128)",
- "description": "外部系统供应商ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "tenant_id",
- "source_name": "TENANT_ID",
- "type": "VARCHAR(64)",
- "description": "租户ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_company_id",
- "source_name": "SUPPLIER_COMPANY_ID",
- "type": "VARCHAR(64)",
- "description": "供应商公司ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "supplier_depot_id",
- "source_name": "SUPPLIER_DEPOT_ID",
- "type": "VARCHAR(64)",
- "description": "供应商仓库ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "create_date",
- "source_name": "CREATE_DATE",
- "type": "DATETIME",
- "description": "创建时间",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "create_userid",
- "source_name": "CREATE_USERID",
- "type": "VARCHAR(64)",
- "description": "创建用户ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "create_username",
- "source_name": "CREATE_USERNAME",
- "type": "VARCHAR(64)",
- "description": "创建用户名",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "update_date",
- "source_name": "UPDATE_DATE",
- "type": "DATETIME",
- "description": "更新时间",
- "is_incremental": true,
- "is_accounting": false
- },
- {
- "name": "update_userid",
- "source_name": "UPDATE_USERID",
- "type": "VARCHAR(64)",
- "description": "更新用户ID",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "update_username",
- "source_name": "UPDATE_USERNAME",
- "type": "VARCHAR(64)",
- "description": "更新用户名",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "time_begin",
- "source_name": "TIME_BEGIN",
- "type": "DATETIME",
- "description": "有效开始时间",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "time_end",
- "source_name": "TIME_END",
- "type": "DATETIME",
- "description": "有效结束时间",
- "is_incremental": false,
- "is_accounting": false
- },
- {
- "name": "time_import",
- "source_name": "TIME_IMPORT",
- "type": "DATETIME",
- "description": "数据导入时间",
- "is_incremental": false,
- "is_accounting": false
- }
- ],
- "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;",
- "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;",
- "count_sql": {
- "full_count": "SELECT COUNT(*) as total_count FROM A_PARTNER_SUPPLIER WHERE SUPPLIER_STATE = 1;",
- "incremental_count": "SELECT COUNT(*) as incremental_count FROM A_PARTNER_SUPPLIER WHERE SUPPLIER_STATE = 1 AND UPDATE_DATE > :sync_last_time;"
- },
- "parameters": {
- "incremental_param": "sync_last_time",
- "page_size_param": "page_size",
- "offset_param": "offset"
- },
- "config": {
- "accounting_field": "SUPPLIER_STATE",
- "accounting_condition": "= 1",
- "incremental_field": "UPDATE_DATE"
- }
- }
|