Files
Neo-ZQYY/export/dataflow_analysis/field_mappings/tenant_goods_master.json

792 lines
19 KiB
JSON

{
"ods_table": "tenant_goods_master",
"anchors": {
"api": "api-tenant-goods-master",
"ods": "ods-tenant-goods-master",
"dwd": {
"dim_tenant_goods": "dwd-dim-tenant-goods",
"dim_tenant_goods_ex": "dwd-dim-tenant-goods-ex"
}
},
"json_to_ods": [
{
"json_path": "categoryName",
"ods_col": "categoryname",
"match_type": "case_insensitive",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "isInSite",
"ods_col": "isinsite",
"match_type": "case_insensitive",
"json_type": "boolean",
"occurrence_pct": 100.0
},
{
"json_path": "commodityCode[]",
"ods_col": "commoditycode",
"match_type": "case_insensitive",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "id",
"ods_col": "id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "able_discount",
"ods_col": "able_discount",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "able_site_transfer",
"ods_col": "able_site_transfer",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "commodity_code",
"ods_col": "commodity_code",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "common_sale_royalty",
"ods_col": "common_sale_royalty",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "cost_price",
"ods_col": "cost_price",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "cost_price_type",
"ods_col": "cost_price_type",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "create_time",
"ods_col": "create_time",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "goods_bar_code",
"ods_col": "goods_bar_code",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "goods_category_id",
"ods_col": "goods_category_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "goods_cover",
"ods_col": "goods_cover",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "goods_name",
"ods_col": "goods_name",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "goods_number",
"ods_col": "goods_number",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "goods_second_category_id",
"ods_col": "goods_second_category_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "goods_state",
"ods_col": "goods_state",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "is_delete",
"ods_col": "is_delete",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "is_warehousing",
"ods_col": "is_warehousing",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "market_price",
"ods_col": "market_price",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "min_discount_price",
"ods_col": "min_discount_price",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "not_sale",
"ods_col": "not_sale",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "out_goods_id",
"ods_col": "out_goods_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "pinyin_initial",
"ods_col": "pinyin_initial",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "point_sale_royalty",
"ods_col": "point_sale_royalty",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "remark_name",
"ods_col": "remark_name",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "sale_channel",
"ods_col": "sale_channel",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "supplier_id",
"ods_col": "supplier_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "tenant_id",
"ods_col": "tenant_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "unit",
"ods_col": "unit",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "update_time",
"ods_col": "update_time",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 83.3
}
],
"ods_to_dwd": {
"id": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "tenant_goods_id",
"cast": null,
"note": "字段重命名"
},
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "tenant_goods_id",
"cast": null,
"note": "字段重命名"
}
],
"tenant_id": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "tenant_id",
"cast": null,
"note": "同名直传"
}
],
"supplier_id": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "supplier_id",
"cast": null,
"note": "同名直传"
}
],
"categoryname": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "category_name",
"cast": null,
"note": "字段重命名"
}
],
"goods_category_id": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "goods_category_id",
"cast": null,
"note": "同名直传"
}
],
"goods_second_category_id": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "goods_second_category_id",
"cast": null,
"note": "同名直传"
}
],
"goods_name": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "goods_name",
"cast": null,
"note": "同名直传"
}
],
"goods_number": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "goods_number",
"cast": null,
"note": "同名直传"
}
],
"unit": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "unit",
"cast": null,
"note": "同名直传"
}
],
"market_price": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "market_price",
"cast": null,
"note": "同名直传"
}
],
"goods_state": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "goods_state",
"cast": null,
"note": "同名直传"
}
],
"create_time": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "create_time",
"cast": null,
"note": "同名直传"
}
],
"update_time": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "update_time",
"cast": null,
"note": "同名直传"
}
],
"is_delete": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "is_delete",
"cast": null,
"note": "同名直传"
}
],
"not_sale": [
{
"dwd_table": "dim_tenant_goods",
"dwd_col": "not_sale",
"cast": null,
"note": ""
}
],
"remark_name": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "remark_name",
"cast": null,
"note": ""
}
],
"pinyin_initial": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "pinyin_initial",
"cast": null,
"note": "同名直传"
}
],
"goods_cover": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "goods_cover",
"cast": null,
"note": "同名直传"
}
],
"goods_bar_code": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "goods_bar_code",
"cast": null,
"note": ""
}
],
"commodity_code": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "commodity_code",
"cast": null,
"note": "同名直传"
},
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "commodity_code_list",
"cast": null,
"note": "字段重命名"
}
],
"min_discount_price": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "min_discount_price",
"cast": null,
"note": "同名直传"
}
],
"cost_price": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "cost_price",
"cast": null,
"note": "同名直传"
}
],
"cost_price_type": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "cost_price_type",
"cast": null,
"note": "同名直传"
}
],
"able_discount": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "able_discount",
"cast": null,
"note": "同名直传"
}
],
"sale_channel": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "sale_channel",
"cast": null,
"note": "同名直传"
}
],
"is_warehousing": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "is_warehousing",
"cast": null,
"note": "同名直传"
}
],
"isinsite": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "is_in_site",
"cast": "boolean",
"note": "字段重命名"
}
],
"able_site_transfer": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "able_site_transfer",
"cast": null,
"note": "同名直传"
}
],
"common_sale_royalty": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "common_sale_royalty",
"cast": null,
"note": "同名直传"
}
],
"point_sale_royalty": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "point_sale_royalty",
"cast": null,
"note": "同名直传"
}
],
"out_goods_id": [
{
"dwd_table": "dim_tenant_goods_ex",
"dwd_col": "out_goods_id",
"cast": null,
"note": "同名直传"
}
]
},
"dwd_to_ods": {
"dim_tenant_goods": [
{
"dwd_col": "tenant_goods_id",
"type": "bigint",
"ods_source": "id",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "tenant_id",
"type": "bigint",
"ods_source": "tenant_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "supplier_id",
"type": "bigint",
"ods_source": "supplier_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "category_name",
"type": "character varying",
"ods_source": "categoryname",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "goods_category_id",
"type": "bigint",
"ods_source": "goods_category_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "goods_second_category_id",
"type": "bigint",
"ods_source": "goods_second_category_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "goods_name",
"type": "character varying",
"ods_source": "goods_name",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "goods_number",
"type": "character varying",
"ods_source": "goods_number",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "unit",
"type": "character varying",
"ods_source": "unit",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "market_price",
"type": "numeric",
"ods_source": "market_price",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "goods_state",
"type": "integer",
"ods_source": "goods_state",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "create_time",
"type": "timestamp with time zone",
"ods_source": "create_time",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "update_time",
"type": "timestamp with time zone",
"ods_source": "update_time",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "is_delete",
"type": "integer",
"ods_source": "is_delete",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "not_sale",
"type": "integer",
"ods_source": "not_sale",
"mapping_type": "直接",
"note": ""
},
{
"dwd_col": "scd2_start_time",
"type": "timestamp with time zone",
"ods_source": "—",
"mapping_type": "SCD2",
"note": "SCD2 元数据"
},
{
"dwd_col": "scd2_end_time",
"type": "timestamp with time zone",
"ods_source": "—",
"mapping_type": "SCD2",
"note": "SCD2 元数据"
},
{
"dwd_col": "scd2_is_current",
"type": "integer",
"ods_source": "—",
"mapping_type": "SCD2",
"note": "SCD2 元数据"
},
{
"dwd_col": "scd2_version",
"type": "integer",
"ods_source": "—",
"mapping_type": "SCD2",
"note": "SCD2 元数据"
}
],
"dim_tenant_goods_ex": [
{
"dwd_col": "tenant_goods_id",
"type": "bigint",
"ods_source": "id",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "remark_name",
"type": "character varying",
"ods_source": "remark_name",
"mapping_type": "直接",
"note": ""
},
{
"dwd_col": "pinyin_initial",
"type": "character varying",
"ods_source": "pinyin_initial",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "goods_cover",
"type": "character varying",
"ods_source": "goods_cover",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "goods_bar_code",
"type": "character varying",
"ods_source": "goods_bar_code",
"mapping_type": "直接",
"note": ""
},
{
"dwd_col": "commodity_code",
"type": "character varying",
"ods_source": "commodity_code",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "commodity_code_list",
"type": "character varying",
"ods_source": "commodity_code",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "min_discount_price",
"type": "numeric",
"ods_source": "min_discount_price",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "cost_price",
"type": "numeric",
"ods_source": "cost_price",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "cost_price_type",
"type": "integer",
"ods_source": "cost_price_type",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "able_discount",
"type": "integer",
"ods_source": "able_discount",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "sale_channel",
"type": "integer",
"ods_source": "sale_channel",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "is_warehousing",
"type": "integer",
"ods_source": "is_warehousing",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "is_in_site",
"type": "boolean",
"ods_source": "isinsite",
"mapping_type": "→ boolean",
"note": "字段重命名"
},
{
"dwd_col": "able_site_transfer",
"type": "integer",
"ods_source": "able_site_transfer",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "common_sale_royalty",
"type": "integer",
"ods_source": "common_sale_royalty",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "point_sale_royalty",
"type": "integer",
"ods_source": "point_sale_royalty",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "out_goods_id",
"type": "bigint",
"ods_source": "out_goods_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "scd2_start_time",
"type": "timestamp with time zone",
"ods_source": "—",
"mapping_type": "SCD2",
"note": "SCD2 元数据"
},
{
"dwd_col": "scd2_end_time",
"type": "timestamp with time zone",
"ods_source": "—",
"mapping_type": "SCD2",
"note": "SCD2 元数据"
},
{
"dwd_col": "scd2_is_current",
"type": "integer",
"ods_source": "—",
"mapping_type": "SCD2",
"note": "SCD2 元数据"
},
{
"dwd_col": "scd2_version",
"type": "integer",
"ods_source": "—",
"mapping_type": "SCD2",
"note": "SCD2 元数据"
}
]
}
}