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

898 lines
21 KiB
JSON

{
"ods_table": "refund_transactions",
"anchors": {
"api": "api-refund-transactions",
"ods": "ods-refund-transactions",
"dwd": {
"dwd_refund": "dwd-dwd-refund",
"dwd_refund_ex": "dwd-dwd-refund-ex"
}
},
"json_to_ods": [
{
"json_path": "tenantName",
"ods_col": "tenantname",
"match_type": "case_insensitive",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.id",
"ods_col": "id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.org_id",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.shop_name",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.avatar",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.business_tel",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.full_address",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.address",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.longitude",
"ods_col": null,
"match_type": "unmapped",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.latitude",
"ods_col": null,
"match_type": "unmapped",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.tenant_site_region_id",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.tenant_id",
"ods_col": "tenant_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.auto_light",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.attendance_distance",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.wifi_name",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.wifi_password",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.customer_service_qrcode",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.customer_service_wechat",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.fixed_pay_qrCode",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.prod_env",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.light_status",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.light_type",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.site_type",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.light_token",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.site_label",
"ods_col": null,
"match_type": "unmapped",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.attendance_enabled",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "siteProfile.shop_status",
"ods_col": null,
"match_type": "unmapped",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "id",
"ods_col": "id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "site_id",
"ods_col": "site_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": "pay_sn",
"ods_col": "pay_sn",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "pay_amount",
"ods_col": "pay_amount",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "pay_status",
"ods_col": "pay_status",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "pay_time",
"ods_col": "pay_time",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "create_time",
"ods_col": "create_time",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "relate_type",
"ods_col": "relate_type",
"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": "is_revoke",
"ods_col": "is_revoke",
"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": "online_pay_channel",
"ods_col": "online_pay_channel",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "payment_method",
"ods_col": "payment_method",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "balance_frozen_amount",
"ods_col": "balance_frozen_amount",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "card_frozen_amount",
"ods_col": "card_frozen_amount",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "member_id",
"ods_col": "member_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "member_card_id",
"ods_col": "member_card_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "round_amount",
"ods_col": "round_amount",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
},
{
"json_path": "online_pay_type",
"ods_col": "online_pay_type",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "action_type",
"ods_col": "action_type",
"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": "cashier_point_id",
"ods_col": "cashier_point_id",
"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": "pay_terminal",
"ods_col": "pay_terminal",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "pay_config_id",
"ods_col": "pay_config_id",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "channel_payer_id",
"ods_col": "channel_payer_id",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "channel_pay_no",
"ods_col": "channel_pay_no",
"match_type": "exact",
"json_type": "string",
"occurrence_pct": 100.0
},
{
"json_path": "check_status",
"ods_col": "check_status",
"match_type": "exact",
"json_type": "integer",
"occurrence_pct": 100.0
},
{
"json_path": "channel_fee",
"ods_col": "channel_fee",
"match_type": "exact",
"json_type": "number",
"occurrence_pct": 100.0
}
],
"ods_to_dwd": {
"id": [
{
"dwd_table": "dwd_refund",
"dwd_col": "refund_id",
"cast": null,
"note": "字段重命名"
},
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "refund_id",
"cast": null,
"note": "字段重命名"
}
],
"tenant_id": [
{
"dwd_table": "dwd_refund",
"dwd_col": "tenant_id",
"cast": null,
"note": "同名直传"
}
],
"site_id": [
{
"dwd_table": "dwd_refund",
"dwd_col": "site_id",
"cast": null,
"note": "同名直传"
}
],
"relate_type": [
{
"dwd_table": "dwd_refund",
"dwd_col": "relate_type",
"cast": null,
"note": "同名直传"
}
],
"relate_id": [
{
"dwd_table": "dwd_refund",
"dwd_col": "relate_id",
"cast": null,
"note": "同名直传"
}
],
"pay_amount": [
{
"dwd_table": "dwd_refund",
"dwd_col": "pay_amount",
"cast": null,
"note": "同名直传"
}
],
"channel_fee": [
{
"dwd_table": "dwd_refund",
"dwd_col": "channel_fee",
"cast": null,
"note": "同名直传"
}
],
"pay_time": [
{
"dwd_table": "dwd_refund",
"dwd_col": "pay_time",
"cast": null,
"note": "同名直传"
}
],
"create_time": [
{
"dwd_table": "dwd_refund",
"dwd_col": "create_time",
"cast": null,
"note": "同名直传"
}
],
"payment_method": [
{
"dwd_table": "dwd_refund",
"dwd_col": "payment_method",
"cast": null,
"note": "同名直传"
}
],
"member_id": [
{
"dwd_table": "dwd_refund",
"dwd_col": "member_id",
"cast": null,
"note": "同名直传"
}
],
"member_card_id": [
{
"dwd_table": "dwd_refund",
"dwd_col": "member_card_id",
"cast": null,
"note": "同名直传"
}
],
"tenantname": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "tenant_name",
"cast": null,
"note": "字段重命名"
}
],
"pay_sn": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "pay_sn",
"cast": null,
"note": "同名直传"
}
],
"refund_amount": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "refund_amount",
"cast": null,
"note": "同名直传"
}
],
"round_amount": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "round_amount",
"cast": null,
"note": "同名直传"
}
],
"balance_frozen_amount": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "balance_frozen_amount",
"cast": null,
"note": "同名直传"
}
],
"card_frozen_amount": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "card_frozen_amount",
"cast": null,
"note": "同名直传"
}
],
"pay_status": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "pay_status",
"cast": null,
"note": "同名直传"
}
],
"action_type": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "action_type",
"cast": null,
"note": "同名直传"
}
],
"is_revoke": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "is_revoke",
"cast": null,
"note": "同名直传"
}
],
"is_delete": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "is_delete",
"cast": null,
"note": "同名直传"
}
],
"check_status": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "check_status",
"cast": null,
"note": "同名直传"
}
],
"online_pay_channel": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "online_pay_channel",
"cast": null,
"note": "同名直传"
}
],
"online_pay_type": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "online_pay_type",
"cast": null,
"note": "同名直传"
}
],
"pay_terminal": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "pay_terminal",
"cast": null,
"note": "同名直传"
}
],
"pay_config_id": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "pay_config_id",
"cast": null,
"note": "同名直传"
}
],
"cashier_point_id": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "cashier_point_id",
"cast": null,
"note": "同名直传"
}
],
"operator_id": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "operator_id",
"cast": null,
"note": "同名直传"
}
],
"channel_payer_id": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "channel_payer_id",
"cast": null,
"note": ""
}
],
"channel_pay_no": [
{
"dwd_table": "dwd_refund_ex",
"dwd_col": "channel_pay_no",
"cast": null,
"note": ""
}
]
},
"dwd_to_ods": {
"dwd_refund": [
{
"dwd_col": "refund_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": "relate_type",
"type": "integer",
"ods_source": "relate_type",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "relate_id",
"type": "bigint",
"ods_source": "relate_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "pay_amount",
"type": "numeric",
"ods_source": "pay_amount",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "channel_fee",
"type": "numeric",
"ods_source": "channel_fee",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "pay_time",
"type": "timestamp with time zone",
"ods_source": "pay_time",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "create_time",
"type": "timestamp with time zone",
"ods_source": "create_time",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "payment_method",
"type": "integer",
"ods_source": "payment_method",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "member_id",
"type": "bigint",
"ods_source": "member_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "member_card_id",
"type": "bigint",
"ods_source": "member_card_id",
"mapping_type": "直接",
"note": "同名直传"
}
],
"dwd_refund_ex": [
{
"dwd_col": "refund_id",
"type": "bigint",
"ods_source": "id",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "tenant_name",
"type": "character varying",
"ods_source": "tenantname",
"mapping_type": "直接",
"note": "字段重命名"
},
{
"dwd_col": "pay_sn",
"type": "bigint",
"ods_source": "pay_sn",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "refund_amount",
"type": "numeric",
"ods_source": "refund_amount",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "round_amount",
"type": "numeric",
"ods_source": "round_amount",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "balance_frozen_amount",
"type": "numeric",
"ods_source": "balance_frozen_amount",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "card_frozen_amount",
"type": "numeric",
"ods_source": "card_frozen_amount",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "pay_status",
"type": "integer",
"ods_source": "pay_status",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "action_type",
"type": "integer",
"ods_source": "action_type",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "is_revoke",
"type": "integer",
"ods_source": "is_revoke",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "is_delete",
"type": "integer",
"ods_source": "is_delete",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "check_status",
"type": "integer",
"ods_source": "check_status",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "online_pay_channel",
"type": "integer",
"ods_source": "online_pay_channel",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "online_pay_type",
"type": "integer",
"ods_source": "online_pay_type",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "pay_terminal",
"type": "integer",
"ods_source": "pay_terminal",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "pay_config_id",
"type": "integer",
"ods_source": "pay_config_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "cashier_point_id",
"type": "integer",
"ods_source": "cashier_point_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "operator_id",
"type": "bigint",
"ods_source": "operator_id",
"mapping_type": "直接",
"note": "同名直传"
},
{
"dwd_col": "channel_payer_id",
"type": "character varying",
"ods_source": "channel_payer_id",
"mapping_type": "直接",
"note": ""
},
{
"dwd_col": "channel_pay_no",
"type": "character varying",
"ods_source": "channel_pay_no",
"mapping_type": "直接",
"note": ""
}
]
}
}