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

642 lines
15 KiB
JSON

{
"ods_table": "member_balance_changes",
"anchors": {
"api": "api-member-balance-changes",
"ods": "ods-member-balance-changes",
"dwd": {
"dwd_member_balance_change": "dwd-dwd-member-balance-change",
"dwd_member_balance_change_ex": "dwd-dwd-member-balance-change-ex"
}
},
"json_to_ods": [
{
"json_path": "memberCardTypeName",
"ods_col": "membercardtypename",
"match_type": "case_insensitive",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "paySiteName",
"ods_col": "paysitename",
"match_type": "case_insensitive",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "registerSiteName",
"ods_col": "registersitename",
"match_type": "case_insensitive",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "memberName",
"ods_col": "membername",
"match_type": "case_insensitive",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "memberMobile",
"ods_col": "membermobile",
"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": "account_data",
"ods_col": "account_data",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "after",
"ods_col": "after",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "before",
"ods_col": "before",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "card_type_id",
"ods_col": "card_type_id",
"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": "from_type",
"ods_col": "from_type",
"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": "operator_id",
"ods_col": "operator_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "operator_name",
"ods_col": "operator_name",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "payment_method",
"ods_col": "payment_method",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "refund_amount",
"ods_col": "refund_amount",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "register_site_id",
"ods_col": "register_site_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "relate_id",
"ods_col": "relate_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "remark",
"ods_col": "remark",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "site_id",
"ods_col": "site_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "system_member_id",
"ods_col": "system_member_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": "tenant_member_card_id",
"ods_col": "tenant_member_card_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "tenant_member_id",
"ods_col": "tenant_member_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "principal_after",
"ods_col": "principal_after",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "principal_before",
"ods_col": "principal_before",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "principal_data",
"ods_col": "principal_data",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
}
],
"ods_to_dwd": {
"id": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "balance_change_id",
"cast": null,
"note": "字段重命名"
},
{
"dwd_table": "dwd_member_balance_change_ex",
"dwd_col": "balance_change_id",
"cast": null,
"note": "字段重命名"
}
],
"tenant_id": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "tenant_id",
"cast": null,
"note": "同名直传"
}
],
"site_id": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "site_id",
"cast": null,
"note": "同名直传"
}
],
"register_site_id": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "register_site_id",
"cast": null,
"note": "同名直传"
}
],
"tenant_member_id": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "tenant_member_id",
"cast": null,
"note": "同名直传"
}
],
"system_member_id": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "system_member_id",
"cast": null,
"note": "同名直传"
}
],
"tenant_member_card_id": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "tenant_member_card_id",
"cast": null,
"note": "同名直传"
}
],
"card_type_id": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "card_type_id",
"cast": null,
"note": "同名直传"
}
],
"membercardtypename": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "card_type_name",
"cast": null,
"note": "字段重命名"
}
],
"membername": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "member_name",
"cast": null,
"note": "字段重命名"
}
],
"membermobile": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "member_mobile",
"cast": null,
"note": "字段重命名"
}
],
"before": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "balance_before",
"cast": null,
"note": "字段重命名"
}
],
"account_data": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "change_amount",
"cast": null,
"note": "字段重命名"
}
],
"after": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "balance_after",
"cast": null,
"note": "字段重命名"
}
],
"from_type": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "from_type",
"cast": null,
"note": "同名直传"
}
],
"payment_method": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "payment_method",
"cast": null,
"note": "同名直传"
}
],
"create_time": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "change_time",
"cast": null,
"note": "字段重命名"
}
],
"is_delete": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "is_delete",
"cast": null,
"note": "同名直传"
}
],
"remark": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "remark",
"cast": null,
"note": "同名直传"
}
],
"principal_before": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "principal_before",
"cast": null,
"note": ""
}
],
"principal_after": [
{
"dwd_table": "dwd_member_balance_change",
"dwd_col": "principal_after",
"cast": null,
"note": ""
}
],
"paysitename": [
{
"dwd_table": "dwd_member_balance_change_ex",
"dwd_col": "pay_site_name",
"cast": null,
"note": "字段重命名"
}
],
"registersitename": [
{
"dwd_table": "dwd_member_balance_change_ex",
"dwd_col": "register_site_name",
"cast": null,
"note": "字段重命名"
}
],
"refund_amount": [
{
"dwd_table": "dwd_member_balance_change_ex",
"dwd_col": "refund_amount",
"cast": null,
"note": "同名直传"
}
],
"operator_id": [
{
"dwd_table": "dwd_member_balance_change_ex",
"dwd_col": "operator_id",
"cast": null,
"note": "同名直传"
}
],
"operator_name": [
{
"dwd_table": "dwd_member_balance_change_ex",
"dwd_col": "operator_name",
"cast": null,
"note": "同名直传"
}
],
"principal_data": [
{
"dwd_table": "dwd_member_balance_change_ex",
"dwd_col": "principal_data",
"cast": null,
"note": ""
}
]
},
"dwd_to_ods": {
"dwd_member_balance_change": [
{
"dwd_col": "balance_change_id",
"type": "bigint",
"ods_source": "id",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "tenant_id",
"type": "bigint",
"ods_source": "tenant_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "site_id",
"type": "bigint",
"ods_source": "site_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "register_site_id",
"type": "bigint",
"ods_source": "register_site_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "tenant_member_id",
"type": "bigint",
"ods_source": "tenant_member_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "system_member_id",
"type": "bigint",
"ods_source": "system_member_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "tenant_member_card_id",
"type": "bigint",
"ods_source": "tenant_member_card_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "card_type_id",
"type": "bigint",
"ods_source": "card_type_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "card_type_name",
"type": "character varying",
"ods_source": "membercardtypename",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "member_name",
"type": "character varying",
"ods_source": "membername",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "member_mobile",
"type": "character varying",
"ods_source": "membermobile",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "balance_before",
"type": "numeric",
"ods_source": "before",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "change_amount",
"type": "numeric",
"ods_source": "account_data",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "balance_after",
"type": "numeric",
"ods_source": "after",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "from_type",
"type": "integer",
"ods_source": "from_type",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "payment_method",
"type": "integer",
"ods_source": "payment_method",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "change_time",
"type": "timestamp with time zone",
"ods_source": "create_time",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "is_delete",
"type": "integer",
"ods_source": "is_delete",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "remark",
"type": "character varying",
"ods_source": "remark",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "principal_before",
"type": "numeric",
"ods_source": "principal_before",
"mapping_type": "直接",
"note": ""
},
{
"dwd_col": "principal_after",
"type": "numeric",
"ods_source": "principal_after",
"mapping_type": "直接",
"note": ""
},
{
"dwd_col": "principal_change_amount",
"type": "numeric",
"ods_source": "—",
"mapping_type": "—",
"note": "未显式映射"
}
],
"dwd_member_balance_change_ex": [
{
"dwd_col": "balance_change_id",
"type": "bigint",
"ods_source": "id",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "pay_site_name",
"type": "character varying",
"ods_source": "paysitename",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "register_site_name",
"type": "character varying",
"ods_source": "registersitename",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "refund_amount",
"type": "numeric",
"ods_source": "refund_amount",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "operator_id",
"type": "bigint",
"ods_source": "operator_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "operator_name",
"type": "character varying",
"ods_source": "operator_name",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "principal_data",
"type": "text",
"ods_source": "principal_data",
"mapping_type": "直接",
"note": ""
}
]
}
}