333 KiB
API → ODS → DWD 全链路数据流文档
自动生成于
scripts/ops/gen_full_dataflow_doc.py,基于真实 API 响应 + DDL + ETL 源码。 生成时间:2026-02-16 13:51:56
概览
- API 端点数量: 23
- 成功获取数据: 23/23
- ODS 表数量: 23
- DWD 表数量: 40
- TABLE_MAP 映射: 40 条
图例
- 🔗 跳转链接:点击可在 JSON / ODS / DWD 层之间跳转
- ✅ 已映射到下游
- ⚠️ 仅存于 payload,未入 ODS 列
- 🔄 大小写不敏感匹配
- 📦 嵌套对象
目录
- 助教账号档案 (
assistant_accounts_master) - 结账记录 (
settlement_records) - 台费计费流水 (
table_fee_transactions) - 助教服务流水 (
assistant_service_records) - 助教废除记录 (
assistant_cancellation_records) - 门店商品销售流水 (
store_goods_sales_records) - 支付流水 (
payment_transactions) - 退款流水 (
refund_transactions) - 平台/团购券核销 (
platform_coupon_redemption_records) - 会员档案 (
member_profiles) - 会员储值卡 (
member_stored_value_cards) - 会员余额变动 (
member_balance_changes) - 充值结算 (
recharge_settlements) - 团购套餐定义 (
group_buy_packages) - 团购套餐核销 (
group_buy_redemption_records) - 库存汇总 (
goods_stock_summary) - 库存变化记录 (
goods_stock_movements) - 台桌维表 (
site_tables_master) - 库存商品分类树 (
stock_goods_category_tree) - 门店商品档案 (
store_goods_master) - 台费折扣/调账 (
table_fee_discount_records) - 租户商品档案 (
tenant_goods_master) - 结账小票详情(按 orderSettleId 逐条获取,不走常规分页) (
settlement_ticket_details)
助教账号档案 (assistant_accounts_master)
- 任务编码:
ODS_ASSISTANT_ACCOUNT - API 端点:
/PersonnelManagement/SearchAssistantInfo - 获取记录数: 69
API 源字段(62 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | job_num |
string | job_num |
✅ 同名映射 | |
| 2 | shop_name |
string | 朗朗桌球 | shop_name |
✅ 同名映射 |
| 3 | group_id |
integer | 0 | group_id |
✅ 同名映射 |
| 4 | group_name |
string | group_name |
✅ 同名映射 | |
| 5 | staff_profile_id |
integer | 0 | staff_profile_id |
✅ 同名映射 |
| 6 | ding_talk_synced |
integer | 1 | ding_talk_synced |
✅ 同名映射 |
| 7 | entry_type |
integer | 1 | entry_type |
✅ 同名映射 |
| 8 | team_name |
string | 2组 | team_name |
✅ 同名映射 |
| 9 | entry_sign_status |
integer | 0 | entry_sign_status |
✅ 同名映射 |
| 10 | resign_sign_status |
integer | 0 | resign_sign_status |
✅ 同名映射 |
| 11 | system_role_id |
integer | 10 | system_role_id |
✅ 同名映射 |
| 12 | criticism_status |
integer | 1 | criticism_status |
✅ 同名映射 |
| 13 | salary_grant_enabled |
integer | 2 | salary_grant_enabled |
✅ 同名映射 |
| 14 | leave_status |
integer | 0 | leave_status |
✅ 同名映射 |
| 15 | id |
integer | 3067857612671685 | id |
✅ 同名映射 |
| 16 | allow_cx |
integer | 1 | allow_cx |
✅ 同名映射 |
| 17 | assistant_no |
string | 13 | assistant_no |
✅ 同名映射 |
| 18 | assistant_status |
integer | 1 | assistant_status |
✅ 同名映射 |
| 19 | avatar |
string | https://oss.ficoo.vip/cbb/userAvatar/176... | avatar |
✅ 同名映射 |
| 20 | birth_date |
string | 0001-01-01 00:00:00 | birth_date |
✅ 同名映射 |
| 21 | charge_way |
integer | 2 | charge_way |
✅ 同名映射 |
| 22 | create_time |
string | 2026-01-26 15:26:11 | create_time |
✅ 同名映射 |
| 23 | cx_unit_price |
number | 0.0 | cx_unit_price |
✅ 同名映射 |
| 24 | end_time |
string | 2026-02-01 08:00:00 | end_time |
✅ 同名映射 |
| 25 | entry_time |
string | 2026-01-26 08:00:00 | entry_time |
✅ 同名映射 |
| 26 | gender |
integer | 0 | gender |
✅ 同名映射 |
| 27 | height |
number | 0.0 | height |
✅ 同名映射 |
| 28 | introduce |
string | introduce |
✅ 同名映射 | |
| 29 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 30 | is_guaranteed |
integer | 1 | is_guaranteed |
✅ 同名映射 |
| 31 | is_team_leader |
integer | 0 | is_team_leader |
✅ 同名映射 |
| 32 | last_table_id |
integer | 0 | last_table_id |
✅ 同名映射 |
| 33 | last_table_name |
string | last_table_name |
✅ 同名映射 | |
| 34 | last_update_name |
string | 教练:夏滋岸 | last_update_name |
✅ 同名映射 |
| 35 | level |
integer | 10 | level |
✅ 同名映射 |
| 36 | light_equipment_id |
string | light_equipment_id |
✅ 同名映射 | |
| 37 | light_status |
integer | 2 | light_status |
✅ 同名映射 |
| 38 | mobile |
string | 17606621482 | mobile |
✅ 同名映射 |
| 39 | nickname |
string | 渔渔 | nickname |
✅ 同名映射 |
| 40 | online_status |
integer | 1 | online_status |
✅ 同名映射 |
| 41 | order_trade_no |
integer | 0 | order_trade_no |
✅ 同名映射 |
| 42 | pd_unit_price |
number | 0.0 | pd_unit_price |
✅ 同名映射 |
| 43 | person_org_id |
integer | 3067857612573381 | person_org_id |
✅ 同名映射 |
| 44 | real_name |
string | 李思怡 | real_name |
✅ 同名映射 |
| 45 | resign_time |
string | 2226-01-26 15:26:11 | resign_time |
✅ 同名映射 |
| 46 | serial_number |
integer | 5130 | serial_number |
✅ 同名映射 |
| 47 | show_sort |
integer | 13 | show_sort |
✅ 同名映射 |
| 48 | show_status |
integer | 1 | show_status |
✅ 同名映射 |
| 49 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 50 | site_light_cfg_id |
integer | 0 | site_light_cfg_id |
✅ 同名映射 |
| 51 | staff_id |
integer | 0 | staff_id |
✅ 同名映射 |
| 52 | start_time |
string | 2026-01-01 08:00:00 | start_time |
✅ 同名映射 |
| 53 | team_id |
integer | 2959085810992645 | team_id |
✅ 同名映射 |
| 54 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 55 | update_time |
string | 2026-01-28 21:32:15 | update_time |
✅ 同名映射 |
| 56 | user_id |
integer | 3067857612163781 | user_id |
✅ 同名映射 |
| 57 | video_introduction_url |
string | video_introduction_url |
✅ 同名映射 | |
| 58 | weight |
number | 0.0 | weight |
✅ 同名映射 |
| 59 | work_status |
integer | 1 | work_status |
✅ 同名映射 |
| 60 | assistant_grade |
number | 0.0 | assistant_grade |
✅ 同名映射 |
| 61 | sum_grade |
number | 0.0 | sum_grade |
✅ 同名映射 |
| 62 | get_grade_times |
integer | 0 | get_grade_times |
✅ 同名映射 |
映射统计:62 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.assistant_accounts_master (67 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
assistant_id, assistant_id |
| 2 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 3 | site_id |
BIGINT | site_id |
site_id |
| 4 | assistant_no |
TEXT | assistant_no |
assistant_no |
| 5 | nickname |
TEXT | nickname |
nickname |
| 6 | real_name |
TEXT | real_name |
real_name |
| 7 | mobile |
TEXT | mobile |
mobile |
| 8 | team_id |
BIGINT | team_id |
team_id |
| 9 | team_name |
TEXT | team_name |
team_name |
| 10 | user_id |
BIGINT | user_id |
user_id |
| 11 | level |
TEXT | level |
level |
| 12 | assistant_status |
INT | assistant_status |
assistant_status |
| 13 | work_status |
INT | work_status |
work_status |
| 14 | leave_status |
INT | leave_status |
leave_status |
| 15 | entry_time |
TIMESTAMP | entry_time |
entry_time |
| 16 | resign_time |
TIMESTAMP | resign_time |
resign_time |
| 17 | start_time |
TIMESTAMP | start_time |
start_time |
| 18 | end_time |
TIMESTAMP | end_time |
end_time |
| 19 | create_time |
TIMESTAMP | create_time |
create_time |
| 20 | update_time |
TIMESTAMP | update_time |
update_time |
| 21 | order_trade_no |
TEXT | order_trade_no |
order_trade_no |
| 22 | staff_id |
BIGINT | staff_id |
staff_id |
| 23 | staff_profile_id |
BIGINT | staff_profile_id |
staff_profile_id |
| 24 | system_role_id |
BIGINT | system_role_id |
— |
| 25 | avatar |
TEXT | avatar |
avatar |
| 26 | birth_date |
TIMESTAMP | birth_date |
birth_date |
| 27 | gender |
INT | gender |
gender |
| 28 | height |
NUMERIC(18,2) | height |
height |
| 29 | weight |
NUMERIC(18,2) | weight |
weight |
| 30 | job_num |
TEXT | job_num |
— |
| 31 | show_status |
INT | show_status |
show_status |
| 32 | show_sort |
INT | show_sort |
show_sort |
| 33 | sum_grade |
NUMERIC(18,2) | sum_grade |
sum_grade |
| 34 | assistant_grade |
NUMERIC(18,2) | assistant_grade |
assistant_grade |
| 35 | get_grade_times |
INT | get_grade_times |
get_grade_times |
| 36 | introduce |
TEXT | introduce |
introduce |
| 37 | video_introduction_url |
TEXT | video_introduction_url |
video_introduction_url |
| 38 | group_id |
BIGINT | group_id |
group_id |
| 39 | group_name |
TEXT | group_name |
group_name |
| 40 | shop_name |
TEXT | shop_name |
shop_name |
| 41 | charge_way |
INT | charge_way |
charge_way |
| 42 | entry_type |
INT | entry_type |
entry_type |
| 43 | allow_cx |
INT | allow_cx |
allow_cx |
| 44 | is_guaranteed |
INT | is_guaranteed |
is_guaranteed |
| 45 | salary_grant_enabled |
INT | salary_grant_enabled |
salary_grant_enabled |
| 46 | light_status |
INT | light_status |
light_status |
| 47 | online_status |
INT | online_status |
online_status |
| 48 | is_delete |
INT | is_delete |
is_delete |
| 49 | cx_unit_price |
NUMERIC(18,2) | cx_unit_price |
— |
| 50 | pd_unit_price |
NUMERIC(18,2) | pd_unit_price |
— |
| 51 | last_table_id |
BIGINT | last_table_id |
last_table_id |
| 52 | last_table_name |
TEXT | last_table_name |
last_table_name |
| 53 | person_org_id |
BIGINT | person_org_id |
person_org_id |
| 54 | serial_number |
BIGINT | serial_number |
serial_number |
| 55 | is_team_leader |
INT | is_team_leader |
is_team_leader |
| 56 | criticism_status |
INT | criticism_status |
criticism_status |
| 57 | last_update_name |
TEXT | last_update_name |
last_update_name |
| 58 | ding_talk_synced |
INT | ding_talk_synced |
ding_talk_synced |
| 59 | site_light_cfg_id |
BIGINT | site_light_cfg_id |
site_light_cfg_id |
| 60 | light_equipment_id |
TEXT | light_equipment_id |
light_equipment_id |
| 61 | entry_sign_status |
INT | entry_sign_status |
entry_sign_status |
| 62 | resign_sign_status |
INT | resign_sign_status |
resign_sign_status |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dim_assistant — 维度 (19 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | assistant_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | user_id |
BIGINT | user_id |
直接 | |
| 3 | assistant_no |
TEXT | assistant_no |
直接 | 同名直传 |
| 4 | real_name |
TEXT | real_name |
直接 | 同名直传 |
| 5 | nickname |
TEXT | nickname |
直接 | 同名直传 |
| 6 | mobile |
TEXT | mobile |
直接 | 同名直传 |
| 7 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 8 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 9 | team_id |
BIGINT | team_id |
直接 | 同名直传 |
| 10 | team_name |
TEXT | team_name |
直接 | 同名直传 |
| 11 | level |
INTEGER | level |
直接 | 同名直传 |
| 12 | entry_time |
TIMESTAMPTZ | entry_time |
直接 | 同名直传 |
| 13 | resign_time |
TIMESTAMPTZ | resign_time |
直接 | 同名直传 |
| 14 | leave_status |
INTEGER | leave_status |
直接 | 同名直传 |
| 15 | assistant_status |
INTEGER | assistant_status |
直接 | 同名直传 |
| 16 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 17 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 18 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 19 | SCD2_version |
INT | — | — | SCD2 元数据 |
DWD: dwd.dim_assistant_ex — 维度(扩展) (48 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | assistant_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | gender |
INTEGER | gender |
直接 | 同名直传 |
| 3 | birth_date |
TIMESTAMPTZ | birth_date |
直接 | 同名直传 |
| 4 | avatar |
TEXT | avatar |
直接 | 同名直传 |
| 5 | introduce |
TEXT | introduce |
直接 | |
| 6 | video_introduction_url |
TEXT | video_introduction_url |
直接 | 同名直传 |
| 7 | height |
NUMERIC(5,2) | height |
直接 | 同名直传 |
| 8 | weight |
NUMERIC(5,2) | weight |
直接 | 同名直传 |
| 9 | shop_name |
TEXT | shop_name |
直接 | 同名直传 |
| 10 | group_id |
BIGINT | group_id |
直接 | 同名直传 |
| 11 | group_name |
TEXT | group_name |
直接 | |
| 12 | person_org_id |
BIGINT | person_org_id |
直接 | 同名直传 |
| 13 | staff_id |
BIGINT | staff_id |
直接 | 同名直传 |
| 14 | staff_profile_id |
BIGINT | staff_profile_id |
直接 | 同名直传 |
| 15 | assistant_grade |
DOUBLE | assistant_grade |
直接 | 同名直传 |
| 16 | sum_grade |
DOUBLE | sum_grade |
直接 | 同名直传 |
| 17 | get_grade_times |
INTEGER | get_grade_times |
直接 | 同名直传 |
| 18 | charge_way |
INTEGER | charge_way |
直接 | 同名直传 |
| 19 | allow_cx |
INTEGER | allow_cx |
直接 | 同名直传 |
| 20 | is_guaranteed |
INTEGER | is_guaranteed |
直接 | 同名直传 |
| 21 | salary_grant_enabled |
INTEGER | salary_grant_enabled |
直接 | 同名直传 |
| 22 | entry_type |
INTEGER | entry_type |
直接 | 同名直传 |
| 23 | entry_sign_status |
INTEGER | entry_sign_status |
直接 | 同名直传 |
| 24 | resign_sign_status |
INTEGER | resign_sign_status |
直接 | 同名直传 |
| 25 | work_status |
INTEGER | work_status |
直接 | 同名直传 |
| 26 | show_status |
INTEGER | show_status |
直接 | 同名直传 |
| 27 | show_sort |
INTEGER | show_sort |
直接 | 同名直传 |
| 28 | online_status |
INTEGER | online_status |
直接 | 同名直传 |
| 29 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 30 | criticism_status |
INTEGER | criticism_status |
直接 | 同名直传 |
| 31 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 32 | update_time |
TIMESTAMPTZ | update_time |
直接 | 同名直传 |
| 33 | start_time |
TIMESTAMPTZ | start_time |
直接 | 同名直传 |
| 34 | end_time |
TIMESTAMPTZ | end_time |
直接 | 同名直传 |
| 35 | last_table_id |
BIGINT | last_table_id |
直接 | 同名直传 |
| 36 | last_table_name |
TEXT | last_table_name |
直接 | 同名直传 |
| 37 | last_update_name |
TEXT | last_update_name |
直接 | 同名直传 |
| 38 | order_trade_no |
BIGINT | order_trade_no |
直接 | 同名直传 |
| 39 | ding_talk_synced |
INTEGER | ding_talk_synced |
直接 | 同名直传 |
| 40 | site_light_cfg_id |
BIGINT | site_light_cfg_id |
直接 | 同名直传 |
| 41 | light_equipment_id |
TEXT | light_equipment_id |
直接 | |
| 42 | light_status |
INTEGER | light_status |
直接 | 同名直传 |
| 43 | is_team_leader |
INTEGER | is_team_leader |
直接 | 同名直传 |
| 44 | serial_number |
BIGINT | serial_number |
直接 | 同名直传 |
| 45 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 46 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 47 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 48 | SCD2_version |
INT | — | — | SCD2 元数据 |
结账记录 (settlement_records)
- 任务编码:
ODS_SETTLEMENT_RECORDS - API 端点:
/Site/GetAllOrderSettleList - 时间字段:
rangeStartTime/rangeEndTime - 获取记录数: 200
API 源字段(68 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | id |
integer | 3093864077166789 | id |
✅ 同名映射 |
| 2 | tenantId |
integer | 2790683160709957 | tenantid |
🔄 大小写不敏感匹配 |
| 3 | siteId |
integer | 2790685415443269 | siteid |
🔄 大小写不敏感匹配 |
| 4 | siteName |
string | 朗朗桌球 | sitename |
🔄 大小写不敏感匹配 |
| 5 | balanceAmount |
number | 0.0 | balanceamount |
🔄 大小写不敏感匹配 |
| 6 | cardAmount |
number | 0.0 | cardamount |
🔄 大小写不敏感匹配 |
| 7 | cashAmount |
number | 0.0 | cashamount |
🔄 大小写不敏感匹配 |
| 8 | couponAmount |
number | 0.0 | couponamount |
🔄 大小写不敏感匹配 |
| 9 | createTime |
string | 2026-02-14 00:21:19 | createtime |
🔄 大小写不敏感匹配 |
| 10 | memberId |
integer | 0 | memberid |
🔄 大小写不敏感匹配 |
| 11 | memberName |
string | membername |
🔄 大小写不敏感匹配 | |
| 12 | tenantMemberCardId |
integer | 0 | tenantmembercardid |
🔄 大小写不敏感匹配 |
| 13 | memberCardTypeName |
string | membercardtypename |
🔄 大小写不敏感匹配 | |
| 14 | memberPhone |
string | memberphone |
🔄 大小写不敏感匹配 | |
| 15 | tableId |
integer | 0 | tableid |
🔄 大小写不敏感匹配 |
| 16 | consumeMoney |
number | 10.0 | consumemoney |
🔄 大小写不敏感匹配 |
| 17 | onlineAmount |
number | 0.0 | onlineamount |
🔄 大小写不敏感匹配 |
| 18 | operatorId |
integer | 2790687322443013 | operatorid |
🔄 大小写不敏感匹配 |
| 19 | operatorName |
string | 收银员:郑丽珊 | operatorname |
🔄 大小写不敏感匹配 |
| 20 | revokeOrderId |
integer | 0 | revokeorderid |
🔄 大小写不敏感匹配 |
| 21 | revokeOrderName |
string | revokeordername |
🔄 大小写不敏感匹配 | |
| 22 | revokeTime |
string | 0001-01-01 00:00:00 | revoketime |
🔄 大小写不敏感匹配 |
| 23 | payAmount |
number | 7.0 | payamount |
🔄 大小写不敏感匹配 |
| 24 | pointAmount |
number | 7.0 | pointamount |
🔄 大小写不敏感匹配 |
| 25 | refundAmount |
number | 0.0 | refundamount |
🔄 大小写不敏感匹配 |
| 26 | settleName |
string | 商城订单 | settlename |
🔄 大小写不敏感匹配 |
| 27 | settleRelateId |
integer | 3093864074381509 | settlerelateid |
🔄 大小写不敏感匹配 |
| 28 | settleStatus |
integer | 2 | settlestatus |
🔄 大小写不敏感匹配 |
| 29 | settleType |
integer | 3 | settletype |
🔄 大小写不敏感匹配 |
| 30 | payTime |
string | 2026-02-14 00:21:21 | paytime |
🔄 大小写不敏感匹配 |
| 31 | roundingAmount |
number | 0.0 | roundingamount |
🔄 大小写不敏感匹配 |
| 32 | paymentMethod |
integer | 0 | paymentmethod |
🔄 大小写不敏感匹配 |
| 33 | adjustAmount |
number | 0.0 | adjustamount |
🔄 大小写不敏感匹配 |
| 34 | assistantCxMoney |
number | 0.0 | assistantcxmoney |
🔄 大小写不敏感匹配 |
| 35 | assistantPdMoney |
number | 0.0 | assistantpdmoney |
🔄 大小写不敏感匹配 |
| 36 | couponSaleAmount |
number | 0.0 | couponsaleamount |
🔄 大小写不敏感匹配 |
| 37 | plCouponSaleAmount |
number | 0.0 | plcouponsaleamount |
🔄 大小写不敏感匹配 |
| 38 | merVouSalesAmount |
number | 0.0 | mervousalesamount |
🔄 大小写不敏感匹配 |
| 39 | memberDiscountAmount |
number | 0.0 | memberdiscountamount |
🔄 大小写不敏感匹配 |
| 40 | tableChargeMoney |
number | 0.0 | tablechargemoney |
🔄 大小写不敏感匹配 |
| 41 | goodsMoney |
number | 10.0 | goodsmoney |
🔄 大小写不敏感匹配 |
| 42 | realGoodsMoney |
number | 7.0 | realgoodsmoney |
🔄 大小写不敏感匹配 |
| 43 | serviceMoney |
number | 0.0 | servicemoney |
🔄 大小写不敏感匹配 |
| 44 | prepayMoney |
number | 0.0 | prepaymoney |
🔄 大小写不敏感匹配 |
| 45 | salesManName |
string | salesmanname |
🔄 大小写不敏感匹配 | |
| 46 | orderRemark |
string | orderremark |
🔄 大小写不敏感匹配 | |
| 47 | salesManUserId |
integer | 0 | salesmanuserid |
🔄 大小写不敏感匹配 |
| 48 | canBeRevoked |
boolean | False | canberevoked |
🔄 大小写不敏感匹配 |
| 49 | pointDiscountPrice |
number | 0.0 | pointdiscountprice |
🔄 大小写不敏感匹配 |
| 50 | pointDiscountCost |
number | 0.0 | pointdiscountcost |
🔄 大小写不敏感匹配 |
| 51 | activityDiscount |
number | 0.0 | activitydiscount |
🔄 大小写不敏感匹配 |
| 52 | serialNumber |
integer | 0 | serialnumber |
🔄 大小写不敏感匹配 |
| 53 | assistantManualDiscount |
number | 0.0 | assistantmanualdiscount |
🔄 大小写不敏感匹配 |
| 54 | allCouponDiscount |
number | 0.0 | allcoupondiscount |
🔄 大小写不敏感匹配 |
| 55 | goodsPromotionMoney |
number | 0.0 | goodspromotionmoney |
🔄 大小写不敏感匹配 |
| 56 | assistantPromotionMoney |
number | 0.0 | assistantpromotionmoney |
🔄 大小写不敏感匹配 |
| 57 | isUseCoupon |
boolean | False | isusecoupon |
🔄 大小写不敏感匹配 |
| 58 | isUseDiscount |
boolean | False | isusediscount |
🔄 大小写不敏感匹配 |
| 59 | isActivity |
boolean | False | isactivity |
🔄 大小写不敏感匹配 |
| 60 | isBindMember |
boolean | False | isbindmember |
🔄 大小写不敏感匹配 |
| 61 | isFirst |
integer | 0 | isfirst |
🔄 大小写不敏感匹配 |
| 62 | rechargeCardAmount |
integer | 0 | rechargecardamount |
🔄 大小写不敏感匹配 |
| 63 | giftCardAmount |
integer | 0 | giftcardamount |
🔄 大小写不敏感匹配 |
| 64 | electricityMoney |
number | 0.0 | electricitymoney |
🔄 大小写不敏感匹配 |
| 65 | realElectricityMoney |
number | 0.0 | realelectricitymoney |
🔄 大小写不敏感匹配 |
| 66 | electricityAdjustMoney |
number | 0.0 | electricityadjustmoney |
🔄 大小写不敏感匹配 |
| 67 | siteProfile |
object | {"id": 0, "org_id": 0, "shop_name": "", ... | — | 📦 嵌套对象,不直接映射 |
| 68 | settleList |
object | {"id": 3093864077166789, "tenantId": 279... | — | 📦 嵌套对象,展平后各字段独立映射 |
映射统计:66 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.settlement_records (71 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
order_settle_id, order_settle_id |
| 2 | tenantid |
BIGINT | tenantId |
tenant_id |
| 3 | siteid |
BIGINT | siteId |
site_id |
| 4 | sitename |
TEXT | siteName |
site_name |
| 5 | balanceamount |
NUMERIC(18,2) | balanceAmount |
balance_amount |
| 6 | cardamount |
NUMERIC(18,2) | cardAmount |
card_amount |
| 7 | cashamount |
NUMERIC(18,2) | cashAmount |
cash_amount |
| 8 | couponamount |
NUMERIC(18,2) | couponAmount |
coupon_amount |
| 9 | createtime |
TIMESTAMPTZ | createTime |
create_time |
| 10 | memberid |
BIGINT | memberId |
member_id |
| 11 | membername |
TEXT | memberName |
member_name |
| 12 | tenantmembercardid |
BIGINT | tenantMemberCardId |
member_card_account_id |
| 13 | membercardtypename |
TEXT | memberCardTypeName |
member_card_type_name |
| 14 | memberphone |
TEXT | memberPhone |
member_phone |
| 15 | tableid |
BIGINT | tableId |
table_id |
| 16 | consumemoney |
NUMERIC(18,2) | consumeMoney |
consume_money |
| 17 | onlineamount |
NUMERIC(18,2) | onlineAmount |
online_amount |
| 18 | operatorid |
BIGINT | operatorId |
operator_id |
| 19 | operatorname |
TEXT | operatorName |
operator_name |
| 20 | revokeorderid |
BIGINT | revokeOrderId |
revoke_order_id |
| 21 | revokeordername |
TEXT | revokeOrderName |
revoke_order_name |
| 22 | revoketime |
TIMESTAMPTZ | revokeTime |
revoke_time |
| 23 | payamount |
NUMERIC(18,2) | payAmount |
pay_amount |
| 24 | pointamount |
NUMERIC(18,2) | pointAmount |
point_amount |
| 25 | refundamount |
NUMERIC(18,2) | refundAmount |
refund_amount |
| 26 | settlename |
TEXT | settleName |
settle_name |
| 27 | settlerelateid |
BIGINT | settleRelateId |
order_trade_no |
| 28 | settlestatus |
INT | settleStatus |
settle_status |
| 29 | settletype |
INT | settleType |
settle_type |
| 30 | paytime |
TIMESTAMPTZ | payTime |
pay_time |
| 31 | roundingamount |
NUMERIC(18,2) | roundingAmount |
rounding_amount |
| 32 | paymentmethod |
INT | paymentMethod |
payment_method |
| 33 | adjustamount |
NUMERIC(18,2) | adjustAmount |
adjust_amount |
| 34 | assistantcxmoney |
NUMERIC(18,2) | assistantCxMoney |
assistant_cx_money |
| 35 | assistantpdmoney |
NUMERIC(18,2) | assistantPdMoney |
assistant_pd_money |
| 36 | couponsaleamount |
NUMERIC(18,2) | couponSaleAmount |
coupon_sale_amount |
| 37 | memberdiscountamount |
NUMERIC(18,2) | memberDiscountAmount |
member_discount_amount |
| 38 | tablechargemoney |
NUMERIC(18,2) | tableChargeMoney |
table_charge_money |
| 39 | goodsmoney |
NUMERIC(18,2) | goodsMoney |
goods_money |
| 40 | realgoodsmoney |
NUMERIC(18,2) | realGoodsMoney |
real_goods_money |
| 41 | servicemoney |
NUMERIC(18,2) | serviceMoney |
service_money |
| 42 | prepaymoney |
NUMERIC(18,2) | prepayMoney |
prepay_money |
| 43 | salesmanname |
TEXT | salesManName |
salesman_name |
| 44 | orderremark |
TEXT | orderRemark |
order_remark |
| 45 | salesmanuserid |
BIGINT | salesManUserId |
salesman_user_id |
| 46 | canberevoked |
BOOLEAN | canBeRevoked |
can_be_revoked |
| 47 | pointdiscountprice |
NUMERIC(18,2) | pointDiscountPrice |
point_discount_price |
| 48 | pointdiscountcost |
NUMERIC(18,2) | pointDiscountCost |
point_discount_cost |
| 49 | activitydiscount |
NUMERIC(18,2) | activityDiscount |
activity_discount |
| 50 | serialnumber |
BIGINT | serialNumber |
serial_number |
| 51 | assistantmanualdiscount |
NUMERIC(18,2) | assistantManualDiscount |
assistant_manual_discount |
| 52 | allcoupondiscount |
NUMERIC(18,2) | allCouponDiscount |
all_coupon_discount |
| 53 | goodspromotionmoney |
NUMERIC(18,2) | goodsPromotionMoney |
goods_promotion_money |
| 54 | assistantpromotionmoney |
NUMERIC(18,2) | assistantPromotionMoney |
assistant_promotion_money |
| 55 | isusecoupon |
BOOLEAN | isUseCoupon |
is_use_coupon |
| 56 | isusediscount |
BOOLEAN | isUseDiscount |
is_use_discount |
| 57 | isactivity |
BOOLEAN | isActivity |
is_activity |
| 58 | isbindmember |
BOOLEAN | isBindMember |
is_bind_member |
| 59 | isfirst |
INT | isFirst |
is_first_order |
| 60 | rechargecardamount |
NUMERIC(18,2) | rechargeCardAmount |
recharge_card_amount |
| 61 | giftcardamount |
NUMERIC(18,2) | giftCardAmount |
gift_card_amount |
| 62 | electricityadjustmoney |
NUMERIC(18,2) | electricityAdjustMoney |
electricity_adjust_money |
| 63 | electricitymoney |
NUMERIC(18,2) | electricityMoney |
electricity_money |
| 64 | mervousalesamount |
NUMERIC(18,2) | merVouSalesAmount |
mervou_sales_amount |
| 65 | plcouponsaleamount |
NUMERIC(18,2) | plCouponSaleAmount |
pl_coupon_sale_amount |
| 66 | realelectricitymoney |
NUMERIC(18,2) | realElectricityMoney |
real_electricity_money |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dwd_settlement_head — 事实 (37 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | order_settle_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenantid |
直接 | 字段重命名 |
| 3 | site_id |
BIGINT | siteid |
直接 | 字段重命名 |
| 4 | site_name |
VARCHAR(100) | sitename |
直接 | 字段重命名 |
| 5 | table_id |
BIGINT | tableid |
直接 | 字段重命名 |
| 6 | settle_name |
VARCHAR(100) | settlename |
直接 | 字段重命名 |
| 7 | order_trade_no |
BIGINT | settlerelateid |
直接 | 字段重命名 |
| 8 | create_time |
TIMESTAMPTZ | createtime |
直接 | 字段重命名 |
| 9 | pay_time |
TIMESTAMPTZ | paytime |
直接 | 字段重命名 |
| 10 | settle_type |
INTEGER | settletype |
直接 | 字段重命名 |
| 11 | revoke_order_id |
BIGINT | revokeorderid |
直接 | 字段重命名 |
| 12 | member_id |
BIGINT | memberid |
直接 | 字段重命名 |
| 13 | member_name |
VARCHAR(100) | membername |
直接 | 字段重命名 |
| 14 | member_phone |
VARCHAR(50) | memberphone |
直接 | 字段重命名 |
| 15 | member_card_account_id |
BIGINT | tenantmembercardid |
直接 | 字段重命名 |
| 16 | member_card_type_name |
VARCHAR(100) | membercardtypename |
直接 | 字段重命名 |
| 17 | is_bind_member |
BOOLEAN | isbindmember |
直接 | 字段重命名 |
| 18 | member_discount_amount |
NUMERIC(18,2) | memberdiscountamount |
直接 | 字段重命名 |
| 19 | consume_money |
NUMERIC(18,2) | consumemoney |
直接 | 字段重命名 |
| 20 | table_charge_money |
NUMERIC(18,2) | tablechargemoney |
直接 | 字段重命名 |
| 21 | goods_money |
NUMERIC(18,2) | goodsmoney |
直接 | 字段重命名 |
| 22 | real_goods_money |
NUMERIC(18,2) | realgoodsmoney |
直接 | 字段重命名 |
| 23 | assistant_pd_money |
NUMERIC(18,2) | assistantpdmoney |
直接 | 字段重命名 |
| 24 | assistant_cx_money |
NUMERIC(18,2) | assistantcxmoney |
直接 | 字段重命名 |
| 25 | adjust_amount |
NUMERIC(18,2) | adjustamount |
直接 | 字段重命名 |
| 26 | pay_amount |
NUMERIC(18,2) | payamount |
直接 | 字段重命名 |
| 27 | balance_amount |
NUMERIC(18,2) | balanceamount |
直接 | 字段重命名 |
| 28 | recharge_card_amount |
NUMERIC(18,2) | rechargecardamount |
直接 | 字段重命名 |
| 29 | gift_card_amount |
NUMERIC(18,2) | giftcardamount |
直接 | 字段重命名 |
| 30 | coupon_amount |
NUMERIC(18,2) | couponamount |
直接 | 字段重命名 |
| 31 | rounding_amount |
NUMERIC(18,2) | roundingamount |
直接 | 字段重命名 |
| 32 | point_amount |
NUMERIC(18,2) | pointamount |
直接 | 字段重命名 |
| 33 | electricity_money |
NUMERIC(18,2) | electricitymoney |
直接 | 字段重命名 |
| 34 | real_electricity_money |
NUMERIC(18,2) | realelectricitymoney |
直接 | 字段重命名 |
| 35 | electricity_adjust_money |
NUMERIC(18,2) | electricityadjustmoney |
直接 | 字段重命名 |
| 36 | pl_coupon_sale_amount |
NUMERIC(18,2) | plcouponsaleamount |
直接 | 字段重命名 |
| 37 | mervou_sales_amount |
NUMERIC(18,2) | mervousalesamount |
直接 | 字段重命名 |
DWD: dwd.dwd_settlement_head_ex — 事实(扩展) (30 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | order_settle_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | serial_number |
INTEGER | serialnumber |
直接 | 字段重命名 |
| 3 | settle_status |
INTEGER | settlestatus |
直接 | 字段重命名 |
| 4 | can_be_revoked |
BOOLEAN | canberevoked |
→ boolean | 字段重命名 |
| 5 | revoke_order_name |
VARCHAR(100) | revokeordername |
直接 | 字段重命名 |
| 6 | revoke_time |
TIMESTAMPTZ | revoketime |
直接 | 字段重命名 |
| 7 | is_first_order |
BOOLEAN | isfirst |
→ boolean | 字段重命名 |
| 8 | service_money |
NUMERIC(18,2) | servicemoney |
直接 | 字段重命名 |
| 9 | cash_amount |
NUMERIC(18,2) | cashamount |
直接 | 字段重命名 |
| 10 | card_amount |
NUMERIC(18,2) | cardamount |
直接 | 字段重命名 |
| 11 | online_amount |
NUMERIC(18,2) | onlineamount |
直接 | 字段重命名 |
| 12 | refund_amount |
NUMERIC(18,2) | refundamount |
直接 | 字段重命名 |
| 13 | prepay_money |
NUMERIC(18,2) | prepaymoney |
直接 | 字段重命名 |
| 14 | payment_method |
INTEGER | paymentmethod |
直接 | 字段重命名 |
| 15 | coupon_sale_amount |
NUMERIC(18,2) | couponsaleamount |
直接 | 字段重命名 |
| 16 | all_coupon_discount |
NUMERIC(18,2) | allcoupondiscount |
直接 | 字段重命名 |
| 17 | goods_promotion_money |
NUMERIC(18,2) | goodspromotionmoney |
直接 | 字段重命名 |
| 18 | assistant_promotion_money |
NUMERIC(18,2) | assistantpromotionmoney |
直接 | 字段重命名 |
| 19 | activity_discount |
NUMERIC(18,2) | activitydiscount |
直接 | 字段重命名 |
| 20 | assistant_manual_discount |
NUMERIC(18,2) | assistantmanualdiscount |
直接 | 字段重命名 |
| 21 | point_discount_price |
NUMERIC(18,2) | pointdiscountprice |
直接 | 字段重命名 |
| 22 | point_discount_cost |
NUMERIC(18,2) | pointdiscountcost |
直接 | 字段重命名 |
| 23 | is_use_coupon |
BOOLEAN | isusecoupon |
→ boolean | 字段重命名 |
| 24 | is_use_discount |
BOOLEAN | isusediscount |
→ boolean | 字段重命名 |
| 25 | is_activity |
BOOLEAN | isactivity |
→ boolean | 字段重命名 |
| 26 | operator_name |
VARCHAR(100) | operatorname |
直接 | 字段重命名 |
| 27 | salesman_name |
VARCHAR(100) | salesmanname |
直接 | 字段重命名 |
| 28 | order_remark |
VARCHAR(255) | orderremark |
直接 | 字段重命名 |
| 29 | operator_id |
BIGINT | operatorid |
直接 | 字段重命名 |
| 30 | salesman_user_id |
BIGINT | salesmanuserid |
直接 | 字段重命名 |
台费计费流水 (table_fee_transactions)
- 任务编码:
ODS_TABLE_USE - API 端点:
/Site/GetSiteTableOrderDetails - 时间字段:
startTime/endTime - 获取记录数: 200
API 源字段(42 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | siteProfile |
object | {"id": 2790685415443269, "org_id": 27906... | — | 📦 嵌套对象,不直接映射 |
| 2 | id |
integer | 3093859291416901 | id |
✅ 同名映射 |
| 3 | add_clock_seconds |
integer | 0 | add_clock_seconds |
✅ 同名映射 |
| 4 | activity_discount_amount |
number | 0.0 | activity_discount_amount |
✅ 同名映射 |
| 5 | adjust_amount |
number | 0.0 | adjust_amount |
✅ 同名映射 |
| 6 | coupon_promotion_amount |
number | 96.0 | coupon_promotion_amount |
✅ 同名映射 |
| 7 | create_time |
string | 2026-02-14 00:16:27 | create_time |
✅ 同名映射 |
| 8 | fee_total |
number | 0.0 | fee_total |
✅ 同名映射 |
| 9 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 10 | is_single_order |
integer | 1 | is_single_order |
✅ 同名映射 |
| 11 | last_use_time |
string | 2026-02-14 00:15:53 | last_use_time |
✅ 同名映射 |
| 12 | ledger_amount |
number | 96.0 | ledger_amount |
✅ 同名映射 |
| 13 | ledger_count |
integer | 7200 | ledger_count |
✅ 同名映射 |
| 14 | ledger_end_time |
string | 2026-02-14 00:15:53 | ledger_end_time |
✅ 同名映射 |
| 15 | ledger_name |
string | A15 | ledger_name |
✅ 同名映射 |
| 16 | ledger_start_time |
string | 2026-02-13 22:15:53 | ledger_start_time |
✅ 同名映射 |
| 17 | ledger_status |
integer | 1 | ledger_status |
✅ 同名映射 |
| 18 | ledger_unit_price |
number | 48.0 | ledger_unit_price |
✅ 同名映射 |
| 19 | member_discount_amount |
number | 0.0 | member_discount_amount |
✅ 同名映射 |
| 20 | member_id |
integer | 0 | member_id |
✅ 同名映射 |
| 21 | mgmt_fee |
number | 0.0 | mgmt_fee |
✅ 同名映射 |
| 22 | operator_id |
integer | 2790687322443013 | operator_id |
✅ 同名映射 |
| 23 | operator_name |
string | 收银员:郑丽珊 | operator_name |
✅ 同名映射 |
| 24 | order_consumption_type |
integer | 3 | order_consumption_type |
✅ 同名映射 |
| 25 | order_pay_id |
integer | 0 | order_pay_id |
✅ 同名映射 |
| 26 | order_settle_id |
integer | 3093859276196037 | order_settle_id |
✅ 同名映射 |
| 27 | order_trade_no |
integer | 3093740766775621 | order_trade_no |
✅ 同名映射 |
| 28 | real_table_charge_money |
number | 0.0 | real_table_charge_money |
✅ 同名映射 |
| 29 | real_table_use_seconds |
integer | 7200 | real_table_use_seconds |
✅ 同名映射 |
| 30 | real_service_money |
number | 0.0 | real_service_money |
✅ 同名映射 |
| 31 | salesman_name |
string | salesman_name |
✅ 同名映射 | |
| 32 | salesman_org_id |
integer | 0 | salesman_org_id |
✅ 同名映射 |
| 33 | salesman_user_id |
integer | 0 | salesman_user_id |
✅ 同名映射 |
| 34 | service_money |
number | 0.0 | service_money |
✅ 同名映射 |
| 35 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 36 | site_table_area_id |
integer | 2791963794329671 | site_table_area_id |
✅ 同名映射 |
| 37 | site_table_area_name |
string | A区 | site_table_area_name |
✅ 同名映射 |
| 38 | site_table_id |
integer | 2793003506815045 | site_table_id |
✅ 同名映射 |
| 39 | start_use_time |
string | 2026-02-13 22:15:53 | start_use_time |
✅ 同名映射 |
| 40 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 41 | tenant_table_area_id |
integer | 2791960001957765 | tenant_table_area_id |
✅ 同名映射 |
| 42 | used_card_amount |
number | 0.0 | used_card_amount |
✅ 同名映射 |
映射统计:41 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.table_fee_transactions (47 列) 🔗 API
ETL 元数据列(5 个):payload, content_hash, source_file, source_endpoint, fetched_at
DWD: dwd.dim_site — 维度 (17 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 2 | org_id |
BIGINT | siteprofile->>'org_id' |
直接 | JSONB 提取 |
| 3 | tenant_id |
BIGINT | siteprofile->>'tenant_id' |
直接 | JSONB 提取 |
| 4 | shop_name |
TEXT | siteprofile->>'shop_name' |
直接 | JSONB 提取 |
| 5 | site_label |
TEXT | siteprofile->>'site_label' |
直接 | JSONB 提取 |
| 6 | full_address |
TEXT | siteprofile->>'full_address' |
直接 | JSONB 提取 |
| 7 | address |
TEXT | siteprofile->>'address' |
直接 | JSONB 提取 |
| 8 | longitude |
NUMERIC(10,6) | siteprofile->>'longitude' |
→ numeric | JSONB 提取 |
| 9 | latitude |
NUMERIC(10,6) | siteprofile->>'latitude' |
→ numeric | JSONB 提取 |
| 10 | tenant_site_region_id |
BIGINT | siteprofile->>'tenant_site_region_id' |
直接 | JSONB 提取 |
| 11 | business_tel |
TEXT | siteprofile->>'business_tel' |
直接 | JSONB 提取 |
| 12 | site_type |
INTEGER | siteprofile->>'site_type' |
直接 | JSONB 提取 |
| 13 | shop_status |
INTEGER | siteprofile->>'shop_status' |
直接 | JSONB 提取 |
| 14 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 15 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 16 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 17 | SCD2_version |
INT | — | — | SCD2 元数据 |
DWD: dwd.dim_site_ex — 维度(扩展) (25 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 2 | avatar |
TEXT | siteprofile->>'avatar' |
直接 | JSONB 提取 |
| 3 | address |
TEXT | siteprofile->>'address' |
直接 | JSONB 提取 |
| 4 | longitude |
NUMERIC(9,6) | siteprofile->>'longitude' |
→ numeric | JSONB 提取 |
| 5 | latitude |
NUMERIC(9,6) | siteprofile->>'latitude' |
→ numeric | JSONB 提取 |
| 6 | tenant_site_region_id |
BIGINT | siteprofile->>'tenant_site_region_id' |
直接 | JSONB 提取 |
| 7 | auto_light |
INTEGER | siteprofile->>'auto_light' |
直接 | JSONB 提取 |
| 8 | light_status |
INTEGER | siteprofile->>'light_status' |
直接 | JSONB 提取 |
| 9 | light_type |
INTEGER | siteprofile->>'light_type' |
直接 | JSONB 提取 |
| 10 | light_token |
TEXT | siteprofile->>'light_token' |
直接 | JSONB 提取 |
| 11 | site_type |
INTEGER | siteprofile->>'site_type' |
直接 | JSONB 提取 |
| 12 | site_label |
TEXT | siteprofile->>'site_label' |
直接 | JSONB 提取 |
| 13 | attendance_enabled |
INTEGER | siteprofile->>'attendance_enabled' |
直接 | JSONB 提取 |
| 14 | attendance_distance |
INTEGER | siteprofile->>'attendance_distance' |
直接 | JSONB 提取 |
| 15 | customer_service_qrcode |
TEXT | siteprofile->>'customer_service_qrcode' |
直接 | JSONB 提取 |
| 16 | customer_service_wechat |
TEXT | siteprofile->>'customer_service_wechat' |
直接 | JSONB 提取 |
| 17 | fixed_pay_qrCode |
TEXT | siteprofile->>'fixed_pay_qrCode' |
直接 | JSONB 提取 |
| 18 | prod_env |
TEXT | siteprofile->>'prod_env' |
直接 | JSONB 提取 |
| 19 | shop_status |
INTEGER | siteprofile->>'shop_status' |
直接 | JSONB 提取 |
| 20 | create_time |
TIMESTAMPTZ | siteprofile->>'create_time' |
→ timestamptz | JSONB 提取 |
| 21 | update_time |
TIMESTAMPTZ | siteprofile->>'update_time' |
→ timestamptz | JSONB 提取 |
| 22 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 23 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 24 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 25 | SCD2_version |
INT | — | — | SCD2 元数据 |
DWD: dwd.dwd_table_fee_log — 事实 (29 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | table_fee_log_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | order_trade_no |
BIGINT | order_trade_no |
直接 | 同名直传 |
| 3 | order_settle_id |
BIGINT | order_settle_id |
直接 | 同名直传 |
| 4 | order_pay_id |
BIGINT | order_pay_id |
直接 | 同名直传 |
| 5 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 6 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 7 | site_table_id |
BIGINT | site_table_id |
直接 | 同名直传 |
| 8 | site_table_area_id |
BIGINT | site_table_area_id |
直接 | 同名直传 |
| 9 | site_table_area_name |
VARCHAR(64) | site_table_area_name |
直接 | 同名直传 |
| 10 | tenant_table_area_id |
BIGINT | tenant_table_area_id |
直接 | 同名直传 |
| 11 | member_id |
BIGINT | member_id |
直接 | 同名直传 |
| 12 | ledger_name |
VARCHAR(64) | ledger_name |
直接 | 同名直传 |
| 13 | ledger_unit_price |
NUMERIC(18,2) | ledger_unit_price |
直接 | 同名直传 |
| 14 | ledger_count |
INTEGER | ledger_count |
直接 | 同名直传 |
| 15 | ledger_amount |
NUMERIC(18,2) | ledger_amount |
直接 | 同名直传 |
| 16 | real_table_charge_money |
NUMERIC(18,2) | real_table_charge_money |
直接 | 同名直传 |
| 17 | coupon_promotion_amount |
NUMERIC(18,2) | coupon_promotion_amount |
直接 | 同名直传 |
| 18 | member_discount_amount |
NUMERIC(18,2) | member_discount_amount |
直接 | 同名直传 |
| 19 | adjust_amount |
NUMERIC(18,2) | adjust_amount |
直接 | 同名直传 |
| 20 | real_table_use_seconds |
INTEGER | real_table_use_seconds |
直接 | 同名直传 |
| 21 | add_clock_seconds |
INTEGER | add_clock_seconds |
直接 | 同名直传 |
| 22 | start_use_time |
TIMESTAMPTZ | start_use_time |
直接 | 同名直传 |
| 23 | ledger_end_time |
TIMESTAMPTZ | ledger_end_time |
直接 | 同名直传 |
| 24 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 25 | ledger_status |
INTEGER | ledger_status |
直接 | 同名直传 |
| 26 | is_single_order |
INTEGER | is_single_order |
直接 | 同名直传 |
| 27 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 28 | activity_discount_amount |
NUMERIC(18,2) | activity_discount_amount |
直接 | |
| 29 | real_service_money |
NUMERIC(18,2) | real_service_money |
直接 |
DWD: dwd.dwd_table_fee_log_ex — 事实(扩展) (13 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | table_fee_log_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | operator_name |
VARCHAR(64) | operator_name |
直接 | 同名直传 |
| 3 | salesman_name |
VARCHAR(64) | salesman_name |
直接 | |
| 4 | used_card_amount |
NUMERIC(18,2) | used_card_amount |
直接 | 同名直传 |
| 5 | service_money |
NUMERIC(18,2) | service_money |
直接 | 同名直传 |
| 6 | mgmt_fee |
NUMERIC(18,2) | mgmt_fee |
直接 | 同名直传 |
| 7 | fee_total |
NUMERIC(18,2) | fee_total |
直接 | 同名直传 |
| 8 | ledger_start_time |
TIMESTAMPTZ | ledger_start_time |
直接 | 同名直传 |
| 9 | last_use_time |
TIMESTAMPTZ | last_use_time |
直接 | 同名直传 |
| 10 | operator_id |
BIGINT | operator_id |
直接 | 同名直传 |
| 11 | salesman_user_id |
BIGINT | salesman_user_id |
直接 | 同名直传 |
| 12 | salesman_org_id |
BIGINT | salesman_org_id |
直接 | 同名直传 |
| 13 | order_consumption_type |
INTEGER | order_consumption_type |
直接 |
助教服务流水 (assistant_service_records)
- 任务编码:
ODS_ASSISTANT_LEDGER - API 端点:
/AssistantPerformance/GetOrderAssistantDetails - 时间字段:
startTime/endTime - 获取记录数: 200
API 源字段(66 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | assistantNo |
string | 15 | assistantNo |
✅ 同名映射 |
| 2 | nickname |
string | 七七 | nickname |
✅ 同名映射 |
| 3 | levelName |
string | 中级 | levelname |
🔄 大小写不敏感匹配 |
| 4 | assistantTeamName |
string | 1组 | assistantteamname |
🔄 大小写不敏感匹配 |
| 5 | assistantName |
string | 邹绮 | assistantName |
✅ 同名映射 |
| 6 | tableName |
string | 发财 | tablename |
🔄 大小写不敏感匹配 |
| 7 | siteProfile |
object | {"id": 2790685415443269, "org_id": 27906... | — | 📦 嵌套对象,不直接映射 |
| 8 | skillName |
string | 基础课 | skillname |
🔄 大小写不敏感匹配 |
| 9 | id |
integer | 3092712427276485 | id |
✅ 同名映射 |
| 10 | order_trade_no |
integer | 3092230766020741 | order_trade_no |
✅ 同名映射 |
| 11 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 12 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 13 | operator_id |
integer | 2790687322443013 | operator_id |
✅ 同名映射 |
| 14 | operator_name |
string | 收银员:郑丽珊 | operator_name |
✅ 同名映射 |
| 15 | order_settle_id |
integer | 3092711340902597 | order_settle_id |
✅ 同名映射 |
| 16 | ledger_name |
string | 15-七七 | ledger_name |
✅ 同名映射 |
| 17 | ledger_group_name |
string | ledger_group_name |
✅ 同名映射 | |
| 18 | ledger_unit_price |
number | 108.0 | ledger_unit_price |
✅ 同名映射 |
| 19 | ledger_count |
integer | 21544 | ledger_count |
✅ 同名映射 |
| 20 | ledger_amount |
number | 646.32 | ledger_amount |
✅ 同名映射 |
| 21 | order_pay_id |
integer | 0 | order_pay_id |
✅ 同名映射 |
| 22 | create_time |
string | 2026-02-13 04:49:48 | create_time |
✅ 同名映射 |
| 23 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 24 | assistant_team_id |
integer | 2792011585884037 | assistant_team_id |
✅ 同名映射 |
| 25 | assistant_level |
integer | 20 | assistant_level |
✅ 同名映射 |
| 26 | ledger_start_time |
string | 2026-02-12 21:15:08 | ledger_start_time |
✅ 同名映射 |
| 27 | ledger_end_time |
string | 2026-02-13 03:14:14 | ledger_end_time |
✅ 同名映射 |
| 28 | is_single_order |
integer | 1 | is_single_order |
✅ 同名映射 |
| 29 | order_assistant_id |
integer | 3092265482209605 | order_assistant_id |
✅ 同名映射 |
| 30 | site_assistant_id |
integer | 2793493699088517 | site_assistant_id |
✅ 同名映射 |
| 31 | order_assistant_type |
integer | 1 | order_assistant_type |
✅ 同名映射 |
| 32 | ledger_status |
integer | 1 | ledger_status |
✅ 同名映射 |
| 33 | site_table_id |
integer | 2956248279567557 | site_table_id |
✅ 同名映射 |
| 34 | projected_income |
number | 538.5 | projected_income |
✅ 同名映射 |
| 35 | is_not_responding |
integer | 0 | is_not_responding |
✅ 同名映射 |
| 36 | income_seconds |
integer | 21540 | income_seconds |
✅ 同名映射 |
| 37 | user_id |
integer | 2793493698596997 | user_id |
✅ 同名映射 |
| 38 | trash_applicant_id |
integer | 0 | trash_applicant_id |
✅ 同名映射 |
| 39 | trash_applicant_name |
string | trash_applicant_name |
✅ 同名映射 | |
| 40 | is_trash |
integer | 0 | is_trash |
✅ 同名映射 |
| 41 | trash_reason |
string | trash_reason |
✅ 同名映射 | |
| 42 | real_use_seconds |
integer | 21544 | real_use_seconds |
✅ 同名映射 |
| 43 | real_service_money |
number | 0.0 | real_service_money |
✅ 同名映射 |
| 44 | add_clock |
integer | 0 | add_clock |
✅ 同名映射 |
| 45 | returns_clock |
integer | 0 | returns_clock |
✅ 同名映射 |
| 46 | is_confirm |
integer | 2 | is_confirm |
✅ 同名映射 |
| 47 | member_discount_amount |
number | 0.0 | member_discount_amount |
✅ 同名映射 |
| 48 | manual_discount_amount |
number | 0.0 | manual_discount_amount |
✅ 同名映射 |
| 49 | service_money |
number | 0.0 | service_money |
✅ 同名映射 |
| 50 | person_org_id |
integer | 2793493698990213 | person_org_id |
✅ 同名映射 |
| 51 | last_use_time |
string | 2026-02-13 03:14:14 | last_use_time |
✅ 同名映射 |
| 52 | salesman_name |
string | salesman_name |
✅ 同名映射 | |
| 53 | salesman_user_id |
integer | 0 | salesman_user_id |
✅ 同名映射 |
| 54 | salesman_org_id |
integer | 0 | salesman_org_id |
✅ 同名映射 |
| 55 | coupon_deduct_money |
number | 0.0 | coupon_deduct_money |
✅ 同名映射 |
| 56 | skill_id |
integer | 2790683529513797 | skill_id |
✅ 同名映射 |
| 57 | start_use_time |
string | 2026-02-12 21:15:08 | start_use_time |
✅ 同名映射 |
| 58 | tenant_member_id |
integer | 2799207522600709 | tenant_member_id |
✅ 同名映射 |
| 59 | system_member_id |
integer | 2799207521568517 | system_member_id |
✅ 同名映射 |
| 60 | skill_grade |
integer | 0 | skill_grade |
✅ 同名映射 |
| 61 | service_grade |
integer | 0 | service_grade |
✅ 同名映射 |
| 62 | composite_grade |
number | 0.0 | composite_grade |
✅ 同名映射 |
| 63 | sum_grade |
number | 0.0 | sum_grade |
✅ 同名映射 |
| 64 | get_grade_times |
integer | 0 | get_grade_times |
✅ 同名映射 |
| 65 | grade_status |
integer | 1 | grade_status |
✅ 同名映射 |
| 66 | composite_grade_time |
string | 0001-01-01 00:00:00 | composite_grade_time |
✅ 同名映射 |
映射统计:65 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.assistant_service_records (71 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
assistant_service_id, assistant_service_id |
| 2 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 3 | site_id |
BIGINT | site_id |
site_id |
| 4 | siteProfile |
JSONB | siteProfile |
— |
| 5 | site_table_id |
BIGINT | site_table_id |
site_table_id |
| 6 | order_settle_id |
BIGINT | order_settle_id |
order_settle_id |
| 7 | order_trade_no |
TEXT | order_trade_no |
order_trade_no |
| 8 | order_pay_id |
BIGINT | order_pay_id |
order_pay_id |
| 9 | order_assistant_id |
BIGINT | order_assistant_id |
order_assistant_id, site_assistant_id |
| 10 | order_assistant_type |
INT | order_assistant_type |
order_assistant_type |
| 11 | assistantName |
TEXT | assistantName |
assistant_name |
| 12 | assistantNo |
TEXT | assistantNo |
assistant_no |
| 13 | assistant_level |
TEXT | assistant_level |
assistant_level |
| 14 | levelname |
TEXT | levelName |
level_name |
| 15 | site_assistant_id |
BIGINT | site_assistant_id |
— |
| 16 | skill_id |
BIGINT | skill_id |
skill_id |
| 17 | skillname |
TEXT | skillName |
skill_name |
| 18 | system_member_id |
BIGINT | system_member_id |
system_member_id |
| 19 | tablename |
TEXT | tableName |
table_name |
| 20 | tenant_member_id |
BIGINT | tenant_member_id |
tenant_member_id |
| 21 | user_id |
BIGINT | user_id |
user_id |
| 22 | assistant_team_id |
BIGINT | assistant_team_id |
assistant_team_id |
| 23 | nickname |
TEXT | nickname |
nickname |
| 24 | ledger_name |
TEXT | ledger_name |
ledger_name |
| 25 | ledger_group_name |
TEXT | ledger_group_name |
ledger_group_name |
| 26 | ledger_amount |
NUMERIC(18,2) | ledger_amount |
ledger_amount |
| 27 | ledger_count |
NUMERIC(18,4) | ledger_count |
ledger_count |
| 28 | ledger_unit_price |
NUMERIC(18,4) | ledger_unit_price |
ledger_unit_price |
| 29 | ledger_status |
INT | ledger_status |
ledger_status |
| 30 | ledger_start_time |
TIMESTAMP | ledger_start_time |
ledger_start_time |
| 31 | ledger_end_time |
TIMESTAMP | ledger_end_time |
ledger_end_time |
| 32 | manual_discount_amount |
NUMERIC(18,2) | manual_discount_amount |
manual_discount_amount |
| 33 | member_discount_amount |
NUMERIC(18,2) | member_discount_amount |
member_discount_amount |
| 34 | coupon_deduct_money |
NUMERIC(18,2) | coupon_deduct_money |
coupon_deduct_money |
| 35 | service_money |
NUMERIC(18,2) | service_money |
service_money |
| 36 | projected_income |
NUMERIC(18,2) | projected_income |
projected_income |
| 37 | real_use_seconds |
INT | real_use_seconds |
real_use_seconds |
| 38 | income_seconds |
INT | income_seconds |
income_seconds |
| 39 | start_use_time |
TIMESTAMP | start_use_time |
start_use_time |
| 40 | last_use_time |
TIMESTAMP | last_use_time |
last_use_time |
| 41 | create_time |
TIMESTAMP | create_time |
create_time |
| 42 | is_single_order |
INT | is_single_order |
is_single_order |
| 43 | is_delete |
INT | is_delete |
is_delete |
| 44 | is_trash |
INT | is_trash |
is_trash |
| 45 | trash_reason |
TEXT | trash_reason |
trash_reason |
| 46 | trash_applicant_id |
BIGINT | trash_applicant_id |
trash_applicant_id |
| 47 | trash_applicant_name |
TEXT | trash_applicant_name |
trash_applicant_name |
| 48 | operator_id |
BIGINT | operator_id |
— |
| 49 | operator_name |
TEXT | operator_name |
— |
| 50 | salesman_name |
TEXT | salesman_name |
salesman_name |
| 51 | salesman_org_id |
BIGINT | salesman_org_id |
salesman_org_id |
| 52 | salesman_user_id |
BIGINT | salesman_user_id |
salesman_user_id |
| 53 | person_org_id |
BIGINT | person_org_id |
person_org_id |
| 54 | add_clock |
INT | add_clock |
add_clock |
| 55 | returns_clock |
INT | returns_clock |
returns_clock |
| 56 | composite_grade |
NUMERIC(10,2) | composite_grade |
composite_grade |
| 57 | composite_grade_time |
TIMESTAMP | composite_grade_time |
composite_grade_time |
| 58 | skill_grade |
NUMERIC(10,2) | skill_grade |
skill_grade |
| 59 | service_grade |
NUMERIC(10,2) | service_grade |
service_grade |
| 60 | sum_grade |
NUMERIC(10,2) | sum_grade |
sum_grade |
| 61 | grade_status |
INT | grade_status |
grade_status |
| 62 | get_grade_times |
INT | get_grade_times |
get_grade_times |
| 63 | is_not_responding |
INT | is_not_responding |
is_not_responding |
| 64 | is_confirm |
INT | is_confirm |
is_confirm |
| 65 | assistantteamname |
TEXT | assistantTeamName |
assistant_team_name |
| 66 | real_service_money |
NUMERIC(18,2) | real_service_money |
real_service_money |
ETL 元数据列(5 个):payload, content_hash, source_file, source_endpoint, fetched_at
DWD: dwd.dwd_assistant_service_log — 事实 (33 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | assistant_service_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | order_trade_no |
BIGINT | order_trade_no |
直接 | 同名直传 |
| 3 | order_settle_id |
BIGINT | order_settle_id |
直接 | 同名直传 |
| 4 | order_pay_id |
BIGINT | order_pay_id |
直接 | 同名直传 |
| 5 | order_assistant_id |
BIGINT | order_assistant_id |
直接 | 同名直传 |
| 6 | order_assistant_type |
INTEGER | order_assistant_type |
直接 | 同名直传 |
| 7 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 8 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 9 | site_table_id |
BIGINT | site_table_id |
直接 | 同名直传 |
| 10 | tenant_member_id |
BIGINT | tenant_member_id |
直接 | 同名直传 |
| 11 | system_member_id |
BIGINT | system_member_id |
直接 | 同名直传 |
| 12 | assistant_no |
VARCHAR(64) | assistantno |
直接 | 字段重命名 |
| 13 | nickname |
VARCHAR(64) | nickname |
直接 | 同名直传 |
| 14 | site_assistant_id |
BIGINT | order_assistant_id |
直接 | 字段重命名 |
| 15 | user_id |
BIGINT | user_id |
直接 | 同名直传 |
| 16 | assistant_team_id |
BIGINT | assistant_team_id |
直接 | 同名直传 |
| 17 | person_org_id |
BIGINT | person_org_id |
直接 | 同名直传 |
| 18 | assistant_level |
INTEGER | assistant_level |
直接 | 同名直传 |
| 19 | level_name |
VARCHAR(64) | levelname |
直接 | 字段重命名 |
| 20 | skill_id |
BIGINT | skill_id |
直接 | 同名直传 |
| 21 | skill_name |
VARCHAR(64) | skillname |
直接 | 字段重命名 |
| 22 | ledger_unit_price |
NUMERIC(10,2) | ledger_unit_price |
直接 | 同名直传 |
| 23 | ledger_amount |
NUMERIC(10,2) | ledger_amount |
直接 | 同名直传 |
| 24 | projected_income |
NUMERIC(10,2) | projected_income |
直接 | 同名直传 |
| 25 | coupon_deduct_money |
NUMERIC(10,2) | coupon_deduct_money |
直接 | 同名直传 |
| 26 | income_seconds |
INTEGER | income_seconds |
直接 | 同名直传 |
| 27 | real_use_seconds |
INTEGER | real_use_seconds |
直接 | 同名直传 |
| 28 | add_clock |
INTEGER | add_clock |
直接 | 同名直传 |
| 29 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 30 | start_use_time |
TIMESTAMPTZ | start_use_time |
直接 | 同名直传 |
| 31 | last_use_time |
TIMESTAMPTZ | last_use_time |
直接 | 同名直传 |
| 32 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 33 | real_service_money |
NUMERIC(18,2) | real_service_money |
直接 |
DWD: dwd.dwd_assistant_service_log_ex — 事实(扩展) (31 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | assistant_service_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | table_name |
VARCHAR(64) | tablename |
直接 | 字段重命名 |
| 3 | assistant_name |
VARCHAR(64) | assistantname |
直接 | 字段重命名 |
| 4 | ledger_name |
VARCHAR(128) | ledger_name |
直接 | 同名直传 |
| 5 | ledger_group_name |
VARCHAR(128) | ledger_group_name |
直接 | |
| 6 | ledger_count |
INTEGER | ledger_count |
直接 | 同名直传 |
| 7 | member_discount_amount |
NUMERIC(10,2) | member_discount_amount |
直接 | 同名直传 |
| 8 | manual_discount_amount |
NUMERIC(10,2) | manual_discount_amount |
直接 | 同名直传 |
| 9 | service_money |
NUMERIC(10,2) | service_money |
直接 | 同名直传 |
| 10 | returns_clock |
INTEGER | returns_clock |
直接 | 同名直传 |
| 11 | ledger_start_time |
TIMESTAMPTZ | ledger_start_time |
直接 | 同名直传 |
| 12 | ledger_end_time |
TIMESTAMPTZ | ledger_end_time |
直接 | 同名直传 |
| 13 | ledger_status |
INTEGER | ledger_status |
直接 | 同名直传 |
| 14 | is_confirm |
INTEGER | is_confirm |
直接 | 同名直传 |
| 15 | is_single_order |
INTEGER | is_single_order |
直接 | 同名直传 |
| 16 | is_not_responding |
INTEGER | is_not_responding |
直接 | 同名直传 |
| 17 | is_trash |
INTEGER | is_trash |
直接 | 同名直传 |
| 18 | trash_applicant_id |
BIGINT | trash_applicant_id |
直接 | 同名直传 |
| 19 | trash_applicant_name |
VARCHAR(64) | trash_applicant_name |
直接 | |
| 20 | trash_reason |
VARCHAR(255) | trash_reason |
直接 | |
| 21 | salesman_user_id |
BIGINT | salesman_user_id |
直接 | 同名直传 |
| 22 | salesman_name |
VARCHAR(64) | salesman_name |
直接 | |
| 23 | salesman_org_id |
BIGINT | salesman_org_id |
直接 | 同名直传 |
| 24 | skill_grade |
INTEGER | skill_grade |
直接 | 同名直传 |
| 25 | service_grade |
INTEGER | service_grade |
直接 | 同名直传 |
| 26 | composite_grade |
NUMERIC(5,2) | composite_grade |
直接 | 同名直传 |
| 27 | sum_grade |
NUMERIC(10,2) | sum_grade |
直接 | 同名直传 |
| 28 | get_grade_times |
INTEGER | get_grade_times |
直接 | 同名直传 |
| 29 | grade_status |
INTEGER | grade_status |
直接 | 同名直传 |
| 30 | composite_grade_time |
TIMESTAMPTZ | composite_grade_time |
直接 | 同名直传 |
| 31 | assistant_team_name |
TEXT | assistantteamname |
直接 | 字段重命名 |
助教废除记录 (assistant_cancellation_records)
- 任务编码:
ODS_ASSISTANT_ABOLISH - API 端点:
/AssistantPerformance/GetAbolitionAssistant - 时间字段:
startTime/endTime - 获取记录数: 79
API 源字段(13 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | siteProfile |
object | {"id": 2790685415443269, "org_id": 27906... | — | 📦 嵌套对象,不直接映射 |
| 2 | createTime |
string | 2026-01-29 02:47:00 | createTime |
✅ 同名映射 |
| 3 | id |
integer | 3071358041819077 | id |
✅ 同名映射 |
| 4 | siteId |
integer | 2790685415443269 | siteId |
✅ 同名映射 |
| 5 | tableAreaId |
integer | 2791963887030341 | tableAreaId |
✅ 同名映射 |
| 6 | tableId |
integer | 2793023960600645 | tableId |
✅ 同名映射 |
| 7 | tableArea |
string | 麻将房 | tableArea |
✅ 同名映射 |
| 8 | tableName |
string | M2 | tableName |
✅ 同名映射 |
| 9 | assistantOn |
string | 6 | assistantOn |
✅ 同名映射 |
| 10 | assistantName |
string | 乔西 | assistantName |
✅ 同名映射 |
| 11 | pdChargeMinutes |
integer | 3600 | pdChargeMinutes |
✅ 同名映射 |
| 12 | assistantAbolishAmount |
number | 190.0 | assistantAbolishAmount |
✅ 同名映射 |
| 13 | trashReason |
string | trashReason |
✅ 同名映射 |
映射统计:12 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.assistant_cancellation_records (19 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
assistant_trash_event_id, assistant_trash_event_id |
| 2 | siteId |
BIGINT | siteId |
site_id |
| 3 | siteProfile |
JSONB | siteProfile |
— |
| 4 | assistantName |
TEXT | assistantName |
assistant_no, assistant_name |
| 5 | assistantAbolishAmount |
NUMERIC(18,2) | assistantAbolishAmount |
abolish_amount |
| 6 | assistantOn |
INT | assistantOn |
— |
| 7 | pdChargeMinutes |
INT | pdChargeMinutes |
charge_minutes_raw |
| 8 | tableAreaId |
BIGINT | tableAreaId |
table_area_id |
| 9 | tableArea |
TEXT | tableArea |
table_area_name |
| 10 | tableId |
BIGINT | tableId |
table_id |
| 11 | tableName |
TEXT | tableName |
table_name |
| 12 | trashReason |
TEXT | trashReason |
trash_reason |
| 13 | createTime |
TIMESTAMP | createTime |
create_time |
| 14 | tenant_id |
BIGINT | — | tenant_id |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dwd_assistant_trash_event — 事实 (11 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | assistant_trash_event_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | site_id |
BIGINT | siteid |
直接 | 字段重命名 |
| 3 | table_id |
BIGINT | tableid |
直接 | 字段重命名 |
| 4 | table_area_id |
BIGINT | tableareaid |
直接 | 字段重命名 |
| 5 | assistant_no |
VARCHAR(32) | assistantname |
直接 | 字段重命名 |
| 6 | assistant_name |
VARCHAR(64) | assistantname |
直接 | 字段重命名 |
| 7 | charge_minutes_raw |
INTEGER | pdchargeminutes |
直接 | 字段重命名 |
| 8 | abolish_amount |
NUMERIC(18,2) | assistantabolishamount |
直接 | 字段重命名 |
| 9 | trash_reason |
VARCHAR(255) | trashreason |
直接 | 字段重命名 |
| 10 | create_time |
TIMESTAMPTZ | createtime |
直接 | 字段重命名 |
| 11 | tenant_id |
BIGINT | tenant_id |
直接 |
DWD: dwd.dwd_assistant_trash_event_ex — 事实(扩展) (3 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | assistant_trash_event_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | table_name |
VARCHAR(64) | tablename |
直接 | 字段重命名 |
| 3 | table_area_name |
VARCHAR(64) | tablearea |
直接 | 字段重命名 |
门店商品销售流水 (store_goods_sales_records)
- 任务编码:
ODS_STORE_GOODS_SALES - API 端点:
/TenantGoods/GetGoodsSalesList - 时间字段:
startTime/endTime - 获取记录数: 200
API 源字段(51 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | siteId |
integer | 0 | siteid |
🔄 大小写不敏感匹配 |
| 2 | siteName |
string | 朗朗桌球 | sitename |
🔄 大小写不敏感匹配 |
| 3 | orderGoodsId |
integer | 0 | ordergoodsid |
🔄 大小写不敏感匹配 |
| 4 | openSalesman |
integer | 2 | openSalesman |
✅ 同名映射 |
| 5 | id |
integer | 3093864106133701 | id |
✅ 同名映射 |
| 6 | cost_money |
number | 0.0 | cost_money |
✅ 同名映射 |
| 7 | coupon_deduct_money |
number | 0.0 | coupon_deduct_money |
✅ 同名映射 |
| 8 | coupon_share_money |
number | 0.0 | coupon_share_money |
✅ 同名映射 |
| 9 | create_time |
string | 2026-02-14 00:21:21 | create_time |
✅ 同名映射 |
| 10 | discount_money |
number | 3.0 | discount_money |
✅ 同名映射 |
| 11 | discount_price |
number | 7.0 | discount_price |
✅ 同名映射 |
| 12 | goods_remark |
string | goods_remark |
✅ 同名映射 | |
| 13 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 14 | is_single_order |
integer | 1 | is_single_order |
✅ 同名映射 |
| 15 | ledger_amount |
number | 10.0 | ledger_amount |
✅ 同名映射 |
| 16 | ledger_count |
integer | 1 | ledger_count |
✅ 同名映射 |
| 17 | ledger_group_name |
string | 酒水 | ledger_group_name |
✅ 同名映射 |
| 18 | ledger_name |
string | 哇米诺豆奶 | ledger_name |
✅ 同名映射 |
| 19 | ledger_status |
integer | 1 | ledger_status |
✅ 同名映射 |
| 20 | ledger_unit_price |
number | 10.0 | ledger_unit_price |
✅ 同名映射 |
| 21 | member_coupon_id |
integer | 0 | member_coupon_id |
✅ 同名映射 |
| 22 | member_discount_amount |
number | 0.0 | member_discount_amount |
✅ 同名映射 |
| 23 | operator_id |
integer | 2790687322443013 | operator_id |
✅ 同名映射 |
| 24 | operator_name |
string | 收银员:郑丽珊 | operator_name |
✅ 同名映射 |
| 25 | option_coupon_deduct_money |
number | 0.0 | option_coupon_deduct_money |
✅ 同名映射 |
| 26 | option_member_discount_money |
number | 0.0 | option_member_discount_money |
✅ 同名映射 |
| 27 | option_price |
number | 0.0 | option_price |
✅ 同名映射 |
| 28 | option_value_name |
string | option_value_name |
✅ 同名映射 | |
| 29 | order_coupon_id |
integer | 0 | order_coupon_id |
✅ 同名映射 |
| 30 | order_goods_id |
integer | 3093864075495621 | order_goods_id |
✅ 同名映射 |
| 31 | order_pay_id |
integer | 0 | order_pay_id |
✅ 同名映射 |
| 32 | order_settle_id |
integer | 3093864077166789 | order_settle_id |
✅ 同名映射 |
| 33 | order_trade_no |
integer | 3093864074381509 | order_trade_no |
✅ 同名映射 |
| 34 | package_coupon_id |
integer | 0 | package_coupon_id |
✅ 同名映射 |
| 35 | point_discount_money |
number | 0.0 | point_discount_money |
✅ 同名映射 |
| 36 | point_discount_money_cost |
number | 0.0 | point_discount_money_cost |
✅ 同名映射 |
| 37 | push_money |
number | 0.0 | push_money |
✅ 同名映射 |
| 38 | real_goods_money |
number | 7.0 | real_goods_money |
✅ 同名映射 |
| 39 | returns_number |
integer | 0 | returns_number |
✅ 同名映射 |
| 40 | sales_man_org_id |
integer | 0 | sales_man_org_id |
✅ 同名映射 |
| 41 | sales_type |
integer | 1 | sales_type |
✅ 同名映射 |
| 42 | salesman_name |
string | salesman_name |
✅ 同名映射 | |
| 43 | salesman_role_id |
integer | 0 | salesman_role_id |
✅ 同名映射 |
| 44 | salesman_user_id |
integer | 0 | salesman_user_id |
✅ 同名映射 |
| 45 | site_goods_id |
integer | 3004536125639493 | site_goods_id |
✅ 同名映射 |
| 46 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 47 | site_table_id |
integer | 0 | site_table_id |
✅ 同名映射 |
| 48 | tenant_goods_business_id |
integer | 2790683528317768 | tenant_goods_business_id |
✅ 同名映射 |
| 49 | tenant_goods_category_id |
integer | 2790683528350540 | tenant_goods_category_id |
✅ 同名映射 |
| 50 | tenant_goods_id |
integer | 3004531315313413 | tenant_goods_id |
✅ 同名映射 |
| 51 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
映射统计:51 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.store_goods_sales_records (56 列) 🔗 API
ETL 元数据列(5 个):payload, content_hash, source_file, source_endpoint, fetched_at
DWD: dwd.dwd_store_goods_sale — 事实 (24 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | store_goods_sale_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | order_trade_no |
BIGINT | order_trade_no |
直接 | 同名直传 |
| 3 | order_settle_id |
BIGINT | order_settle_id |
直接 | 同名直传 |
| 4 | order_pay_id |
BIGINT | order_pay_id |
直接 | 同名直传 |
| 5 | order_goods_id |
BIGINT | order_goods_id |
直接 | 同名直传 |
| 6 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 7 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 8 | site_goods_id |
BIGINT | site_goods_id |
直接 | 同名直传 |
| 9 | tenant_goods_id |
BIGINT | tenant_goods_id |
直接 | 同名直传 |
| 10 | tenant_goods_category_id |
BIGINT | tenant_goods_category_id |
直接 | 同名直传 |
| 11 | tenant_goods_business_id |
BIGINT | tenant_goods_business_id |
直接 | 同名直传 |
| 12 | site_table_id |
BIGINT | site_table_id |
直接 | 同名直传 |
| 13 | ledger_name |
VARCHAR(200) | ledger_name |
直接 | 同名直传 |
| 14 | ledger_group_name |
VARCHAR(100) | ledger_group_name |
直接 | 同名直传 |
| 15 | ledger_unit_price |
NUMERIC(18,2) | ledger_unit_price |
直接 | 同名直传 |
| 16 | ledger_count |
INTEGER | ledger_count |
直接 | 同名直传 |
| 17 | ledger_amount |
NUMERIC(18,2) | ledger_amount |
直接 | 同名直传 |
| 18 | discount_price |
NUMERIC(18,2) | discount_money |
直接 | 字段重命名 |
| 19 | real_goods_money |
NUMERIC(18,2) | real_goods_money |
直接 | 同名直传 |
| 20 | cost_money |
NUMERIC(18,2) | cost_money |
直接 | 同名直传 |
| 21 | ledger_status |
INTEGER | ledger_status |
直接 | 同名直传 |
| 22 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 23 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 24 | coupon_share_money |
NUMERIC(18,2) | coupon_share_money |
直接 |
DWD: dwd.dwd_store_goods_sale_ex — 事实(扩展) (28 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | store_goods_sale_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | legacy_order_goods_id |
BIGINT | ordergoodsid |
直接 | 字段重命名 |
| 3 | site_name |
TEXT | sitename |
直接 | 字段重命名 |
| 4 | legacy_site_id |
BIGINT | siteid |
直接 | 字段重命名 |
| 5 | goods_remark |
TEXT | goods_remark |
直接 | 同名直传 |
| 6 | option_value_name |
TEXT | option_value_name |
直接 | |
| 7 | operator_name |
TEXT | operator_name |
直接 | 同名直传 |
| 8 | open_salesman_flag |
INTEGER | opensalesman |
→ integer | 字段重命名 |
| 9 | salesman_user_id |
BIGINT | salesman_user_id |
直接 | 同名直传 |
| 10 | salesman_name |
TEXT | salesman_name |
直接 | |
| 11 | salesman_role_id |
BIGINT | salesman_role_id |
直接 | 同名直传 |
| 12 | salesman_org_id |
BIGINT | sales_man_org_id |
直接 | 字段重命名 |
| 13 | discount_money |
NUMERIC(18,2) | discount_money |
直接 | 同名直传 |
| 14 | returns_number |
INTEGER | returns_number |
直接 | 同名直传 |
| 15 | coupon_deduct_money |
NUMERIC(18,2) | coupon_deduct_money |
直接 | 同名直传 |
| 16 | member_discount_amount |
NUMERIC(18,2) | member_discount_amount |
直接 | 同名直传 |
| 17 | point_discount_money |
NUMERIC(18,2) | point_discount_money |
直接 | 同名直传 |
| 18 | point_discount_money_cost |
NUMERIC(18,2) | point_discount_money_cost |
直接 | 同名直传 |
| 19 | package_coupon_id |
BIGINT | package_coupon_id |
直接 | 同名直传 |
| 20 | order_coupon_id |
BIGINT | order_coupon_id |
直接 | 同名直传 |
| 21 | member_coupon_id |
BIGINT | member_coupon_id |
直接 | 同名直传 |
| 22 | option_price |
NUMERIC(18,2) | option_price |
直接 | 同名直传 |
| 23 | option_member_discount_money |
NUMERIC(18,2) | option_member_discount_money |
直接 | 同名直传 |
| 24 | option_coupon_deduct_money |
NUMERIC(18,2) | option_coupon_deduct_money |
直接 | 同名直传 |
| 25 | push_money |
NUMERIC(18,2) | push_money |
直接 | 同名直传 |
| 26 | is_single_order |
INTEGER | is_single_order |
直接 | 同名直传 |
| 27 | sales_type |
INTEGER | sales_type |
直接 | 同名直传 |
| 28 | operator_id |
BIGINT | operator_id |
直接 | 同名直传 |
支付流水 (payment_transactions)
- 任务编码:
ODS_PAYMENT - API 端点:
/PayLog/GetPayLogListPage - 时间字段:
StartPayTime/EndPayTime - 获取记录数: 200
API 源字段(11 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | siteProfile |
object | {"id": 2790685415443269, "org_id": 27906... | — | 📦 嵌套对象,不直接映射 |
| 2 | create_time |
string | 2026-02-14 00:21:21 | create_time |
✅ 同名映射 |
| 3 | pay_amount |
number | 7.0 | pay_amount |
✅ 同名映射 |
| 4 | pay_status |
integer | 2 | pay_status |
✅ 同名映射 |
| 5 | pay_time |
string | 2026-02-14 00:21:21 | pay_time |
✅ 同名映射 |
| 6 | online_pay_channel |
integer | 0 | online_pay_channel |
✅ 同名映射 |
| 7 | relate_type |
integer | 2 | relate_type |
✅ 同名映射 |
| 8 | relate_id |
integer | 3093864077166789 | relate_id |
✅ 同名映射 |
| 9 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 10 | id |
integer | 3093864103463109 | id |
✅ 同名映射 |
| 11 | payment_method |
integer | 4 | payment_method |
✅ 同名映射 |
映射统计:10 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.payment_transactions (17 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
payment_id |
| 2 | site_id |
BIGINT | site_id |
site_id |
| 3 | siteProfile |
JSONB | siteProfile |
— |
| 4 | relate_type |
INT | relate_type |
relate_type |
| 5 | relate_id |
BIGINT | relate_id |
relate_id |
| 6 | pay_amount |
NUMERIC(18,2) | pay_amount |
pay_amount |
| 7 | pay_status |
INT | pay_status |
pay_status |
| 8 | pay_time |
TIMESTAMP | pay_time |
pay_time, pay_date |
| 9 | create_time |
TIMESTAMP | create_time |
create_time |
| 10 | payment_method |
INT | payment_method |
payment_method |
| 11 | online_pay_channel |
INT | online_pay_channel |
online_pay_channel |
| 12 | tenant_id |
BIGINT | — | tenant_id |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dwd_payment — 事实 (12 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | payment_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 3 | relate_type |
INTEGER | relate_type |
直接 | 同名直传 |
| 4 | relate_id |
BIGINT | relate_id |
直接 | 同名直传 |
| 5 | pay_amount |
NUMERIC(18,2) | pay_amount |
直接 | 同名直传 |
| 6 | pay_status |
INTEGER | pay_status |
直接 | 同名直传 |
| 7 | payment_method |
INTEGER | payment_method |
直接 | 同名直传 |
| 8 | online_pay_channel |
INTEGER | online_pay_channel |
直接 | 同名直传 |
| 9 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 10 | pay_time |
TIMESTAMPTZ | pay_time |
直接 | 同名直传 |
| 11 | pay_date |
DATE | pay_time |
→ date | 字段重命名 |
| 12 | tenant_id |
BIGINT | tenant_id |
直接 |
退款流水 (refund_transactions)
- 任务编码:
ODS_REFUND - API 端点:
/Order/GetRefundPayLogList - 时间字段:
startTime/endTime - 获取记录数: 36
API 源字段(32 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | tenantName |
string | 朗朗桌球 | tenantName |
✅ 同名映射 |
| 2 | siteProfile |
object | {"id": 2790685415443269, "org_id": 27906... | — | 📦 嵌套对象,不直接映射 |
| 3 | id |
integer | 3089577798995141 | id |
✅ 同名映射 |
| 4 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 5 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 6 | pay_sn |
integer | 0 | pay_sn |
✅ 同名映射 |
| 7 | pay_amount |
number | -8.0 | pay_amount |
✅ 同名映射 |
| 8 | pay_status |
integer | 2 | pay_status |
✅ 同名映射 |
| 9 | pay_time |
string | 2026-02-10 23:41:06 | pay_time |
✅ 同名映射 |
| 10 | create_time |
string | 2026-02-10 23:41:06 | create_time |
✅ 同名映射 |
| 11 | relate_type |
integer | 1 | relate_type |
✅ 同名映射 |
| 12 | relate_id |
integer | 3089548319804869 | relate_id |
✅ 同名映射 |
| 13 | is_revoke |
integer | 0 | is_revoke |
✅ 同名映射 |
| 14 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 15 | online_pay_channel |
integer | 0 | online_pay_channel |
✅ 同名映射 |
| 16 | payment_method |
integer | 4 | payment_method |
✅ 同名映射 |
| 17 | balance_frozen_amount |
number | 0.0 | balance_frozen_amount |
✅ 同名映射 |
| 18 | card_frozen_amount |
number | 0.0 | card_frozen_amount |
✅ 同名映射 |
| 19 | member_id |
integer | 0 | member_id |
✅ 同名映射 |
| 20 | member_card_id |
integer | 0 | member_card_id |
✅ 同名映射 |
| 21 | round_amount |
number | 0.0 | round_amount |
✅ 同名映射 |
| 22 | online_pay_type |
integer | 0 | online_pay_type |
✅ 同名映射 |
| 23 | action_type |
integer | 2 | action_type |
✅ 同名映射 |
| 24 | refund_amount |
number | 0.0 | refund_amount |
✅ 同名映射 |
| 25 | cashier_point_id |
integer | 0 | cashier_point_id |
✅ 同名映射 |
| 26 | operator_id |
integer | 0 | operator_id |
✅ 同名映射 |
| 27 | pay_terminal |
integer | 1 | pay_terminal |
✅ 同名映射 |
| 28 | pay_config_id |
integer | 0 | pay_config_id |
✅ 同名映射 |
| 29 | channel_payer_id |
string | channel_payer_id |
✅ 同名映射 | |
| 30 | channel_pay_no |
string | channel_pay_no |
✅ 同名映射 | |
| 31 | check_status |
integer | 1 | check_status |
✅ 同名映射 |
| 32 | channel_fee |
number | 0.0 | channel_fee |
✅ 同名映射 |
映射统计:31 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.refund_transactions (37 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
refund_id, refund_id |
| 2 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 3 | tenantName |
TEXT | tenantName |
tenant_name |
| 4 | site_id |
BIGINT | site_id |
site_id |
| 5 | siteProfile |
JSONB | siteProfile |
— |
| 6 | relate_type |
INT | relate_type |
relate_type |
| 7 | relate_id |
BIGINT | relate_id |
relate_id |
| 8 | pay_sn |
TEXT | pay_sn |
pay_sn |
| 9 | pay_amount |
NUMERIC(18,2) | pay_amount |
pay_amount |
| 10 | refund_amount |
NUMERIC(18,2) | refund_amount |
refund_amount |
| 11 | round_amount |
NUMERIC(18,2) | round_amount |
round_amount |
| 12 | pay_status |
INT | pay_status |
pay_status |
| 13 | pay_time |
TIMESTAMP | pay_time |
pay_time |
| 14 | create_time |
TIMESTAMP | create_time |
create_time |
| 15 | payment_method |
INT | payment_method |
payment_method |
| 16 | pay_terminal |
INT | pay_terminal |
pay_terminal |
| 17 | pay_config_id |
BIGINT | pay_config_id |
pay_config_id |
| 18 | online_pay_channel |
INT | online_pay_channel |
online_pay_channel |
| 19 | online_pay_type |
INT | online_pay_type |
online_pay_type |
| 20 | channel_fee |
NUMERIC(18,2) | channel_fee |
channel_fee |
| 21 | channel_payer_id |
TEXT | channel_payer_id |
channel_payer_id |
| 22 | channel_pay_no |
TEXT | channel_pay_no |
channel_pay_no |
| 23 | member_id |
BIGINT | member_id |
member_id |
| 24 | member_card_id |
BIGINT | member_card_id |
member_card_id |
| 25 | cashier_point_id |
BIGINT | cashier_point_id |
cashier_point_id |
| 26 | operator_id |
BIGINT | operator_id |
operator_id |
| 27 | action_type |
INT | action_type |
action_type |
| 28 | check_status |
INT | check_status |
check_status |
| 29 | is_revoke |
INT | is_revoke |
is_revoke |
| 30 | is_delete |
INT | is_delete |
is_delete |
| 31 | balance_frozen_amount |
NUMERIC(18,2) | balance_frozen_amount |
balance_frozen_amount |
| 32 | card_frozen_amount |
NUMERIC(18,2) | card_frozen_amount |
card_frozen_amount |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dwd_refund — 事实 (12 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | refund_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 3 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 4 | relate_type |
INTEGER | relate_type |
直接 | 同名直传 |
| 5 | relate_id |
BIGINT | relate_id |
直接 | 同名直传 |
| 6 | pay_amount |
NUMERIC(18,2) | pay_amount |
直接 | 同名直传 |
| 7 | channel_fee |
NUMERIC(18,2) | channel_fee |
直接 | 同名直传 |
| 8 | pay_time |
TIMESTAMPTZ | pay_time |
直接 | 同名直传 |
| 9 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 10 | payment_method |
INTEGER | payment_method |
直接 | 同名直传 |
| 11 | member_id |
BIGINT | member_id |
直接 | 同名直传 |
| 12 | member_card_id |
BIGINT | member_card_id |
直接 | 同名直传 |
DWD: dwd.dwd_refund_ex — 事实(扩展) (20 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | refund_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_name |
VARCHAR(64) | tenantname |
直接 | 字段重命名 |
| 3 | pay_sn |
BIGINT | pay_sn |
直接 | 同名直传 |
| 4 | refund_amount |
NUMERIC(18,2) | refund_amount |
直接 | 同名直传 |
| 5 | round_amount |
NUMERIC(18,2) | round_amount |
直接 | 同名直传 |
| 6 | balance_frozen_amount |
NUMERIC(18,2) | balance_frozen_amount |
直接 | 同名直传 |
| 7 | card_frozen_amount |
NUMERIC(18,2) | card_frozen_amount |
直接 | 同名直传 |
| 8 | pay_status |
INTEGER | pay_status |
直接 | 同名直传 |
| 9 | action_type |
INTEGER | action_type |
直接 | 同名直传 |
| 10 | is_revoke |
INTEGER | is_revoke |
直接 | 同名直传 |
| 11 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 12 | check_status |
INTEGER | check_status |
直接 | 同名直传 |
| 13 | online_pay_channel |
INTEGER | online_pay_channel |
直接 | 同名直传 |
| 14 | online_pay_type |
INTEGER | online_pay_type |
直接 | 同名直传 |
| 15 | pay_terminal |
INTEGER | pay_terminal |
直接 | 同名直传 |
| 16 | pay_config_id |
INTEGER | pay_config_id |
直接 | 同名直传 |
| 17 | cashier_point_id |
INTEGER | cashier_point_id |
直接 | 同名直传 |
| 18 | operator_id |
BIGINT | operator_id |
直接 | 同名直传 |
| 19 | channel_payer_id |
VARCHAR(128) | channel_payer_id |
直接 | |
| 20 | channel_pay_no |
VARCHAR(128) | channel_pay_no |
直接 |
平台/团购券核销 (platform_coupon_redemption_records)
- 任务编码:
ODS_PLATFORM_COUPON - API 端点:
/Promotion/GetOfflineCouponConsumePageList - 时间字段:
startTime/endTime - 获取记录数: 200
API 源字段(26 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | siteProfile |
object | {"id": 2790685415443269, "org_id": 27906... | — | 📦 嵌套对象,不直接映射 |
| 2 | id |
integer | 3093784060856453 | id |
✅ 同名映射 |
| 3 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 4 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 5 | sale_price |
number | 20.26 | sale_price |
✅ 同名映射 |
| 6 | coupon_code |
string | 0108970935413 | coupon_code |
✅ 同名映射 |
| 7 | coupon_channel |
integer | 1 | coupon_channel |
✅ 同名映射 |
| 8 | site_order_id |
integer | 3093784062036101 | site_order_id |
✅ 同名映射 |
| 9 | coupon_free_time |
integer | 0 | coupon_free_time |
✅ 同名映射 |
| 10 | use_status |
integer | 1 | use_status |
✅ 同名映射 |
| 11 | create_time |
string | 2026-02-13 22:59:56 | create_time |
✅ 同名映射 |
| 12 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 13 | coupon_name |
string | 【全天可用】中八桌球一小时(大厅A区) | coupon_name |
✅ 同名映射 |
| 14 | coupon_cover |
string | coupon_cover |
✅ 同名映射 | |
| 15 | coupon_remark |
string | coupon_remark |
✅ 同名映射 | |
| 16 | channel_deal_id |
integer | 1128411555 | channel_deal_id |
✅ 同名映射 |
| 17 | group_package_id |
integer | 0 | group_package_id |
✅ 同名映射 |
| 18 | consume_time |
string | 2026-02-13 22:59:56 | consume_time |
✅ 同名映射 |
| 19 | groupon_type |
integer | 1 | groupon_type |
✅ 同名映射 |
| 20 | coupon_money |
number | 48.0 | coupon_money |
✅ 同名映射 |
| 21 | operator_id |
integer | 2790687322443013 | operator_id |
✅ 同名映射 |
| 22 | operator_name |
string | 收银员:郑丽珊 | operator_name |
✅ 同名映射 |
| 23 | table_id |
integer | 2793001904918661 | table_id |
✅ 同名映射 |
| 24 | certificate_id |
string | 5017032752860339573 | certificate_id |
✅ 同名映射 |
| 25 | verify_id |
string | verify_id |
✅ 同名映射 | |
| 26 | deal_id |
integer | 1345108507 | deal_id |
✅ 同名映射 |
映射统计:25 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.platform_coupon_redemption_records (31 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
platform_coupon_redemption_id, platform_coupon_redemption_id |
| 2 | verify_id |
BIGINT | verify_id |
verify_id |
| 3 | certificate_id |
TEXT | certificate_id |
certificate_id |
| 4 | coupon_code |
TEXT | coupon_code |
coupon_code |
| 5 | coupon_name |
TEXT | coupon_name |
coupon_name |
| 6 | coupon_channel |
INT | coupon_channel |
coupon_channel |
| 7 | groupon_type |
INT | groupon_type |
groupon_type |
| 8 | group_package_id |
BIGINT | group_package_id |
group_package_id |
| 9 | sale_price |
NUMERIC(18,2) | sale_price |
sale_price |
| 10 | coupon_money |
NUMERIC(18,2) | coupon_money |
coupon_money |
| 11 | coupon_free_time |
NUMERIC(18,2) | coupon_free_time |
coupon_free_time |
| 12 | coupon_cover |
TEXT | coupon_cover |
coupon_cover |
| 13 | coupon_remark |
TEXT | coupon_remark |
coupon_remark |
| 14 | use_status |
INT | use_status |
use_status |
| 15 | consume_time |
TIMESTAMP | consume_time |
consume_time |
| 16 | create_time |
TIMESTAMP | create_time |
create_time |
| 17 | deal_id |
TEXT | deal_id |
deal_id |
| 18 | channel_deal_id |
TEXT | channel_deal_id |
channel_deal_id |
| 19 | site_id |
BIGINT | site_id |
site_id |
| 20 | site_order_id |
BIGINT | site_order_id |
site_order_id |
| 21 | table_id |
BIGINT | table_id |
table_id |
| 22 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 23 | operator_id |
BIGINT | operator_id |
operator_id |
| 24 | operator_name |
TEXT | operator_name |
operator_name |
| 25 | is_delete |
INT | is_delete |
is_delete |
| 26 | siteProfile |
JSONB | siteProfile |
— |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dwd_platform_coupon_redemption — 事实 (20 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | platform_coupon_redemption_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 3 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 4 | coupon_code |
VARCHAR(64) | coupon_code |
直接 | 同名直传 |
| 5 | coupon_channel |
INTEGER | coupon_channel |
直接 | 同名直传 |
| 6 | coupon_name |
VARCHAR(200) | coupon_name |
直接 | 同名直传 |
| 7 | sale_price |
NUMERIC(10,2) | sale_price |
直接 | 同名直传 |
| 8 | coupon_money |
NUMERIC(10,2) | coupon_money |
直接 | 同名直传 |
| 9 | coupon_free_time |
INTEGER | coupon_free_time |
直接 | 同名直传 |
| 10 | channel_deal_id |
BIGINT | channel_deal_id |
直接 | 同名直传 |
| 11 | deal_id |
BIGINT | deal_id |
直接 | 同名直传 |
| 12 | group_package_id |
BIGINT | group_package_id |
直接 | 同名直传 |
| 13 | site_order_id |
BIGINT | site_order_id |
直接 | 同名直传 |
| 14 | table_id |
BIGINT | table_id |
直接 | 同名直传 |
| 15 | certificate_id |
VARCHAR(64) | certificate_id |
直接 | 同名直传 |
| 16 | verify_id |
VARCHAR(64) | verify_id |
直接 | 同名直传 |
| 17 | use_status |
INTEGER | use_status |
直接 | 同名直传 |
| 18 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 19 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 20 | consume_time |
TIMESTAMPTZ | consume_time |
直接 | 同名直传 |
DWD: dwd.dwd_platform_coupon_redemption_ex — 事实(扩展) (6 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | platform_coupon_redemption_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | coupon_cover |
VARCHAR(255) | coupon_cover |
直接 | |
| 3 | coupon_remark |
VARCHAR(255) | coupon_remark |
直接 | 同名直传 |
| 4 | groupon_type |
INTEGER | groupon_type |
直接 | 同名直传 |
| 5 | operator_id |
BIGINT | operator_id |
直接 | 同名直传 |
| 6 | operator_name |
VARCHAR(50) | operator_name |
直接 | 同名直传 |
会员档案 (member_profiles)
- 任务编码:
ODS_MEMBER - API 端点:
/MemberProfile/GetTenantMemberList - 获取记录数: 200
API 源字段(20 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | id |
integer | 3085176958944837 | id |
✅ 同名映射 |
| 2 | create_time |
string | 2026-02-07 21:04:20 | create_time |
✅ 同名映射 |
| 3 | member_card_grade_code |
integer | 2790683528022856 | member_card_grade_code |
✅ 同名映射 |
| 4 | mobile |
string | 13728281927 | mobile |
✅ 同名映射 |
| 5 | nickname |
string | 黄先生 | nickname |
✅ 同名映射 |
| 6 | register_site_id |
integer | 2790685415443269 | register_site_id |
✅ 同名映射 |
| 7 | site_name |
string | 朗朗桌球 | site_name |
✅ 同名映射 |
| 8 | member_card_grade_name |
string | 活动抵用券 | member_card_grade_name |
✅ 同名映射 |
| 9 | system_member_id |
integer | 3085176956307013 | system_member_id |
✅ 同名映射 |
| 10 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 11 | referrer_member_id |
integer | 0 | referrer_member_id |
✅ 同名映射 |
| 12 | point |
number | 0.0 | point |
✅ 同名映射 |
| 13 | user_status |
integer | 1 | user_status |
✅ 同名映射 |
| 14 | status |
integer | 1 | status |
✅ 同名映射 |
| 15 | growth_value |
number | 0.0 | growth_value |
✅ 同名映射 |
| 16 | person_tenant_org_id |
integer | 0 | person_tenant_org_id |
✅ 同名映射 |
| 17 | person_tenant_org_name |
string | person_tenant_org_name |
✅ 同名映射 | |
| 18 | register_source |
integer | 6 | register_source |
✅ 同名映射 |
| 19 | recharge_money_sum |
number | 5000.0 | recharge_money_sum |
✅ 同名映射 |
| 20 | pay_money_sum |
number | -12.79 | pay_money_sum |
✅ 同名映射 |
映射统计:20 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.member_profiles (25 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 2 | register_site_id |
BIGINT | register_site_id |
register_site_id |
| 3 | site_name |
TEXT | site_name |
register_site_name |
| 4 | id |
BIGINT | id |
member_id, member_id |
| 5 | system_member_id |
BIGINT | system_member_id |
system_member_id |
| 6 | member_card_grade_code |
BIGINT | member_card_grade_code |
member_card_grade_code |
| 7 | member_card_grade_name |
TEXT | member_card_grade_name |
member_card_grade_name |
| 8 | mobile |
TEXT | mobile |
mobile |
| 9 | nickname |
TEXT | nickname |
nickname |
| 10 | point |
NUMERIC(18,2) | point |
point |
| 11 | growth_value |
NUMERIC(18,2) | growth_value |
growth_value |
| 12 | referrer_member_id |
BIGINT | referrer_member_id |
referrer_member_id |
| 13 | status |
INT | status |
status |
| 14 | user_status |
INT | user_status |
user_status |
| 15 | create_time |
TIMESTAMP | create_time |
create_time |
| 16 | pay_money_sum |
NUMERIC(18,2) | pay_money_sum |
pay_money_sum |
| 17 | person_tenant_org_id |
BIGINT | person_tenant_org_id |
person_tenant_org_id |
| 18 | person_tenant_org_name |
TEXT | person_tenant_org_name |
person_tenant_org_name |
| 19 | recharge_money_sum |
NUMERIC(18,2) | recharge_money_sum |
recharge_money_sum |
| 20 | register_source |
TEXT | register_source |
register_source |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dim_member — 维度 (16 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | member_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | system_member_id |
BIGINT | system_member_id |
直接 | 同名直传 |
| 3 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 4 | register_site_id |
BIGINT | register_site_id |
直接 | 同名直传 |
| 5 | mobile |
TEXT | mobile |
直接 | 同名直传 |
| 6 | nickname |
TEXT | nickname |
直接 | 同名直传 |
| 7 | member_card_grade_code |
BIGINT | member_card_grade_code |
直接 | 同名直传 |
| 8 | member_card_grade_name |
TEXT | member_card_grade_name |
直接 | 同名直传 |
| 9 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 10 | update_time |
TIMESTAMPTZ | — | — | 未显式映射 |
| 11 | pay_money_sum |
NUMERIC(18,2) | pay_money_sum |
直接 | |
| 12 | recharge_money_sum |
NUMERIC(18,2) | recharge_money_sum |
直接 | |
| 13 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 14 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 15 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 16 | SCD2_version |
INT | — | — | SCD2 元数据 |
DWD: dwd.dim_member_ex — 维度(扩展) (14 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | member_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | referrer_member_id |
BIGINT | referrer_member_id |
直接 | 同名直传 |
| 3 | point |
NUMERIC(18,2) | point |
直接 | 同名直传 |
| 4 | register_site_name |
TEXT | site_name |
直接 | 字段重命名 |
| 5 | growth_value |
NUMERIC(18,2) | growth_value |
直接 | 同名直传 |
| 6 | user_status |
INTEGER | user_status |
直接 | 同名直传 |
| 7 | status |
INTEGER | status |
直接 | 同名直传 |
| 8 | person_tenant_org_id |
BIGINT | person_tenant_org_id |
直接 | |
| 9 | person_tenant_org_name |
TEXT | person_tenant_org_name |
直接 | |
| 10 | register_source |
TEXT | register_source |
直接 | |
| 11 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 12 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 13 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 14 | SCD2_version |
INT | — | — | SCD2 元数据 |
会员储值卡 (member_stored_value_cards)
- 任务编码:
ODS_MEMBER_CARD - API 端点:
/MemberProfile/GetTenantMemberCardList - 获取记录数: 200
API 源字段(75 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | site_name |
string | 朗朗桌球 | site_name |
✅ 同名映射 |
| 2 | member_name |
string | 黄先生 | member_name |
✅ 同名映射 |
| 3 | member_mobile |
string | 13728281927 | member_mobile |
✅ 同名映射 |
| 4 | member_card_type_name |
string | 活动抵用券 | member_card_type_name |
✅ 同名映射 |
| 5 | table_service_discount |
number | 10.0 | table_service_discount |
✅ 同名映射 |
| 6 | assistant_service_discount |
number | 10.0 | assistant_service_discount |
✅ 同名映射 |
| 7 | coupon_discount |
number | 10.0 | coupon_discount |
✅ 同名映射 |
| 8 | goods_service_discount |
number | 10.0 | goods_service_discount |
✅ 同名映射 |
| 9 | electricity_discount |
number | 10.0 | electricity_discount |
✅ 同名映射 |
| 10 | is_allow_give |
integer | 0 | is_allow_give |
✅ 同名映射 |
| 11 | able_cross_site |
integer | 1 | able_cross_site |
✅ 同名映射 |
| 12 | cardSettleDeduct |
number | 0.0 | cardSettleDeduct |
✅ 同名映射 |
| 13 | tenantAvatar |
string | tenantAvatar |
✅ 同名映射 | |
| 14 | tenantName |
string | tenantName |
✅ 同名映射 | |
| 15 | member_card_grade_code_name |
string | 活动抵用券 | member_card_grade_code_name |
✅ 同名映射 |
| 16 | table_discount_sub_switch |
integer | 2 | table_discount_sub_switch |
✅ 同名映射 |
| 17 | tableAreaId |
array | [] | tableAreaId |
✅ 同名映射 |
| 18 | goods_discount_sub_switch |
integer | 2 | goods_discount_sub_switch |
✅ 同名映射 |
| 19 | goodsCategoryId |
array | [] | goodsCategoryId |
✅ 同名映射 |
| 20 | assistant_discount_sub_switch |
integer | 2 | assistant_discount_sub_switch |
✅ 同名映射 |
| 21 | pdAssisnatLevel |
array | [] | pdAssisnatLevel |
✅ 同名映射 |
| 22 | assistant_reward_discount_sub_switch |
integer | 2 | assistant_reward_discount_sub_switch |
✅ 同名映射 |
| 23 | cxAssisnatLevel |
array | [] | cxAssisnatLevel |
✅ 同名映射 |
| 24 | goods_discount_range_type |
integer | 1 | goods_discount_range_type |
✅ 同名映射 |
| 25 | use_scene |
string | use_scene |
✅ 同名映射 | |
| 26 | balance |
number | 4987.21 | balance |
✅ 同名映射 |
| 27 | table_deduct_radio |
number | 100.0 | table_deduct_radio |
✅ 同名映射 |
| 28 | table_service_deduct_radio |
number | 100.0 | table_service_deduct_radio |
✅ 同名映射 |
| 29 | goods_deduct_radio |
number | 100.0 | goods_deduct_radio |
✅ 同名映射 |
| 30 | goods_service_deduct_radio |
number | 100.0 | goods_service_deduct_radio |
✅ 同名映射 |
| 31 | assistant_deduct_radio |
number | 100.0 | assistant_deduct_radio |
✅ 同名映射 |
| 32 | assistant_service_deduct_radio |
number | 100.0 | assistant_service_deduct_radio |
✅ 同名映射 |
| 33 | assistant_reward_deduct_radio |
number | 100.0 | assistant_reward_deduct_radio |
✅ 同名映射 |
| 34 | coupon_deduct_radio |
number | 100.0 | coupon_deduct_radio |
✅ 同名映射 |
| 35 | electricity_deduct_radio |
number | 100.0 | electricity_deduct_radio |
✅ 同名映射 |
| 36 | electricityCardDeduct |
number | 0.0 | electricitycarddeduct |
🔄 大小写不敏感匹配 |
| 37 | tableCardDeduct |
number | 0.0 | tableCardDeduct |
✅ 同名映射 |
| 38 | tableServiceCardDeduct |
number | 0.0 | tableServiceCardDeduct |
✅ 同名映射 |
| 39 | goodsCarDeduct |
number | 0.0 | goodsCarDeduct |
✅ 同名映射 |
| 40 | goodsServiceCardDeduct |
number | 0.0 | goodsServiceCardDeduct |
✅ 同名映射 |
| 41 | assistantCardDeduct |
number | 0.0 | assistantCardDeduct |
✅ 同名映射 |
| 42 | assistantServiceCardDeduct |
number | 0.0 | assistantServiceCardDeduct |
✅ 同名映射 |
| 43 | assistantRewardCardDeduct |
number | 0.0 | assistantRewardCardDeduct |
✅ 同名映射 |
| 44 | couponCardDeduct |
number | 0.0 | couponCardDeduct |
✅ 同名映射 |
| 45 | deliveryFeeDeduct |
number | 0.0 | deliveryFeeDeduct |
✅ 同名映射 |
| 46 | is_allow_order_deduct |
integer | 0 | is_allow_order_deduct |
✅ 同名映射 |
| 47 | member_grade |
integer | 2790683528022856 | member_grade |
✅ 同名映射 |
| 48 | able_share_member_discount |
integer | 1 | able_share_member_discount |
✅ 同名映射 |
| 49 | rechargeFreezeBalance |
number | 0.0 | rechargefreezebalance |
🔄 大小写不敏感匹配 |
| 50 | id |
integer | 3085176959321669 | id |
✅ 同名映射 |
| 51 | assistant_discount |
number | 10.0 | assistant_discount |
✅ 同名映射 |
| 52 | assistant_reward_discount |
number | 10.0 | assistant_reward_discount |
✅ 同名映射 |
| 53 | bind_password |
string | bind_password |
✅ 同名映射 | |
| 54 | card_no |
string | card_no |
✅ 同名映射 | |
| 55 | card_physics_type |
integer | 1 | card_physics_type |
✅ 同名映射 |
| 56 | card_type_id |
integer | 2793266846533445 | card_type_id |
✅ 同名映射 |
| 57 | create_time |
string | 2026-02-07 21:04:20 | create_time |
✅ 同名映射 |
| 58 | denomination |
number | 0.0 | denomination |
✅ 同名映射 |
| 59 | disable_end_time |
string | 0001-01-01 00:00:00 | disable_end_time |
✅ 同名映射 |
| 60 | disable_start_time |
string | 0001-01-01 00:00:00 | disable_start_time |
✅ 同名映射 |
| 61 | effect_site_id |
integer | 0 | effect_site_id |
✅ 同名映射 |
| 62 | end_time |
string | 2225-01-01 00:00:00 | end_time |
✅ 同名映射 |
| 63 | goods_discount |
number | 10.0 | goods_discount |
✅ 同名映射 |
| 64 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 65 | last_consume_time |
string | 2026-02-11 17:12:24 | last_consume_time |
✅ 同名映射 |
| 66 | member_card_grade_code |
integer | 2790683528022856 | member_card_grade_code |
✅ 同名映射 |
| 67 | principal_balance |
number | 0.0 | principal_balance |
✅ 同名映射 |
| 68 | register_site_id |
integer | 2790685415443269 | register_site_id |
✅ 同名映射 |
| 69 | sort |
integer | 1 | sort |
✅ 同名映射 |
| 70 | start_time |
string | 2026-02-07 21:04:20 | start_time |
✅ 同名映射 |
| 71 | status |
integer | 1 | status |
✅ 同名映射 |
| 72 | system_member_id |
integer | 3085176956307013 | system_member_id |
✅ 同名映射 |
| 73 | table_discount |
number | 10.0 | table_discount |
✅ 同名映射 |
| 74 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 75 | tenant_member_id |
integer | 3085176958944837 | tenant_member_id |
✅ 同名映射 |
映射统计:75 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.member_stored_value_cards (80 列) 🔗 API
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dim_member_card_account — 维度 (23 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | member_card_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 3 | register_site_id |
BIGINT | register_site_id |
直接 | 同名直传 |
| 4 | tenant_member_id |
BIGINT | tenant_member_id |
直接 | 同名直传 |
| 5 | system_member_id |
BIGINT | system_member_id |
直接 | 同名直传 |
| 6 | card_type_id |
BIGINT | card_type_id |
直接 | 同名直传 |
| 7 | member_card_grade_code |
BIGINT | member_card_grade_code |
直接 | 同名直传 |
| 8 | member_card_grade_code_name |
TEXT | member_card_grade_code_name |
直接 | 同名直传 |
| 9 | member_card_type_name |
TEXT | member_card_type_name |
直接 | 同名直传 |
| 10 | member_name |
TEXT | member_name |
直接 | 同名直传 |
| 11 | member_mobile |
TEXT | member_mobile |
直接 | 同名直传 |
| 12 | balance |
NUMERIC(18,2) | balance |
直接 | 同名直传 |
| 13 | start_time |
TIMESTAMPTZ | start_time |
直接 | 同名直传 |
| 14 | end_time |
TIMESTAMPTZ | end_time |
直接 | 同名直传 |
| 15 | last_consume_time |
TIMESTAMPTZ | last_consume_time |
直接 | 同名直传 |
| 16 | status |
INTEGER | status |
直接 | 同名直传 |
| 17 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 18 | principal_balance |
NUMERIC(18,2) | principal_balance |
直接 | |
| 19 | member_grade |
BIGINT | member_grade |
直接 | |
| 20 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 21 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 22 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 23 | SCD2_version |
INT | — | — | SCD2 元数据 |
DWD: dwd.dim_member_card_account_ex — 维度(扩展) (61 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | member_card_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | site_name |
TEXT | site_name |
直接 | 同名直传 |
| 3 | tenant_name |
VARCHAR(64) | tenantname |
直接 | 字段重命名 |
| 4 | tenantAvatar |
TEXT | tenantavatar |
直接 | |
| 5 | effect_site_id |
BIGINT | effect_site_id |
直接 | 同名直传 |
| 6 | able_cross_site |
INTEGER | able_cross_site |
直接 | 同名直传 |
| 7 | card_physics_type |
INTEGER | card_physics_type |
直接 | 同名直传 |
| 8 | card_no |
TEXT | card_no |
直接 | |
| 9 | bind_password |
TEXT | bind_password |
直接 | |
| 10 | use_scene |
TEXT | use_scene |
直接 | |
| 11 | denomination |
NUMERIC(18,2) | denomination |
直接 | 同名直传 |
| 12 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 13 | disable_start_time |
TIMESTAMPTZ | disable_start_time |
直接 | 同名直传 |
| 14 | disable_end_time |
TIMESTAMPTZ | disable_end_time |
直接 | 同名直传 |
| 15 | is_allow_give |
INTEGER | is_allow_give |
直接 | 同名直传 |
| 16 | is_allow_order_deduct |
INTEGER | is_allow_order_deduct |
直接 | 同名直传 |
| 17 | sort |
INTEGER | sort |
直接 | 同名直传 |
| 18 | table_discount |
NUMERIC(10,2) | table_discount |
直接 | 同名直传 |
| 19 | goods_discount |
NUMERIC(10,2) | goods_discount |
直接 | 同名直传 |
| 20 | assistant_discount |
NUMERIC(10,2) | assistant_discount |
直接 | 同名直传 |
| 21 | assistant_reward_discount |
NUMERIC(10,2) | assistant_reward_discount |
直接 | 同名直传 |
| 22 | table_service_discount |
NUMERIC(10,2) | table_service_discount |
直接 | 同名直传 |
| 23 | goods_service_discount |
NUMERIC(10,2) | goods_service_discount |
直接 | 同名直传 |
| 24 | assistant_service_discount |
NUMERIC(10,2) | assistant_service_discount |
直接 | 同名直传 |
| 25 | coupon_discount |
NUMERIC(10,2) | coupon_discount |
直接 | 同名直传 |
| 26 | table_discount_sub_switch |
INTEGER | table_discount_sub_switch |
直接 | 同名直传 |
| 27 | goods_discount_sub_switch |
INTEGER | goods_discount_sub_switch |
直接 | 同名直传 |
| 28 | assistant_discount_sub_switch |
INTEGER | assistant_discount_sub_switch |
直接 | 同名直传 |
| 29 | assistant_reward_discount_sub_switch |
INTEGER | assistant_reward_discount_sub_switch |
直接 | 同名直传 |
| 30 | goods_discount_range_type |
INTEGER | goods_discount_range_type |
直接 | 同名直传 |
| 31 | table_deduct_radio |
NUMERIC(10,2) | table_deduct_radio |
直接 | 同名直传 |
| 32 | goods_deduct_radio |
NUMERIC(10,2) | goods_deduct_radio |
直接 | 同名直传 |
| 33 | assistant_deduct_radio |
NUMERIC(10,2) | assistant_deduct_radio |
直接 | 同名直传 |
| 34 | table_service_deduct_radio |
NUMERIC(10,2) | table_service_deduct_radio |
直接 | 同名直传 |
| 35 | goods_service_deduct_radio |
NUMERIC(10,2) | goods_service_deduct_radio |
直接 | 同名直传 |
| 36 | assistant_service_deduct_radio |
NUMERIC(10,2) | assistant_service_deduct_radio |
直接 | 同名直传 |
| 37 | assistant_reward_deduct_radio |
NUMERIC(10,2) | assistant_reward_deduct_radio |
直接 | 同名直传 |
| 38 | coupon_deduct_radio |
NUMERIC(10,2) | coupon_deduct_radio |
直接 | 同名直传 |
| 39 | cardSettleDeduct |
NUMERIC(18,2) | cardSettleDeduct |
直接 | 同名直传 |
| 40 | tableCardDeduct |
NUMERIC(18,2) | tableCardDeduct |
直接 | 同名直传 |
| 41 | tableServiceCardDeduct |
NUMERIC(18,2) | tableServiceCardDeduct |
直接 | 同名直传 |
| 42 | goodsCarDeduct |
NUMERIC(18,2) | goodsCarDeduct |
直接 | 同名直传 |
| 43 | goodsServiceCardDeduct |
NUMERIC(18,2) | goodsServiceCardDeduct |
直接 | 同名直传 |
| 44 | assistantCardDeduct |
NUMERIC(18,2) | assistantCardDeduct |
直接 | 同名直传 |
| 45 | assistantServiceCardDeduct |
NUMERIC(18,2) | assistantServiceCardDeduct |
直接 | 同名直传 |
| 46 | assistantRewardCardDeduct |
NUMERIC(18,2) | assistantRewardCardDeduct |
直接 | 同名直传 |
| 47 | couponCardDeduct |
NUMERIC(18,2) | couponCardDeduct |
直接 | 同名直传 |
| 48 | deliveryFeeDeduct |
NUMERIC(18,2) | deliveryFeeDeduct |
直接 | 同名直传 |
| 49 | tableAreaId |
TEXT | tableareaid |
直接 | |
| 50 | goodsCategoryId |
TEXT | goodscategoryid |
直接 | |
| 51 | pdAssisnatLevel |
TEXT | pdAssisnatLevel |
直接 | 同名直传 |
| 52 | cxAssisnatLevel |
TEXT | cxAssisnatLevel |
直接 | 同名直传 |
| 53 | able_share_member_discount |
BOOLEAN | able_share_member_discount |
→ boolean | |
| 54 | electricity_deduct_radio |
NUMERIC(18,4) | electricity_deduct_radio |
直接 | |
| 55 | electricity_discount |
NUMERIC(18,4) | electricity_discount |
直接 | |
| 56 | electricity_card_deduct |
BOOLEAN | electricitycarddeduct |
→ boolean | 字段重命名 |
| 57 | recharge_freeze_balance |
NUMERIC(18,2) | rechargefreezebalance |
直接 | 字段重命名 |
| 58 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 59 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 60 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 61 | SCD2_version |
INT | — | — | SCD2 元数据 |
会员余额变动 (member_balance_changes)
- 任务编码:
ODS_MEMBER_BALANCE - API 端点:
/MemberProfile/GetMemberCardBalanceChange - 时间字段:
startTime/endTime - 获取记录数: 200
API 源字段(28 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | memberCardTypeName |
string | 储值卡 | memberCardTypeName |
✅ 同名映射 |
| 2 | paySiteName |
string | 朗朗桌球 | paySiteName |
✅ 同名映射 |
| 3 | registerSiteName |
string | 朗朗桌球 | registerSiteName |
✅ 同名映射 |
| 4 | memberName |
string | 罗先生 | memberName |
✅ 同名映射 |
| 5 | memberMobile |
string | 13924036996 | memberMobile |
✅ 同名映射 |
| 6 | id |
integer | 3093844118358341 | id |
✅ 同名映射 |
| 7 | account_data |
number | -232.0 | account_data |
✅ 同名映射 |
| 8 | after |
number | 110.64 | after |
✅ 同名映射 |
| 9 | before |
number | 342.64 | before |
✅ 同名映射 |
| 10 | card_type_id |
integer | 2793249295533893 | card_type_id |
✅ 同名映射 |
| 11 | create_time |
string | 2026-02-14 00:01:01 | create_time |
✅ 同名映射 |
| 12 | from_type |
integer | 1 | from_type |
✅ 同名映射 |
| 13 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 14 | operator_id |
integer | 2790687322443013 | operator_id |
✅ 同名映射 |
| 15 | operator_name |
string | 收银员:郑丽珊 | operator_name |
✅ 同名映射 |
| 16 | payment_method |
integer | 0 | payment_method |
✅ 同名映射 |
| 17 | refund_amount |
number | 0.0 | refund_amount |
✅ 同名映射 |
| 18 | register_site_id |
integer | 2790685415443269 | register_site_id |
✅ 同名映射 |
| 19 | relate_id |
integer | 3093843703564549 | relate_id |
✅ 同名映射 |
| 20 | remark |
string | remark |
✅ 同名映射 | |
| 21 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 22 | system_member_id |
integer | 2799207358777093 | system_member_id |
✅ 同名映射 |
| 23 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 24 | tenant_member_card_id |
integer | 2799218552833797 | tenant_member_card_id |
✅ 同名映射 |
| 25 | tenant_member_id |
integer | 2799207359858437 | tenant_member_id |
✅ 同名映射 |
| 26 | principal_after |
number | 110.64 | principal_after |
✅ 同名映射 |
| 27 | principal_before |
number | 342.64 | principal_before |
✅ 同名映射 |
| 28 | principal_data |
number | -232.0 | principal_data |
✅ 同名映射 |
映射统计:28 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.member_balance_changes (33 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 2 | site_id |
BIGINT | site_id |
site_id |
| 3 | register_site_id |
BIGINT | register_site_id |
register_site_id |
| 4 | registerSiteName |
TEXT | registerSiteName |
register_site_name |
| 5 | paySiteName |
TEXT | paySiteName |
pay_site_name |
| 6 | id |
BIGINT | id |
balance_change_id, balance_change_id |
| 7 | tenant_member_id |
BIGINT | tenant_member_id |
tenant_member_id |
| 8 | tenant_member_card_id |
BIGINT | tenant_member_card_id |
tenant_member_card_id |
| 9 | system_member_id |
BIGINT | system_member_id |
system_member_id |
| 10 | memberName |
TEXT | memberName |
member_name |
| 11 | memberMobile |
TEXT | memberMobile |
member_mobile |
| 12 | card_type_id |
BIGINT | card_type_id |
card_type_id |
| 13 | memberCardTypeName |
TEXT | memberCardTypeName |
card_type_name |
| 14 | account_data |
NUMERIC(18,2) | account_data |
change_amount |
| 15 | before |
NUMERIC(18,2) | before |
balance_before |
| 16 | after |
NUMERIC(18,2) | after |
balance_after |
| 17 | refund_amount |
NUMERIC(18,2) | refund_amount |
refund_amount |
| 18 | from_type |
INT | from_type |
from_type |
| 19 | payment_method |
INT | payment_method |
payment_method |
| 20 | relate_id |
BIGINT | relate_id |
— |
| 21 | remark |
TEXT | remark |
remark |
| 22 | operator_id |
BIGINT | operator_id |
operator_id |
| 23 | operator_name |
TEXT | operator_name |
operator_name |
| 24 | is_delete |
INT | is_delete |
is_delete |
| 25 | create_time |
TIMESTAMP | create_time |
change_time |
| 26 | principal_after |
NUMERIC(18,2) | principal_after |
principal_after |
| 27 | principal_before |
NUMERIC(18,2) | principal_before |
principal_before |
| 28 | principal_data |
TEXT | principal_data |
principal_data |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dwd_member_balance_change — 事实 (22 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | balance_change_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 3 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 4 | register_site_id |
BIGINT | register_site_id |
直接 | 同名直传 |
| 5 | tenant_member_id |
BIGINT | tenant_member_id |
直接 | 同名直传 |
| 6 | system_member_id |
BIGINT | system_member_id |
直接 | 同名直传 |
| 7 | tenant_member_card_id |
BIGINT | tenant_member_card_id |
直接 | 同名直传 |
| 8 | card_type_id |
BIGINT | card_type_id |
直接 | 同名直传 |
| 9 | card_type_name |
VARCHAR(32) | membercardtypename |
直接 | 字段重命名 |
| 10 | member_name |
VARCHAR(64) | membername |
直接 | 字段重命名 |
| 11 | member_mobile |
VARCHAR(20) | membermobile |
直接 | 字段重命名 |
| 12 | balance_before |
NUMERIC(18,2) | before |
直接 | 字段重命名 |
| 13 | change_amount |
NUMERIC(18,2) | account_data |
直接 | 字段重命名 |
| 14 | balance_after |
NUMERIC(18,2) | after |
直接 | 字段重命名 |
| 15 | from_type |
INTEGER | from_type |
直接 | 同名直传 |
| 16 | payment_method |
INTEGER | payment_method |
直接 | 同名直传 |
| 17 | change_time |
TIMESTAMPTZ | create_time |
直接 | 字段重命名 |
| 18 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 19 | remark |
VARCHAR(255) | remark |
直接 | 同名直传 |
| 20 | principal_before |
NUMERIC(18,2) | principal_before |
直接 | |
| 21 | principal_after |
NUMERIC(18,2) | principal_after |
直接 | |
| 22 | principal_change_amount |
NUMERIC(18,2) | — | — | 未显式映射 |
DWD: dwd.dwd_member_balance_change_ex — 事实(扩展) (7 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | balance_change_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | pay_site_name |
VARCHAR(64) | paysitename |
直接 | 字段重命名 |
| 3 | register_site_name |
VARCHAR(64) | registersitename |
直接 | 字段重命名 |
| 4 | refund_amount |
NUMERIC(18,2) | refund_amount |
直接 | 同名直传 |
| 5 | operator_id |
BIGINT | operator_id |
直接 | 同名直传 |
| 6 | operator_name |
VARCHAR(64) | operator_name |
直接 | 同名直传 |
| 7 | principal_data |
TEXT | principal_data |
直接 |
充值结算 (recharge_settlements)
- 任务编码:
ODS_RECHARGE_SETTLE - API 端点:
/Site/GetRechargeSettleList - 时间字段:
rangeStartTime/rangeEndTime - 获取记录数: 200
API 源字段(68 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | id |
integer | 3087072625102533 | id |
✅ 同名映射 |
| 2 | tenantId |
integer | 2790683160709957 | tenantid |
🔄 大小写不敏感匹配 |
| 3 | siteId |
integer | 2790685415443269 | siteid |
🔄 大小写不敏感匹配 |
| 4 | siteName |
string | sitename |
🔄 大小写不敏感匹配 | |
| 5 | balanceAmount |
number | 0.0 | balanceamount |
🔄 大小写不敏感匹配 |
| 6 | cardAmount |
number | 0.0 | cardamount |
🔄 大小写不敏感匹配 |
| 7 | cashAmount |
number | 0.0 | cashamount |
🔄 大小写不敏感匹配 |
| 8 | couponAmount |
number | 0.0 | couponamount |
🔄 大小写不敏感匹配 |
| 9 | createTime |
string | 2026-02-09 05:12:42 | createtime |
🔄 大小写不敏感匹配 |
| 10 | memberId |
integer | 2799207363643141 | memberid |
🔄 大小写不敏感匹配 |
| 11 | memberName |
string | 葛先生 | membername |
🔄 大小写不敏感匹配 |
| 12 | tenantMemberCardId |
integer | 2799216572794629 | tenantmembercardid |
🔄 大小写不敏感匹配 |
| 13 | memberCardTypeName |
string | 储值卡 | membercardtypename |
🔄 大小写不敏感匹配 |
| 14 | memberPhone |
string | 13811638071 | memberphone |
🔄 大小写不敏感匹配 |
| 15 | tableId |
integer | 0 | tableid |
🔄 大小写不敏感匹配 |
| 16 | consumeMoney |
number | 10000.0 | consumemoney |
🔄 大小写不敏感匹配 |
| 17 | onlineAmount |
number | 0.0 | onlineamount |
🔄 大小写不敏感匹配 |
| 18 | operatorId |
integer | 2790687322443013 | operatorid |
🔄 大小写不敏感匹配 |
| 19 | operatorName |
string | 收银员:郑丽珊 | operatorname |
🔄 大小写不敏感匹配 |
| 20 | revokeOrderId |
integer | 0 | revokeorderid |
🔄 大小写不敏感匹配 |
| 21 | revokeOrderName |
string | revokeordername |
🔄 大小写不敏感匹配 | |
| 22 | revokeTime |
string | 0001-01-01 00:00:00 | revoketime |
🔄 大小写不敏感匹配 |
| 23 | payAmount |
number | 10000.0 | payamount |
🔄 大小写不敏感匹配 |
| 24 | pointAmount |
number | 10000.0 | pointamount |
🔄 大小写不敏感匹配 |
| 25 | refundAmount |
number | 0.0 | refundamount |
🔄 大小写不敏感匹配 |
| 26 | settleName |
string | 充值订单 | settlename |
🔄 大小写不敏感匹配 |
| 27 | settleRelateId |
integer | 3087072624987845 | settlerelateid |
🔄 大小写不敏感匹配 |
| 28 | settleStatus |
integer | 2 | settlestatus |
🔄 大小写不敏感匹配 |
| 29 | settleType |
integer | 5 | settletype |
🔄 大小写不敏感匹配 |
| 30 | payTime |
string | 2026-02-09 05:12:42 | paytime |
🔄 大小写不敏感匹配 |
| 31 | roundingAmount |
number | 0.0 | roundingamount |
🔄 大小写不敏感匹配 |
| 32 | paymentMethod |
integer | 4 | paymentmethod |
🔄 大小写不敏感匹配 |
| 33 | adjustAmount |
number | 0.0 | adjustamount |
🔄 大小写不敏感匹配 |
| 34 | assistantCxMoney |
number | 0.0 | assistantcxmoney |
🔄 大小写不敏感匹配 |
| 35 | assistantPdMoney |
number | 0.0 | assistantpdmoney |
🔄 大小写不敏感匹配 |
| 36 | couponSaleAmount |
number | 0.0 | couponsaleamount |
🔄 大小写不敏感匹配 |
| 37 | plCouponSaleAmount |
number | 0.0 | plcouponsaleamount |
🔄 大小写不敏感匹配 |
| 38 | merVouSalesAmount |
number | 0.0 | mervousalesamount |
🔄 大小写不敏感匹配 |
| 39 | memberDiscountAmount |
number | 0.0 | memberdiscountamount |
🔄 大小写不敏感匹配 |
| 40 | tableChargeMoney |
number | 0.0 | tablechargemoney |
🔄 大小写不敏感匹配 |
| 41 | goodsMoney |
number | 0.0 | goodsmoney |
🔄 大小写不敏感匹配 |
| 42 | realGoodsMoney |
number | 0.0 | realgoodsmoney |
🔄 大小写不敏感匹配 |
| 43 | serviceMoney |
number | 0.0 | servicemoney |
🔄 大小写不敏感匹配 |
| 44 | prepayMoney |
number | 0.0 | prepaymoney |
🔄 大小写不敏感匹配 |
| 45 | salesManName |
string | salesmanname |
🔄 大小写不敏感匹配 | |
| 46 | orderRemark |
string | orderremark |
🔄 大小写不敏感匹配 | |
| 47 | salesManUserId |
integer | 0 | salesmanuserid |
🔄 大小写不敏感匹配 |
| 48 | canBeRevoked |
boolean | False | canberevoked |
🔄 大小写不敏感匹配 |
| 49 | pointDiscountPrice |
number | 0.0 | pointdiscountprice |
🔄 大小写不敏感匹配 |
| 50 | pointDiscountCost |
number | 0.0 | pointdiscountcost |
🔄 大小写不敏感匹配 |
| 51 | activityDiscount |
number | 0.0 | activitydiscount |
🔄 大小写不敏感匹配 |
| 52 | serialNumber |
integer | 0 | serialnumber |
🔄 大小写不敏感匹配 |
| 53 | assistantManualDiscount |
number | 0.0 | assistantmanualdiscount |
🔄 大小写不敏感匹配 |
| 54 | allCouponDiscount |
number | 0.0 | allcoupondiscount |
🔄 大小写不敏感匹配 |
| 55 | goodsPromotionMoney |
number | 0.0 | goodspromotionmoney |
🔄 大小写不敏感匹配 |
| 56 | assistantPromotionMoney |
number | 0.0 | assistantpromotionmoney |
🔄 大小写不敏感匹配 |
| 57 | isUseCoupon |
boolean | False | isusecoupon |
🔄 大小写不敏感匹配 |
| 58 | isUseDiscount |
boolean | False | isusediscount |
🔄 大小写不敏感匹配 |
| 59 | isActivity |
boolean | False | isactivity |
🔄 大小写不敏感匹配 |
| 60 | isBindMember |
boolean | False | isbindmember |
🔄 大小写不敏感匹配 |
| 61 | isFirst |
integer | 2 | isfirst |
🔄 大小写不敏感匹配 |
| 62 | rechargeCardAmount |
integer | 0 | rechargecardamount |
🔄 大小写不敏感匹配 |
| 63 | giftCardAmount |
integer | 0 | giftcardamount |
🔄 大小写不敏感匹配 |
| 64 | electricityMoney |
number | 0.0 | electricitymoney |
🔄 大小写不敏感匹配 |
| 65 | realElectricityMoney |
number | 0.0 | realelectricitymoney |
🔄 大小写不敏感匹配 |
| 66 | electricityAdjustMoney |
number | 0.0 | electricityadjustmoney |
🔄 大小写不敏感匹配 |
| 67 | siteProfile |
object | {"id": 2790685415443269, "org_id": 27906... | — | 📦 嵌套对象,不直接映射 |
| 68 | settleList |
object | {"id": 3087072625102533, "tenantId": 279... | — | 📦 嵌套对象,展平后各字段独立映射 |
映射统计:66 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.recharge_settlements (71 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
recharge_order_id, recharge_order_id |
| 2 | tenantid |
BIGINT | tenantId |
tenant_id |
| 3 | siteid |
BIGINT | siteId |
site_id |
| 4 | sitename |
TEXT | siteName |
site_name_snapshot |
| 5 | balanceamount |
NUMERIC(18,2) | balanceAmount |
balance_amount |
| 6 | cardamount |
NUMERIC(18,2) | cardAmount |
card_amount |
| 7 | cashamount |
NUMERIC(18,2) | cashAmount |
cash_amount |
| 8 | couponamount |
NUMERIC(18,2) | couponAmount |
coupon_amount |
| 9 | createtime |
TIMESTAMPTZ | createTime |
create_time |
| 10 | memberid |
BIGINT | memberId |
member_id |
| 11 | membername |
TEXT | memberName |
member_name_snapshot |
| 12 | tenantmembercardid |
BIGINT | tenantMemberCardId |
tenant_member_card_id |
| 13 | membercardtypename |
TEXT | memberCardTypeName |
member_card_type_name |
| 14 | memberphone |
TEXT | memberPhone |
member_phone_snapshot |
| 15 | tableid |
BIGINT | tableId |
table_id |
| 16 | consumemoney |
NUMERIC(18,2) | consumeMoney |
consume_money |
| 17 | onlineamount |
NUMERIC(18,2) | onlineAmount |
online_amount |
| 18 | operatorid |
BIGINT | operatorId |
operator_id |
| 19 | operatorname |
TEXT | operatorName |
operator_name_snapshot |
| 20 | revokeorderid |
BIGINT | revokeOrderId |
revoke_order_id |
| 21 | revokeordername |
TEXT | revokeOrderName |
revoke_order_name |
| 22 | revoketime |
TIMESTAMPTZ | revokeTime |
revoke_time |
| 23 | payamount |
NUMERIC(18,2) | payAmount |
pay_amount |
| 24 | pointamount |
NUMERIC(18,2) | pointAmount |
point_amount |
| 25 | refundamount |
NUMERIC(18,2) | refundAmount |
refund_amount |
| 26 | settlename |
TEXT | settleName |
settle_name |
| 27 | settlerelateid |
BIGINT | settleRelateId |
settle_relate_id |
| 28 | settlestatus |
INT | settleStatus |
settle_status |
| 29 | settletype |
INT | settleType |
settle_type |
| 30 | paytime |
TIMESTAMPTZ | payTime |
pay_time |
| 31 | roundingamount |
NUMERIC(18,2) | roundingAmount |
rounding_amount |
| 32 | paymentmethod |
INT | paymentMethod |
payment_method |
| 33 | adjustamount |
NUMERIC(18,2) | adjustAmount |
adjust_amount |
| 34 | assistantcxmoney |
NUMERIC(18,2) | assistantCxMoney |
assistant_cx_money |
| 35 | assistantpdmoney |
NUMERIC(18,2) | assistantPdMoney |
assistant_pd_money |
| 36 | couponsaleamount |
NUMERIC(18,2) | couponSaleAmount |
coupon_sale_amount |
| 37 | memberdiscountamount |
NUMERIC(18,2) | memberDiscountAmount |
member_discount_amount |
| 38 | tablechargemoney |
NUMERIC(18,2) | tableChargeMoney |
table_charge_money |
| 39 | goodsmoney |
NUMERIC(18,2) | goodsMoney |
goods_money |
| 40 | realgoodsmoney |
NUMERIC(18,2) | realGoodsMoney |
real_goods_money |
| 41 | servicemoney |
NUMERIC(18,2) | serviceMoney |
service_money |
| 42 | prepaymoney |
NUMERIC(18,2) | prepayMoney |
prepay_money |
| 43 | salesmanname |
TEXT | salesManName |
salesman_name |
| 44 | orderremark |
TEXT | orderRemark |
order_remark |
| 45 | salesmanuserid |
BIGINT | salesManUserId |
salesman_user_id |
| 46 | canberevoked |
BOOLEAN | canBeRevoked |
can_be_revoked |
| 47 | pointdiscountprice |
NUMERIC(18,2) | pointDiscountPrice |
point_discount_price |
| 48 | pointdiscountcost |
NUMERIC(18,2) | pointDiscountCost |
point_discount_cost |
| 49 | activitydiscount |
NUMERIC(18,2) | activityDiscount |
activity_discount |
| 50 | serialnumber |
BIGINT | serialNumber |
serial_number |
| 51 | assistantmanualdiscount |
NUMERIC(18,2) | assistantManualDiscount |
assistant_manual_discount |
| 52 | allcoupondiscount |
NUMERIC(18,2) | allCouponDiscount |
all_coupon_discount |
| 53 | goodspromotionmoney |
NUMERIC(18,2) | goodsPromotionMoney |
goods_promotion_money |
| 54 | assistantpromotionmoney |
NUMERIC(18,2) | assistantPromotionMoney |
assistant_promotion_money |
| 55 | isusecoupon |
BOOLEAN | isUseCoupon |
is_use_coupon |
| 56 | isusediscount |
BOOLEAN | isUseDiscount |
is_use_discount |
| 57 | isactivity |
BOOLEAN | isActivity |
is_activity |
| 58 | isbindmember |
BOOLEAN | isBindMember |
is_bind_member |
| 59 | isfirst |
INT | isFirst |
is_first |
| 60 | rechargecardamount |
NUMERIC(18,2) | rechargeCardAmount |
recharge_card_amount |
| 61 | giftcardamount |
NUMERIC(18,2) | giftCardAmount |
gift_card_amount |
| 62 | electricityadjustmoney |
NUMERIC(18,2) | electricityAdjustMoney |
— |
| 63 | electricitymoney |
NUMERIC(18,2) | electricityMoney |
— |
| 64 | mervousalesamount |
NUMERIC(18,2) | merVouSalesAmount |
— |
| 65 | plcouponsaleamount |
NUMERIC(18,2) | plCouponSaleAmount |
— |
| 66 | realelectricitymoney |
NUMERIC(18,2) | realElectricityMoney |
— |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dwd_recharge_order — 事实 (24 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | recharge_order_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenantid |
直接 | 字段重命名 |
| 3 | site_id |
BIGINT | siteid |
直接 | 字段重命名 |
| 4 | member_id |
BIGINT | memberid |
直接 | 字段重命名 |
| 5 | member_name_snapshot |
TEXT | membername |
直接 | 字段重命名 |
| 6 | member_phone_snapshot |
TEXT | memberphone |
直接 | 字段重命名 |
| 7 | tenant_member_card_id |
BIGINT | tenantmembercardid |
直接 | 字段重命名 |
| 8 | member_card_type_name |
TEXT | membercardtypename |
直接 | 字段重命名 |
| 9 | settle_relate_id |
BIGINT | settlerelateid |
直接 | 字段重命名 |
| 10 | settle_type |
INTEGER | settletype |
直接 | 字段重命名 |
| 11 | settle_name |
TEXT | settlename |
直接 | 字段重命名 |
| 12 | is_first |
INTEGER | isfirst |
直接 | 字段重命名 |
| 13 | pay_amount |
NUMERIC(18,2) | payamount |
直接 | 字段重命名 |
| 14 | refund_amount |
NUMERIC(18,2) | refundamount |
直接 | 字段重命名 |
| 15 | point_amount |
NUMERIC(18,2) | pointamount |
直接 | 字段重命名 |
| 16 | cash_amount |
NUMERIC(18,2) | cashamount |
直接 | 字段重命名 |
| 17 | payment_method |
INTEGER | paymentmethod |
直接 | 字段重命名 |
| 18 | create_time |
TIMESTAMPTZ | createtime |
直接 | 字段重命名 |
| 19 | pay_time |
TIMESTAMPTZ | paytime |
直接 | 字段重命名 |
| 20 | pl_coupon_sale_amount |
NUMERIC(18,2) | — | — | 未显式映射 |
| 21 | mervou_sales_amount |
NUMERIC(18,2) | — | — | 未显式映射 |
| 22 | electricity_money |
NUMERIC(18,2) | — | — | 未显式映射 |
| 23 | real_electricity_money |
NUMERIC(18,2) | — | — | 未显式映射 |
| 24 | electricity_adjust_money |
NUMERIC(18,2) | — | — | 未显式映射 |
DWD: dwd.dwd_recharge_order_ex — 事实(扩展) (43 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | recharge_order_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | site_name_snapshot |
TEXT | sitename |
直接 | 字段重命名 |
| 3 | settle_status |
INTEGER | settlestatus |
直接 | 字段重命名 |
| 4 | is_bind_member |
BOOLEAN | isbindmember |
→ boolean | 字段重命名 |
| 5 | is_activity |
BOOLEAN | isactivity |
→ boolean | 字段重命名 |
| 6 | is_use_coupon |
BOOLEAN | isusecoupon |
→ boolean | 字段重命名 |
| 7 | is_use_discount |
BOOLEAN | isusediscount |
→ boolean | 字段重命名 |
| 8 | can_be_revoked |
BOOLEAN | canberevoked |
→ boolean | 字段重命名 |
| 9 | online_amount |
NUMERIC(18,2) | onlineamount |
直接 | 字段重命名 |
| 10 | balance_amount |
NUMERIC(18,2) | balanceamount |
直接 | 字段重命名 |
| 11 | card_amount |
NUMERIC(18,2) | cardamount |
直接 | 字段重命名 |
| 12 | coupon_amount |
NUMERIC(18,2) | couponamount |
直接 | 字段重命名 |
| 13 | recharge_card_amount |
NUMERIC(18,2) | rechargecardamount |
直接 | 字段重命名 |
| 14 | gift_card_amount |
NUMERIC(18,2) | giftcardamount |
直接 | 字段重命名 |
| 15 | prepay_money |
NUMERIC(18,2) | prepaymoney |
直接 | 字段重命名 |
| 16 | consume_money |
NUMERIC(18,2) | consumemoney |
直接 | 字段重命名 |
| 17 | goods_money |
NUMERIC(18,2) | goodsmoney |
直接 | 字段重命名 |
| 18 | real_goods_money |
NUMERIC(18,2) | realgoodsmoney |
直接 | 字段重命名 |
| 19 | table_charge_money |
NUMERIC(18,2) | tablechargemoney |
直接 | 字段重命名 |
| 20 | service_money |
NUMERIC(18,2) | servicemoney |
直接 | 字段重命名 |
| 21 | activity_discount |
NUMERIC(18,2) | activitydiscount |
直接 | 字段重命名 |
| 22 | all_coupon_discount |
NUMERIC(18,2) | allcoupondiscount |
直接 | 字段重命名 |
| 23 | goods_promotion_money |
NUMERIC(18,2) | goodspromotionmoney |
直接 | 字段重命名 |
| 24 | assistant_promotion_money |
NUMERIC(18,2) | assistantpromotionmoney |
直接 | 字段重命名 |
| 25 | assistant_pd_money |
NUMERIC(18,2) | assistantpdmoney |
直接 | 字段重命名 |
| 26 | assistant_cx_money |
NUMERIC(18,2) | assistantcxmoney |
直接 | 字段重命名 |
| 27 | assistant_manual_discount |
NUMERIC(18,2) | assistantmanualdiscount |
直接 | 字段重命名 |
| 28 | coupon_sale_amount |
NUMERIC(18,2) | couponsaleamount |
直接 | 字段重命名 |
| 29 | member_discount_amount |
NUMERIC(18,2) | memberdiscountamount |
直接 | 字段重命名 |
| 30 | point_discount_price |
NUMERIC(18,2) | pointdiscountprice |
直接 | 字段重命名 |
| 31 | point_discount_cost |
NUMERIC(18,2) | pointdiscountcost |
直接 | 字段重命名 |
| 32 | adjust_amount |
NUMERIC(18,2) | adjustamount |
直接 | 字段重命名 |
| 33 | rounding_amount |
NUMERIC(18,2) | roundingamount |
直接 | 字段重命名 |
| 34 | operator_id |
BIGINT | operatorid |
直接 | 字段重命名 |
| 35 | operator_name_snapshot |
TEXT | operatorname |
直接 | 字段重命名 |
| 36 | salesman_user_id |
BIGINT | salesmanuserid |
直接 | 字段重命名 |
| 37 | salesman_name |
TEXT | salesmanname |
直接 | 字段重命名 |
| 38 | order_remark |
TEXT | orderremark |
直接 | 字段重命名 |
| 39 | table_id |
INTEGER | tableid |
直接 | 字段重命名 |
| 40 | serial_number |
INTEGER | serialnumber |
直接 | 字段重命名 |
| 41 | revoke_order_id |
BIGINT | revokeorderid |
直接 | 字段重命名 |
| 42 | revoke_order_name |
TEXT | revokeordername |
直接 | 字段重命名 |
| 43 | revoke_time |
TIMESTAMPTZ | revoketime |
直接 | 字段重命名 |
团购套餐定义 (group_buy_packages)
- 任务编码:
ODS_GROUP_PACKAGE - API 端点:
/PackageCoupon/QueryPackageCouponList - 获取记录数: 18
API 源字段(40 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | site_name |
string | 朗朗桌球 | site_name |
✅ 同名映射 |
| 2 | effective_status |
integer | 1 | effective_status |
✅ 同名映射 |
| 3 | tenantTableAreaIdList |
array | [2791960001957765] | — | ⚠️ 仅存于 payload JSONB |
| 4 | tableAreaNameList |
array | ["A区"] | — | ⚠️ 仅存于 payload JSONB |
| 5 | tenantCouponSaleOrderItemId |
integer | 0 | tenantcouponsaleorderitemid |
🔄 大小写不敏感匹配 |
| 6 | id |
integer | 3048468851870085 | id |
✅ 同名映射 |
| 7 | add_end_clock |
string | 1.02:00:00 | add_end_clock |
✅ 同名映射 |
| 8 | add_start_clock |
string | 23:00:00 | add_start_clock |
✅ 同名映射 |
| 9 | area_tag_type |
integer | 1 | area_tag_type |
✅ 同名映射 |
| 10 | card_type_ids |
string | 0 | card_type_ids |
✅ 同名映射 |
| 11 | coupon_money |
number | 0.0 | coupon_money |
✅ 同名映射 |
| 12 | create_time |
string | 2026-01-12 22:42:55 | create_time |
✅ 同名映射 |
| 13 | creator_name |
string | 店长:郑丽珊 | creator_name |
✅ 同名映射 |
| 14 | date_info |
string | date_info |
✅ 同名映射 | |
| 15 | date_type |
integer | 1 | date_type |
✅ 同名映射 |
| 16 | duration |
integer | 3600 | duration |
✅ 同名映射 |
| 17 | end_clock |
string | 1.02:00:00 | end_clock |
✅ 同名映射 |
| 18 | end_time |
string | 2027-01-13 00:00:00 | end_time |
✅ 同名映射 |
| 19 | group_type |
integer | 1 | group_type |
✅ 同名映射 |
| 20 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 21 | is_enabled |
integer | 1 | is_enabled |
✅ 同名映射 |
| 22 | is_first_limit |
integer | 1 | is_first_limit |
✅ 同名映射 |
| 23 | max_selectable_categories |
integer | 0 | max_selectable_categories |
✅ 同名映射 |
| 24 | package_id |
integer | 1134850618 | package_id |
✅ 同名映射 |
| 25 | package_name |
string | 午夜场9.9 | package_name |
✅ 同名映射 |
| 26 | selling_price |
number | 0.0 | selling_price |
✅ 同名映射 |
| 27 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 28 | sort |
integer | 100 | sort |
✅ 同名映射 |
| 29 | start_clock |
string | 23:00:00 | start_clock |
✅ 同名映射 |
| 30 | start_time |
string | 2026-01-12 00:00:00 | start_time |
✅ 同名映射 |
| 31 | system_group_type |
integer | 1 | system_group_type |
✅ 同名映射 |
| 32 | table_area_id |
string | 0 | table_area_id |
✅ 同名映射 |
| 33 | table_area_id_list |
string | table_area_id_list |
✅ 同名映射 | |
| 34 | table_area_name |
string | table_area_name |
✅ 同名映射 | |
| 35 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 36 | tenant_table_area_id |
string | 0 | tenant_table_area_id |
✅ 同名映射 |
| 37 | tenant_table_area_id_list |
string | tenant_table_area_id_list |
✅ 同名映射 | |
| 38 | type |
integer | 1 | type |
✅ 同名映射 |
| 39 | usable_count |
integer | 0 | usable_count |
✅ 同名映射 |
| 40 | usable_range |
string | usable_range |
✅ 同名映射 |
映射统计:38 个字段映射到 ODS,2 个仅存于 payload。
ODS: ods.group_buy_packages (43 列) 🔗 API
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dim_groupbuy_package — 维度 (22 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | groupbuy_package_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 3 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 4 | package_name |
VARCHAR(200) | package_name |
直接 | 同名直传 |
| 5 | package_template_id |
BIGINT | package_id |
直接 | 字段重命名 |
| 6 | selling_price |
NUMERIC(10,2) | selling_price |
直接 | 同名直传 |
| 7 | coupon_face_value |
NUMERIC(10,2) | coupon_money |
直接 | 字段重命名 |
| 8 | duration_seconds |
INTEGER | duration |
直接 | 字段重命名 |
| 9 | start_time |
TIMESTAMPTZ | start_time |
直接 | 同名直传 |
| 10 | end_time |
TIMESTAMPTZ | end_time |
直接 | 同名直传 |
| 11 | table_area_name |
VARCHAR(100) | table_area_name |
直接 | 同名直传 |
| 12 | is_enabled |
INTEGER | is_enabled |
直接 | 同名直传 |
| 13 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 14 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 15 | tenant_table_area_id_list |
VARCHAR(512) | tenant_table_area_id_list |
直接 | 同名直传 |
| 16 | card_type_ids |
VARCHAR(255) | card_type_ids |
直接 | 同名直传 |
| 17 | sort |
INTEGER | sort |
直接 | |
| 18 | is_first_limit |
BOOLEAN | is_first_limit |
→ boolean | |
| 19 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 20 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 21 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 22 | SCD2_version |
INT | — | — | SCD2 元数据 |
DWD: dwd.dim_groupbuy_package_ex — 维度(扩展) (25 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | groupbuy_package_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | site_name |
VARCHAR(100) | site_name |
直接 | 同名直传 |
| 3 | usable_count |
INTEGER | usable_count |
直接 | 同名直传 |
| 4 | date_type |
INTEGER | date_type |
直接 | 同名直传 |
| 5 | usable_range |
VARCHAR(255) | usable_range |
直接 | |
| 6 | date_info |
VARCHAR(255) | date_info |
直接 | 同名直传 |
| 7 | start_clock |
VARCHAR(16) | start_clock |
直接 | 同名直传 |
| 8 | end_clock |
VARCHAR(16) | end_clock |
直接 | 同名直传 |
| 9 | add_start_clock |
VARCHAR(16) | add_start_clock |
直接 | 同名直传 |
| 10 | add_end_clock |
VARCHAR(16) | add_end_clock |
直接 | 同名直传 |
| 11 | area_tag_type |
INTEGER | area_tag_type |
直接 | 同名直传 |
| 12 | table_area_id |
BIGINT | table_area_id |
直接 | |
| 13 | tenant_table_area_id |
BIGINT | tenant_table_area_id |
直接 | |
| 14 | table_area_id_list |
VARCHAR(512) | table_area_id_list |
直接 | |
| 15 | group_type |
INTEGER | group_type |
直接 | 同名直传 |
| 16 | system_group_type |
INTEGER | system_group_type |
直接 | 同名直传 |
| 17 | package_type |
INTEGER | type |
直接 | 字段重命名 |
| 18 | effective_status |
INTEGER | effective_status |
直接 | 同名直传 |
| 19 | max_selectable_categories |
INTEGER | max_selectable_categories |
直接 | 同名直传 |
| 20 | creator_name |
VARCHAR(100) | creator_name |
直接 | 同名直传 |
| 21 | tenant_coupon_sale_order_item_id |
BIGINT | tenantcouponsaleorderitemid |
直接 | 字段重命名 |
| 22 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 23 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 24 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 25 | SCD2_version |
INT | — | — | SCD2 元数据 |
团购套餐核销 (group_buy_redemption_records)
- 任务编码:
ODS_GROUP_BUY_REDEMPTION - API 端点:
/Site/GetSiteTableUseDetails - 时间字段:
startTime/endTime - 获取记录数: 200
API 源字段(52 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | tableName |
string | A15 | tableName |
✅ 同名映射 |
| 2 | tableAreaName |
string | A区 | tableAreaName |
✅ 同名映射 |
| 3 | siteName |
string | 朗朗桌球 | siteName |
✅ 同名映射 |
| 4 | goodsOptionPrice |
number | 0.0 | goodsOptionPrice |
✅ 同名映射 |
| 5 | id |
integer | 3093859292088645 | id |
✅ 同名映射 |
| 6 | assistant_promotion_money |
number | 0.0 | assistant_promotion_money |
✅ 同名映射 |
| 7 | assistant_service_promotion_money |
number | 0.0 | assistant_service_promotion_money |
✅ 同名映射 |
| 8 | assistant_service_share_money |
number | 0.0 | assistant_service_share_money |
✅ 同名映射 |
| 9 | assistant_share_money |
number | 0.0 | assistant_share_money |
✅ 同名映射 |
| 10 | coupon_code |
string | 0107305319597 | coupon_code |
✅ 同名映射 |
| 11 | coupon_money |
number | 96.0 | coupon_money |
✅ 同名映射 |
| 12 | coupon_origin_id |
integer | 3093740768184645 | coupon_origin_id |
✅ 同名映射 |
| 13 | create_time |
string | 2026-02-14 00:16:27 | create_time |
✅ 同名映射 |
| 14 | good_service_share_money |
number | 0.0 | good_service_share_money |
✅ 同名映射 |
| 15 | goods_promotion_money |
number | 0.0 | goods_promotion_money |
✅ 同名映射 |
| 16 | goods_share_money |
number | 0.0 | goods_share_money |
✅ 同名映射 |
| 17 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 18 | is_single_order |
integer | 1 | is_single_order |
✅ 同名映射 |
| 19 | ledger_amount |
number | 96.0 | ledger_amount |
✅ 同名映射 |
| 20 | ledger_count |
integer | 7200 | ledger_count |
✅ 同名映射 |
| 21 | ledger_group_name |
string | ledger_group_name |
✅ 同名映射 | |
| 22 | ledger_name |
string | 全天A区中八两小时 | ledger_name |
✅ 同名映射 |
| 23 | ledger_status |
integer | 1 | ledger_status |
✅ 同名映射 |
| 24 | ledger_unit_price |
number | 39.9 | ledger_unit_price |
✅ 同名映射 |
| 25 | offer_type |
integer | 1 | offer_type |
✅ 同名映射 |
| 26 | operator_id |
integer | 2790687322443013 | operator_id |
✅ 同名映射 |
| 27 | operator_name |
string | 收银员:郑丽珊 | operator_name |
✅ 同名映射 |
| 28 | order_coupon_channel |
integer | 1 | order_coupon_channel |
✅ 同名映射 |
| 29 | order_coupon_id |
integer | 3093740768184645 | order_coupon_id |
✅ 同名映射 |
| 30 | order_pay_id |
integer | 0 | order_pay_id |
✅ 同名映射 |
| 31 | order_settle_id |
integer | 3093859276196037 | order_settle_id |
✅ 同名映射 |
| 32 | order_trade_no |
integer | 3093740766775621 | order_trade_no |
✅ 同名映射 |
| 33 | promotion_activity_id |
integer | 3093740765382981 | promotion_activity_id |
✅ 同名映射 |
| 34 | promotion_coupon_id |
integer | 3030874716834757 | promotion_coupon_id |
✅ 同名映射 |
| 35 | promotion_seconds |
integer | 7200 | promotion_seconds |
✅ 同名映射 |
| 36 | recharge_promotion_money |
number | 0.0 | recharge_promotion_money |
✅ 同名映射 |
| 37 | recharge_share_money |
number | 0.0 | recharge_share_money |
✅ 同名映射 |
| 38 | reward_promotion_money |
number | 0.0 | reward_promotion_money |
✅ 同名映射 |
| 39 | sales_man_org_id |
integer | 0 | sales_man_org_id |
✅ 同名映射 |
| 40 | salesman_name |
string | salesman_name |
✅ 同名映射 | |
| 41 | salesman_role_id |
integer | 0 | salesman_role_id |
✅ 同名映射 |
| 42 | salesman_user_id |
integer | 0 | salesman_user_id |
✅ 同名映射 |
| 43 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 44 | table_charge_seconds |
integer | 7200 | table_charge_seconds |
✅ 同名映射 |
| 45 | table_id |
integer | 2793003506815045 | table_id |
✅ 同名映射 |
| 46 | table_service_promotion_money |
number | 0.0 | table_service_promotion_money |
✅ 同名映射 |
| 47 | table_service_share_money |
number | 0.0 | table_service_share_money |
✅ 同名映射 |
| 48 | table_share_money |
number | 39.9 | table_share_money |
✅ 同名映射 |
| 49 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 50 | tenant_table_area_id |
integer | 2791960001957765 | tenant_table_area_id |
✅ 同名映射 |
| 51 | coupon_sale_id |
integer | 0 | coupon_sale_id |
✅ 同名映射 |
| 52 | member_discount_money |
number | 0.0 | member_discount_money |
✅ 同名映射 |
映射统计:52 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.group_buy_redemption_records (57 列) 🔗 API
ETL 元数据列(5 个):payload, content_hash, source_file, source_endpoint, fetched_at
DWD: dwd.dwd_groupbuy_redemption — 事实 (25 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | redemption_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 3 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 4 | table_id |
BIGINT | table_id |
直接 | 同名直传 |
| 5 | tenant_table_area_id |
BIGINT | tenant_table_area_id |
直接 | 同名直传 |
| 6 | table_charge_seconds |
INTEGER | table_charge_seconds |
直接 | 同名直传 |
| 7 | order_trade_no |
BIGINT | order_trade_no |
直接 | 同名直传 |
| 8 | order_settle_id |
BIGINT | order_settle_id |
直接 | 同名直传 |
| 9 | order_coupon_id |
BIGINT | order_coupon_id |
直接 | 同名直传 |
| 10 | coupon_origin_id |
BIGINT | coupon_origin_id |
直接 | 同名直传 |
| 11 | promotion_activity_id |
BIGINT | promotion_activity_id |
直接 | 同名直传 |
| 12 | promotion_coupon_id |
BIGINT | promotion_coupon_id |
直接 | 同名直传 |
| 13 | order_coupon_channel |
INTEGER | order_coupon_channel |
直接 | 同名直传 |
| 14 | ledger_unit_price |
NUMERIC(18,2) | ledger_unit_price |
直接 | 同名直传 |
| 15 | ledger_count |
INTEGER | ledger_count |
直接 | 同名直传 |
| 16 | ledger_amount |
NUMERIC(18,2) | ledger_amount |
直接 | 同名直传 |
| 17 | coupon_money |
NUMERIC(18,2) | coupon_money |
直接 | 同名直传 |
| 18 | promotion_seconds |
INTEGER | promotion_seconds |
直接 | 同名直传 |
| 19 | coupon_code |
VARCHAR(64) | coupon_code |
直接 | 同名直传 |
| 20 | is_single_order |
INTEGER | is_single_order |
直接 | 同名直传 |
| 21 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 22 | ledger_name |
VARCHAR(128) | ledger_name |
直接 | 同名直传 |
| 23 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 24 | member_discount_money |
NUMERIC(18,2) | member_discount_money |
直接 | |
| 25 | coupon_sale_id |
BIGINT | coupon_sale_id |
直接 |
DWD: dwd.dwd_groupbuy_redemption_ex — 事实(扩展) (28 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | redemption_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | site_name |
VARCHAR(64) | sitename |
直接 | 字段重命名 |
| 3 | table_name |
VARCHAR(64) | tablename |
直接 | 字段重命名 |
| 4 | table_area_name |
VARCHAR(64) | tableareaname |
直接 | 字段重命名 |
| 5 | order_pay_id |
BIGINT | order_pay_id |
直接 | 同名直传 |
| 6 | goods_option_price |
NUMERIC(18,2) | goodsoptionprice |
直接 | 字段重命名 |
| 7 | goods_promotion_money |
NUMERIC(18,2) | goods_promotion_money |
直接 | 同名直传 |
| 8 | table_service_promotion_money |
NUMERIC(18,2) | table_service_promotion_money |
直接 | 同名直传 |
| 9 | assistant_promotion_money |
NUMERIC(18,2) | assistant_promotion_money |
直接 | 同名直传 |
| 10 | assistant_service_promotion_money |
NUMERIC(18,2) | assistant_service_promotion_money |
直接 | 同名直传 |
| 11 | reward_promotion_money |
NUMERIC(18,2) | reward_promotion_money |
直接 | 同名直传 |
| 12 | recharge_promotion_money |
NUMERIC(18,2) | recharge_promotion_money |
直接 | 同名直传 |
| 13 | offer_type |
INTEGER | offer_type |
直接 | 同名直传 |
| 14 | ledger_status |
INTEGER | ledger_status |
直接 | 同名直传 |
| 15 | operator_id |
BIGINT | operator_id |
直接 | 同名直传 |
| 16 | operator_name |
VARCHAR(64) | operator_name |
直接 | 同名直传 |
| 17 | salesman_user_id |
BIGINT | salesman_user_id |
直接 | 同名直传 |
| 18 | salesman_name |
VARCHAR(64) | salesman_name |
直接 | |
| 19 | salesman_role_id |
BIGINT | salesman_role_id |
直接 | 同名直传 |
| 20 | salesman_org_id |
BIGINT | sales_man_org_id |
直接 | 字段重命名 |
| 21 | ledger_group_name |
VARCHAR(128) | ledger_group_name |
直接 | |
| 22 | table_share_money |
NUMERIC(18,2) | table_share_money |
直接 | |
| 23 | table_service_share_money |
NUMERIC(18,2) | table_service_share_money |
直接 | |
| 24 | goods_share_money |
NUMERIC(18,2) | goods_share_money |
直接 | |
| 25 | good_service_share_money |
NUMERIC(18,2) | good_service_share_money |
直接 | |
| 26 | assistant_share_money |
NUMERIC(18,2) | assistant_share_money |
直接 | |
| 27 | assistant_service_share_money |
NUMERIC(18,2) | assistant_service_share_money |
直接 | |
| 28 | recharge_share_money |
NUMERIC(18,2) | recharge_share_money |
直接 |
库存汇总 (goods_stock_summary)
- 任务编码:
ODS_INVENTORY_STOCK - API 端点:
/TenantGoods/GetGoodsStockReport - 获取记录数: 173
API 源字段(14 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | siteGoodsId |
integer | 3089190204491141 | siteGoodsId |
✅ 同名映射 |
| 2 | goodsName |
string | 小合味道 | goodsName |
✅ 同名映射 |
| 3 | goodsUnit |
string | 桶 | goodsUnit |
✅ 同名映射 |
| 4 | goodsCategoryId |
integer | 2791941988405125 | goodsCategoryId |
✅ 同名映射 |
| 5 | goodsCategorySecondId |
integer | 2793236829620037 | goodsCategorySecondId |
✅ 同名映射 |
| 6 | rangeStartStock |
integer | 21 | rangeStartStock |
✅ 同名映射 |
| 7 | rangeEndStock |
integer | 21 | rangeEndStock |
✅ 同名映射 |
| 8 | rangeIn |
integer | 0 | rangeIn |
✅ 同名映射 |
| 9 | rangeOut |
integer | 0 | rangeOut |
✅ 同名映射 |
| 10 | rangeInventory |
integer | 0 | rangeInventory |
✅ 同名映射 |
| 11 | rangeSale |
integer | 0 | rangeSale |
✅ 同名映射 |
| 12 | rangeSaleMoney |
number | 0.0 | rangeSaleMoney |
✅ 同名映射 |
| 13 | currentStock |
integer | 21 | currentStock |
✅ 同名映射 |
| 14 | categoryName |
string | 零食 | categoryName |
✅ 同名映射 |
映射统计:14 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.goods_stock_summary (19 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | siteGoodsId |
BIGINT | siteGoodsId |
— |
| 2 | goodsName |
TEXT | goodsName |
— |
| 3 | goodsUnit |
TEXT | goodsUnit |
— |
| 4 | goodsCategoryId |
BIGINT | goodsCategoryId |
— |
| 5 | goodsCategorySecondId |
BIGINT | goodsCategorySecondId |
— |
| 6 | categoryName |
TEXT | categoryName |
— |
| 7 | rangeStartStock |
NUMERIC(18,4) | rangeStartStock |
— |
| 8 | rangeEndStock |
NUMERIC(18,4) | rangeEndStock |
— |
| 9 | rangeIn |
NUMERIC(18,4) | rangeIn |
— |
| 10 | rangeOut |
NUMERIC(18,4) | rangeOut |
— |
| 11 | rangeSale |
NUMERIC(18,4) | rangeSale |
— |
| 12 | rangeSaleMoney |
NUMERIC(18,2) | rangeSaleMoney |
— |
| 13 | rangeInventory |
NUMERIC(18,4) | rangeInventory |
— |
| 14 | currentStock |
NUMERIC(18,4) | currentStock |
— |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
该 ODS 表暂无 DWD 映射(仅用于 DWS 或其他下游)
库存变化记录 (goods_stock_movements)
- 任务编码:
ODS_INVENTORY_CHANGE - API 端点:
/GoodsStockManage/QueryGoodsOutboundReceipt - 时间字段:
startTime/endTime - 获取记录数: 200
API 源字段(19 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | siteGoodsStockId |
integer | 3093864105101509 | siteGoodsStockId |
✅ 同名映射 |
| 2 | siteGoodsId |
integer | 3004536125639493 | siteGoodsId |
✅ 同名映射 |
| 3 | siteId |
integer | 2790685415443269 | siteId |
✅ 同名映射 |
| 4 | tenantId |
integer | 2790683160709957 | tenantId |
✅ 同名映射 |
| 5 | stockType |
integer | 1 | stockType |
✅ 同名映射 |
| 6 | goodsName |
string | 哇米诺豆奶 | goodsName |
✅ 同名映射 |
| 7 | createTime |
string | 2026-02-14 00:21:21 | createTime |
✅ 同名映射 |
| 8 | startNum |
integer | 4 | startNum |
✅ 同名映射 |
| 9 | endNum |
integer | 3 | endNum |
✅ 同名映射 |
| 10 | changeNum |
integer | -1 | changeNum |
✅ 同名映射 |
| 11 | unit |
string | 瓶 | unit |
✅ 同名映射 |
| 12 | price |
number | 10.0 | price |
✅ 同名映射 |
| 13 | operatorName |
string | 收银员:郑丽珊 | operatorName |
✅ 同名映射 |
| 14 | changeNumA |
integer | 0 | changeNumA |
✅ 同名映射 |
| 15 | startNumA |
integer | 0 | startNumA |
✅ 同名映射 |
| 16 | endNumA |
integer | 0 | endNumA |
✅ 同名映射 |
| 17 | remark |
string | remark |
✅ 同名映射 | |
| 18 | goodsCategoryId |
integer | 2790683528350539 | goodsCategoryId |
✅ 同名映射 |
| 19 | goodsSecondCategoryId |
integer | 2790683528350540 | goodsSecondCategoryId |
✅ 同名映射 |
映射统计:19 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.goods_stock_movements (24 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | siteGoodsStockId |
BIGINT | siteGoodsStockId |
— |
| 2 | tenantId |
BIGINT | tenantId |
— |
| 3 | siteId |
BIGINT | siteId |
— |
| 4 | siteGoodsId |
BIGINT | siteGoodsId |
— |
| 5 | goodsName |
TEXT | goodsName |
— |
| 6 | goodsCategoryId |
BIGINT | goodsCategoryId |
— |
| 7 | goodsSecondCategoryId |
BIGINT | goodsSecondCategoryId |
— |
| 8 | unit |
TEXT | unit |
— |
| 9 | price |
NUMERIC(18,4) | price |
— |
| 10 | stockType |
INT | stockType |
— |
| 11 | changeNum |
NUMERIC(18,4) | changeNum |
— |
| 12 | startNum |
NUMERIC(18,4) | startNum |
— |
| 13 | endNum |
NUMERIC(18,4) | endNum |
— |
| 14 | changeNumA |
NUMERIC(18,4) | changeNumA |
— |
| 15 | startNumA |
NUMERIC(18,4) | startNumA |
— |
| 16 | endNumA |
NUMERIC(18,4) | endNumA |
— |
| 17 | remark |
TEXT | remark |
— |
| 18 | operatorName |
TEXT | operatorName |
— |
| 19 | createTime |
TIMESTAMP | createTime |
— |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
该 ODS 表暂无 DWD 映射(仅用于 DWS 或其他下游)
台桌维表 (site_tables_master)
- 任务编码:
ODS_TABLES - API 端点:
/Table/GetSiteTables - 获取记录数: 74
API 源字段(26 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | id |
integer | 2791964216463493 | id |
✅ 同名映射 |
| 2 | order_id |
integer | 0 | order_id |
✅ 同名映射 |
| 3 | audit_status |
integer | 2 | audit_status |
✅ 同名映射 |
| 4 | charge_free |
integer | 0 | charge_free |
✅ 同名映射 |
| 5 | self_table |
integer | 1 | self_table |
✅ 同名映射 |
| 6 | create_time |
string | 2025-07-15 17:52:54 | create_time |
✅ 同名映射 |
| 7 | is_rest_area |
integer | 0 | is_rest_area |
✅ 同名映射 |
| 8 | light_status |
integer | 2 | light_status |
✅ 同名映射 |
| 9 | show_status |
integer | 1 | show_status |
✅ 同名映射 |
| 10 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 11 | site_table_area_id |
integer | 2791963794329671 | site_table_area_id |
✅ 同名映射 |
| 12 | table_cloth_use_time |
integer | 3847788 | table_cloth_use_time |
✅ 同名映射 |
| 13 | table_cloth_use_Cycle |
integer | 0 | table_cloth_use_Cycle |
✅ 同名映射 |
| 14 | virtual_table |
integer | 0 | virtual_table |
✅ 同名映射 |
| 15 | table_name |
string | A1 | table_name |
✅ 同名映射 |
| 16 | table_price |
number | 0.0 | table_price |
✅ 同名映射 |
| 17 | table_status |
integer | 1 | table_status |
✅ 同名映射 |
| 18 | areaName |
string | A区 | areaName |
✅ 同名映射 |
| 19 | siteName |
string | 朗朗桌球 | siteName |
✅ 同名映射 |
| 20 | tableStatusName |
string | 空闲中 | tableStatusName |
✅ 同名映射 |
| 21 | appletQrCodeUrl |
string | https://pc-we.ficoo.vip/rootwww/prodwx38... | appletQrCodeUrl |
✅ 同名映射 |
| 22 | only_allow_groupon |
integer | 2 | only_allow_groupon |
✅ 同名映射 |
| 23 | delay_lights_time |
integer | 0 | delay_lights_time |
✅ 同名映射 |
| 24 | order_delay_time |
integer | 0 | order_delay_time |
✅ 同名映射 |
| 25 | temporary_light_second |
integer | 0 | temporary_light_second |
✅ 同名映射 |
| 26 | is_online_reservation |
integer | 2 | is_online_reservation |
✅ 同名映射 |
映射统计:26 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.site_tables_master (31 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
table_id, table_id |
| 2 | site_id |
BIGINT | site_id |
site_id |
| 3 | siteName |
TEXT | siteName |
— |
| 4 | appletQrCodeUrl |
TEXT | appletQrCodeUrl |
— |
| 5 | areaName |
TEXT | areaName |
site_table_area_name |
| 6 | audit_status |
INT | audit_status |
— |
| 7 | charge_free |
INT | charge_free |
— |
| 8 | create_time |
TIMESTAMP | create_time |
— |
| 9 | delay_lights_time |
INT | delay_lights_time |
— |
| 10 | is_online_reservation |
INT | is_online_reservation |
is_online_reservation |
| 11 | is_rest_area |
INT | is_rest_area |
— |
| 12 | light_status |
INT | light_status |
— |
| 13 | only_allow_groupon |
INT | only_allow_groupon |
— |
| 14 | order_delay_time |
INT | order_delay_time |
— |
| 15 | self_table |
INT | self_table |
— |
| 16 | show_status |
INT | show_status |
show_status |
| 17 | site_table_area_id |
BIGINT | site_table_area_id |
site_table_area_id, tenant_table_area_id |
| 18 | tableStatusName |
TEXT | tableStatusName |
— |
| 19 | table_cloth_use_Cycle |
INT | table_cloth_use_Cycle |
table_cloth_use_cycle |
| 20 | table_cloth_use_time |
TIMESTAMP | table_cloth_use_time |
table_cloth_use_time |
| 21 | table_name |
TEXT | table_name |
table_name |
| 22 | table_price |
NUMERIC(18,2) | table_price |
table_price |
| 23 | table_status |
INT | table_status |
table_status |
| 24 | temporary_light_second |
INT | temporary_light_second |
— |
| 25 | virtual_table |
INT | virtual_table |
— |
| 26 | order_id |
BIGINT | order_id |
order_id |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dim_table — 维度 (12 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | table_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 3 | table_name |
TEXT | table_name |
直接 | 同名直传 |
| 4 | site_table_area_id |
BIGINT | site_table_area_id |
直接 | 同名直传 |
| 5 | site_table_area_name |
TEXT | areaname |
直接 | 字段重命名 |
| 6 | tenant_table_area_id |
BIGINT | site_table_area_id |
直接 | 字段重命名 |
| 7 | table_price |
NUMERIC(18,2) | table_price |
直接 | 同名直传 |
| 8 | order_id |
BIGINT | order_id |
直接 | |
| 9 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 10 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 11 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 12 | SCD2_version |
INT | — | — | SCD2 元数据 |
DWD: dwd.dim_table_ex — 维度(扩展) (10 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | table_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | show_status |
INTEGER | show_status |
直接 | 同名直传 |
| 3 | is_online_reservation |
INTEGER | is_online_reservation |
直接 | 同名直传 |
| 4 | table_cloth_use_time |
INTEGER | table_cloth_use_time |
直接 | |
| 5 | table_cloth_use_cycle |
INTEGER | table_cloth_use_cycle |
直接 | 同名直传 |
| 6 | table_status |
INTEGER | table_status |
直接 | 同名直传 |
| 7 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 8 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 9 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 10 | SCD2_version |
INT | — | — | SCD2 元数据 |
库存商品分类树 (stock_goods_category_tree)
- 任务编码:
ODS_GOODS_CATEGORY - API 端点:
/TenantGoodsCategory/QueryPrimarySecondaryCategory - 获取记录数: 9
API 源字段(11 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | id |
integer | 2790683528350533 | id |
✅ 同名映射 |
| 2 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 3 | category_name |
string | 槟榔 | category_name |
✅ 同名映射 |
| 4 | alias_name |
string | alias_name |
✅ 同名映射 | |
| 5 | pid |
integer | 0 | pid |
✅ 同名映射 |
| 6 | business_name |
string | 槟榔 | business_name |
✅ 同名映射 |
| 7 | tenant_goods_business_id |
integer | 2790683528317766 | tenant_goods_business_id |
✅ 同名映射 |
| 8 | open_salesman |
integer | 2 | open_salesman |
✅ 同名映射 |
| 9 | categoryBoxes |
array | [{"id": 2790683528350534, "tenant_id": 2... | categoryBoxes |
✅ 同名映射 |
| 10 | sort |
integer | 1 | sort |
✅ 同名映射 |
| 11 | is_warehousing |
integer | 1 | is_warehousing |
✅ 同名映射 |
映射统计:11 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.stock_goods_category_tree (16 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
category_id |
| 2 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 3 | category_name |
TEXT | category_name |
category_name |
| 4 | alias_name |
TEXT | alias_name |
alias_name |
| 5 | pid |
BIGINT | pid |
parent_category_id |
| 6 | business_name |
TEXT | business_name |
business_name |
| 7 | tenant_goods_business_id |
BIGINT | tenant_goods_business_id |
tenant_goods_business_id |
| 8 | open_salesman |
INT | open_salesman |
open_salesman |
| 9 | categoryBoxes |
JSONB | categoryBoxes |
— |
| 10 | sort |
INT | sort |
sort_order |
| 11 | is_warehousing |
INT | is_warehousing |
is_warehousing |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dim_goods_category — 维度 (16 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | category_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenant_id |
直接 | |
| 3 | category_name |
VARCHAR(50) | category_name |
直接 | |
| 4 | alias_name |
VARCHAR(50) | alias_name |
直接 | |
| 5 | parent_category_id |
BIGINT | pid |
直接 | 字段重命名 |
| 6 | business_name |
VARCHAR(50) | business_name |
直接 | |
| 7 | tenant_goods_business_id |
BIGINT | tenant_goods_business_id |
直接 | |
| 8 | category_level |
INTEGER | CASE WHEN pid = 0 THEN 1 ELSE 2 END |
直接 | 派生计算 |
| 9 | is_leaf |
INTEGER | CASE WHEN categoryboxes IS NULL OR jsonb_array_length(categoryboxes)=0 THEN 1 ELSE 0 END |
直接 | 派生计算 |
| 10 | open_salesman |
INTEGER | open_salesman |
直接 | |
| 11 | sort_order |
INTEGER | sort |
直接 | 字段重命名 |
| 12 | is_warehousing |
INTEGER | is_warehousing |
直接 | |
| 13 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 14 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 15 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 16 | SCD2_version |
INT | — | — | SCD2 元数据 |
门店商品档案 (store_goods_master)
- 任务编码:
ODS_STORE_GOODS - API 端点:
/TenantGoods/GetGoodsInventoryList - 获取记录数: 173
API 源字段(49 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | siteName |
string | 朗朗桌球 | siteName |
✅ 同名映射 |
| 2 | oneCategoryName |
string | 零食 | oneCategoryName |
✅ 同名映射 |
| 3 | twoCategoryName |
string | 面 | twoCategoryName |
✅ 同名映射 |
| 4 | goodsStockWarningInfo |
object | {"tenant_goods_id": 0, "site_goods_id": ... | — | ⚠️ 仅存于 payload JSONB |
| 5 | id |
integer | 2793025844727877 | id |
✅ 同名映射 |
| 6 | able_discount |
integer | 1 | able_discount |
✅ 同名映射 |
| 7 | able_site_transfer |
integer | 2 | able_site_transfer |
✅ 同名映射 |
| 8 | audit_status |
integer | 2 | audit_status |
✅ 同名映射 |
| 9 | average_monthly_sales |
number | 2.16 | average_monthly_sales |
✅ 同名映射 |
| 10 | batch_stock_quantity |
integer | 31 | batch_stock_quantity |
✅ 同名映射 |
| 11 | commodity_code |
string | 10000002 | commodity_code |
✅ 同名映射 |
| 12 | cost_price |
number | 0.0 | cost_price |
✅ 同名映射 |
| 13 | cost_price_type |
integer | 1 | cost_price_type |
✅ 同名映射 |
| 14 | create_time |
string | 2025-07-16 11:52:51 | create_time |
✅ 同名映射 |
| 15 | custom_label_type |
integer | 2 | custom_label_type |
✅ 同名映射 |
| 16 | days_available |
integer | 11 | days_available |
✅ 同名映射 |
| 17 | enable_status |
integer | 1 | enable_status |
✅ 同名映射 |
| 18 | forbid_sell_status |
integer | 1 | forbid_sell_status |
✅ 同名映射 |
| 19 | freeze |
integer | 0 | freeze |
✅ 同名映射 |
| 20 | goods_bar_code |
string | goods_bar_code |
✅ 同名映射 | |
| 21 | goods_category_id |
integer | 2791941988405125 | goods_category_id |
✅ 同名映射 |
| 22 | goods_cover |
string | https://oss.ficoo.vip/admin/mWT72w_17211... | goods_cover |
✅ 同名映射 |
| 23 | goods_name |
string | 红烧牛肉面 | goods_name |
✅ 同名映射 |
| 24 | goods_second_category_id |
integer | 2793236829620037 | goods_second_category_id |
✅ 同名映射 |
| 25 | goods_state |
integer | 1 | goods_state |
✅ 同名映射 |
| 26 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 27 | is_warehousing |
integer | 1 | is_warehousing |
✅ 同名映射 |
| 28 | min_discount_price |
number | 0.0 | min_discount_price |
✅ 同名映射 |
| 29 | not_sale |
integer | 2 | not_sale |
✅ 同名映射 |
| 30 | option_required |
integer | 1 | option_required |
✅ 同名映射 |
| 31 | pinyin_initial |
string | HSNRM,GSNRM | pinyin_initial |
✅ 同名映射 |
| 32 | provisional_total_cost |
number | 0.0 | provisional_total_cost |
✅ 同名映射 |
| 33 | remark |
string | remark |
✅ 同名映射 | |
| 34 | safe_stock |
integer | 0 | safe_stock |
✅ 同名映射 |
| 35 | sale_channel |
string | 1,2,3 | sale_channel |
✅ 同名映射 |
| 36 | sale_num |
integer | 452 | sale_num |
✅ 同名映射 |
| 37 | sale_price |
number | 12.0 | sale_price |
✅ 同名映射 |
| 38 | send_state |
integer | 1 | send_state |
✅ 同名映射 |
| 39 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 40 | sort |
integer | 100 | sort |
✅ 同名映射 |
| 41 | stock |
integer | 24 | stock |
✅ 同名映射 |
| 42 | stock_A |
integer | 0 | stock_A |
✅ 同名映射 |
| 43 | tenant_goods_id |
integer | 2792037812375429 | tenant_goods_id |
✅ 同名映射 |
| 44 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 45 | time_slot_sale |
integer | 2 | — | ⚠️ 仅存于 payload JSONB |
| 46 | total_purchase_cost |
number | 0.0 | total_purchase_cost |
✅ 同名映射 |
| 47 | total_sales |
integer | 452 | total_sales |
✅ 同名映射 |
| 48 | unit |
string | 桶 | unit |
✅ 同名映射 |
| 49 | update_time |
string | 2026-02-13 18:56:51 | update_time |
✅ 同名映射 |
映射统计:47 个字段映射到 ODS,1 个仅存于 payload。
ODS: ods.store_goods_master (52 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
site_goods_id, site_goods_id |
| 2 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 3 | site_id |
BIGINT | site_id |
site_id |
| 4 | siteName |
TEXT | siteName |
site_name |
| 5 | tenant_goods_id |
BIGINT | tenant_goods_id |
tenant_goods_id |
| 6 | goods_name |
TEXT | goods_name |
goods_name |
| 7 | goods_bar_code |
TEXT | goods_bar_code |
goods_barcode |
| 8 | goods_category_id |
BIGINT | goods_category_id |
goods_category_id |
| 9 | goods_second_category_id |
BIGINT | goods_second_category_id |
goods_second_category_id |
| 10 | oneCategoryName |
TEXT | oneCategoryName |
category_level1_name |
| 11 | twoCategoryName |
TEXT | twoCategoryName |
category_level2_name |
| 12 | unit |
TEXT | unit |
unit |
| 13 | sale_price |
NUMERIC(18,4) | sale_price |
sale_price |
| 14 | cost_price |
NUMERIC(18,4) | cost_price |
cost_price |
| 15 | cost_price_type |
INT | cost_price_type |
cost_price_type |
| 16 | min_discount_price |
NUMERIC(18,4) | min_discount_price |
min_discount_price |
| 17 | safe_stock |
NUMERIC(18,4) | safe_stock |
safety_stock_qty |
| 18 | stock |
NUMERIC(18,4) | stock |
batch_stock_qty, stock_qty |
| 19 | stock_A |
NUMERIC(18,4) | stock_A |
stock_secondary_qty |
| 20 | sale_num |
NUMERIC(18,4) | sale_num |
sale_qty |
| 21 | total_purchase_cost |
NUMERIC(18,4) | total_purchase_cost |
provisional_total_cost, total_purchase_cost |
| 22 | total_sales |
NUMERIC(18,4) | total_sales |
total_sales_qty |
| 23 | average_monthly_sales |
NUMERIC(18,4) | average_monthly_sales |
avg_monthly_sales |
| 24 | batch_stock_quantity |
NUMERIC(18,2) | batch_stock_quantity |
— |
| 25 | days_available |
INT | days_available |
days_on_shelf |
| 26 | provisional_total_cost |
NUMERIC(18,2) | provisional_total_cost |
— |
| 27 | enable_status |
INT | enable_status |
enable_status |
| 28 | audit_status |
INT | audit_status |
audit_status |
| 29 | goods_state |
INT | goods_state |
goods_state |
| 30 | is_delete |
INT | is_delete |
is_delete |
| 31 | is_warehousing |
INT | is_warehousing |
is_warehousing |
| 32 | able_discount |
INT | able_discount |
is_discountable |
| 33 | able_site_transfer |
INT | able_site_transfer |
able_site_transfer |
| 34 | forbid_sell_status |
INT | forbid_sell_status |
forbid_sell_status |
| 35 | freeze |
INT | freeze |
freeze_status |
| 36 | send_state |
INT | send_state |
send_state |
| 37 | custom_label_type |
INT | custom_label_type |
custom_label_type |
| 38 | option_required |
INT | option_required |
option_required |
| 39 | sale_channel |
INT | sale_channel |
sale_channel |
| 40 | sort |
INT | sort |
sort_order |
| 41 | remark |
TEXT | remark |
remark |
| 42 | pinyin_initial |
TEXT | pinyin_initial |
pinyin_initial |
| 43 | goods_cover |
TEXT | goods_cover |
goods_cover_url |
| 44 | create_time |
TIMESTAMP | create_time |
created_at |
| 45 | update_time |
TIMESTAMP | update_time |
updated_at |
| 46 | commodity_code |
TEXT | commodity_code |
commodity_code |
| 47 | not_sale |
INTEGER | not_sale |
not_sale |
ETL 元数据列(5 个):payload, content_hash, source_file, source_endpoint, fetched_at
DWD: dwd.dim_store_goods — 维度 (26 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | site_goods_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 3 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 4 | tenant_goods_id |
BIGINT | tenant_goods_id |
直接 | 同名直传 |
| 5 | goods_name |
TEXT | goods_name |
直接 | 同名直传 |
| 6 | goods_category_id |
BIGINT | goods_category_id |
直接 | 同名直传 |
| 7 | goods_second_category_id |
BIGINT | goods_second_category_id |
直接 | 同名直传 |
| 8 | category_level1_name |
TEXT | onecategoryname |
直接 | 字段重命名 |
| 9 | category_level2_name |
TEXT | twocategoryname |
直接 | 字段重命名 |
| 10 | batch_stock_qty |
INTEGER | stock |
直接 | 字段重命名 |
| 11 | sale_qty |
INTEGER | sale_num |
直接 | 字段重命名 |
| 12 | total_sales_qty |
INTEGER | total_sales |
直接 | 字段重命名 |
| 13 | sale_price |
NUMERIC(18,2) | sale_price |
直接 | 同名直传 |
| 14 | created_at |
TIMESTAMPTZ | create_time |
直接 | 字段重命名 |
| 15 | updated_at |
TIMESTAMPTZ | update_time |
直接 | 字段重命名 |
| 16 | avg_monthly_sales |
NUMERIC(18,4) | average_monthly_sales |
直接 | 字段重命名 |
| 17 | goods_state |
INTEGER | goods_state |
直接 | 同名直传 |
| 18 | enable_status |
INTEGER | enable_status |
直接 | 同名直传 |
| 19 | send_state |
INTEGER | send_state |
直接 | 同名直传 |
| 20 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 21 | commodity_code |
TEXT | commodity_code |
直接 | |
| 22 | not_sale |
INTEGER | not_sale |
直接 | |
| 23 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 24 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 25 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 26 | SCD2_version |
INT | — | — | SCD2 元数据 |
DWD: dwd.dim_store_goods_ex — 维度(扩展) (30 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | site_goods_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | site_name |
TEXT | sitename |
直接 | 字段重命名 |
| 3 | unit |
TEXT | unit |
直接 | 同名直传 |
| 4 | goods_barcode |
TEXT | goods_bar_code |
直接 | 字段重命名 |
| 5 | goods_cover_url |
TEXT | goods_cover |
直接 | 字段重命名 |
| 6 | pinyin_initial |
TEXT | pinyin_initial |
直接 | 同名直传 |
| 7 | stock_qty |
INTEGER | stock |
直接 | 字段重命名 |
| 8 | stock_secondary_qty |
INTEGER | stock_a |
直接 | 字段重命名 |
| 9 | safety_stock_qty |
INTEGER | safe_stock |
直接 | 字段重命名 |
| 10 | cost_price |
NUMERIC(18,4) | cost_price |
直接 | 同名直传 |
| 11 | cost_price_type |
INTEGER | cost_price_type |
直接 | 同名直传 |
| 12 | provisional_total_cost |
NUMERIC(18,2) | total_purchase_cost |
直接 | 字段重命名 |
| 13 | total_purchase_cost |
NUMERIC(18,2) | total_purchase_cost |
直接 | 同名直传 |
| 14 | min_discount_price |
NUMERIC(18,2) | min_discount_price |
直接 | 同名直传 |
| 15 | is_discountable |
INTEGER | able_discount |
直接 | 字段重命名 |
| 16 | days_on_shelf |
INTEGER | days_available |
直接 | 字段重命名 |
| 17 | audit_status |
INTEGER | audit_status |
直接 | 同名直传 |
| 18 | sale_channel |
INTEGER | sale_channel |
直接 | 同名直传 |
| 19 | is_warehousing |
INTEGER | is_warehousing |
直接 | 同名直传 |
| 20 | freeze_status |
INTEGER | freeze |
直接 | 字段重命名 |
| 21 | forbid_sell_status |
INTEGER | forbid_sell_status |
直接 | 同名直传 |
| 22 | able_site_transfer |
INTEGER | able_site_transfer |
直接 | 同名直传 |
| 23 | custom_label_type |
INTEGER | custom_label_type |
直接 | 同名直传 |
| 24 | option_required |
INTEGER | option_required |
直接 | 同名直传 |
| 25 | remark |
TEXT | remark |
直接 | |
| 26 | sort_order |
INTEGER | sort |
直接 | 字段重命名 |
| 27 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 28 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 29 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 30 | SCD2_version |
INT | — | — | SCD2 元数据 |
台费折扣/调账 (table_fee_discount_records)
- 任务编码:
ODS_TABLE_FEE_DISCOUNT - API 端点:
/Site/GetTaiFeeAdjustList - 时间字段:
startTime/endTime - 获取记录数: 200
API 源字段(20 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | tableProfile |
object | {"id": 2793022145302597, "tenant_id": 27... | — | 📦 嵌套对象,不直接映射 |
| 2 | siteProfile |
object | {"id": 2790685415443269, "org_id": 27906... | — | 📦 嵌套对象,不直接映射 |
| 3 | id |
integer | 3093721330321541 | id |
✅ 同名映射 |
| 4 | adjust_type |
integer | 1 | adjust_type |
✅ 同名映射 |
| 5 | applicant_id |
integer | 2790687322443013 | applicant_id |
✅ 同名映射 |
| 6 | applicant_name |
string | 收银员:郑丽珊 | applicant_name |
✅ 同名映射 |
| 7 | create_time |
string | 2026-02-13 21:56:07 | create_time |
✅ 同名映射 |
| 8 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 9 | ledger_amount |
number | 125.88 | ledger_amount |
✅ 同名映射 |
| 10 | ledger_count |
integer | 1 | ledger_count |
✅ 同名映射 |
| 11 | ledger_name |
string | ledger_name |
✅ 同名映射 | |
| 12 | ledger_status |
integer | 1 | ledger_status |
✅ 同名映射 |
| 13 | operator_id |
integer | 2790687322443013 | operator_id |
✅ 同名映射 |
| 14 | operator_name |
string | 收银员:郑丽珊 | operator_name |
✅ 同名映射 |
| 15 | order_settle_id |
integer | 3093721299536133 | order_settle_id |
✅ 同名映射 |
| 16 | order_trade_no |
integer | 3093324364122309 | order_trade_no |
✅ 同名映射 |
| 17 | site_id |
integer | 2790685415443269 | site_id |
✅ 同名映射 |
| 18 | site_table_id |
integer | 2793022145302597 | site_table_id |
✅ 同名映射 |
| 19 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 20 | tenant_table_area_id |
integer | 2791961709907845 | tenant_table_area_id |
✅ 同名映射 |
映射统计:18 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.table_fee_discount_records (33 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
table_fee_adjust_id, table_fee_adjust_id |
| 2 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 3 | site_id |
BIGINT | site_id |
site_id |
| 4 | siteProfile |
JSONB | siteProfile |
— |
| 5 | site_table_id |
BIGINT | site_table_id |
table_id |
| 6 | tableProfile |
JSONB | tableProfile |
table_area_name |
| 7 | tenant_table_area_id |
BIGINT | tenant_table_area_id |
table_area_id, tenant_table_area_id |
| 8 | adjust_type |
INT | adjust_type |
adjust_type |
| 9 | ledger_amount |
NUMERIC(18,2) | ledger_amount |
ledger_amount |
| 10 | ledger_count |
NUMERIC(18,4) | ledger_count |
ledger_count |
| 11 | ledger_name |
TEXT | ledger_name |
ledger_name |
| 12 | ledger_status |
INT | ledger_status |
ledger_status |
| 13 | applicant_id |
BIGINT | applicant_id |
applicant_id |
| 14 | applicant_name |
TEXT | applicant_name |
applicant_name |
| 15 | operator_id |
BIGINT | operator_id |
operator_id |
| 16 | operator_name |
TEXT | operator_name |
operator_name |
| 17 | order_settle_id |
BIGINT | order_settle_id |
order_settle_id |
| 18 | order_trade_no |
TEXT | order_trade_no |
order_trade_no |
| 19 | is_delete |
INT | is_delete |
is_delete |
| 20 | create_time |
TIMESTAMP | create_time |
adjust_time |
| 21 | area_type_id |
BIGINT | — | area_type_id |
| 22 | charge_free |
BOOLEAN | — | charge_free |
| 23 | site_table_area_id |
BIGINT | — | site_table_area_id |
| 24 | site_table_area_name |
TEXT | — | site_table_area_name |
| 25 | sitename |
TEXT | — | site_name |
| 26 | table_name |
TEXT | — | table_name |
| 27 | table_price |
NUMERIC(18,2) | — | table_price |
| 28 | tenant_name |
TEXT | — | tenant_name |
ETL 元数据列(5 个):content_hash, source_file, source_endpoint, fetched_at, payload
DWD: dwd.dwd_table_fee_adjust — 事实 (16 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | table_fee_adjust_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | order_trade_no |
BIGINT | order_trade_no |
直接 | 同名直传 |
| 3 | order_settle_id |
BIGINT | order_settle_id |
直接 | 同名直传 |
| 4 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 5 | site_id |
BIGINT | site_id |
直接 | 同名直传 |
| 6 | table_id |
BIGINT | site_table_id |
直接 | 字段重命名 |
| 7 | table_area_id |
BIGINT | tenant_table_area_id |
直接 | 字段重命名 |
| 8 | table_area_name |
VARCHAR(64) | tableprofile->>'table_area_name' |
直接 | JSONB 提取 |
| 9 | tenant_table_area_id |
BIGINT | tenant_table_area_id |
直接 | 同名直传 |
| 10 | ledger_amount |
NUMERIC(18,2) | ledger_amount |
直接 | 同名直传 |
| 11 | ledger_status |
INTEGER | ledger_status |
直接 | 同名直传 |
| 12 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 13 | adjust_time |
TIMESTAMPTZ | create_time |
直接 | 字段重命名 |
| 14 | table_name |
TEXT | table_name |
直接 | |
| 15 | table_price |
NUMERIC(18,2) | table_price |
直接 | |
| 16 | charge_free |
BOOLEAN | charge_free |
→ boolean |
DWD: dwd.dwd_table_fee_adjust_ex — 事实(扩展) (13 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | table_fee_adjust_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | adjust_type |
INTEGER | adjust_type |
直接 | 同名直传 |
| 3 | ledger_count |
INTEGER | ledger_count |
直接 | 同名直传 |
| 4 | ledger_name |
VARCHAR(128) | ledger_name |
直接 | |
| 5 | applicant_name |
VARCHAR(64) | applicant_name |
直接 | 同名直传 |
| 6 | operator_name |
VARCHAR(64) | operator_name |
直接 | 同名直传 |
| 7 | applicant_id |
BIGINT | applicant_id |
直接 | 同名直传 |
| 8 | operator_id |
BIGINT | operator_id |
直接 | 同名直传 |
| 9 | area_type_id |
BIGINT | area_type_id |
直接 | |
| 10 | site_table_area_id |
BIGINT | site_table_area_id |
直接 | |
| 11 | site_table_area_name |
TEXT | site_table_area_name |
直接 | |
| 12 | site_name |
TEXT | sitename |
直接 | 字段重命名 |
| 13 | tenant_name |
TEXT | tenant_name |
直接 |
租户商品档案 (tenant_goods_master)
- 任务编码:
ODS_TENANT_GOODS - API 端点:
/TenantGoods/QueryTenantGoods - 获取记录数: 174
API 源字段(32 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | categoryName |
string | 饮料 | categoryName |
✅ 同名映射 |
| 2 | isInSite |
boolean | False | isInSite |
✅ 同名映射 |
| 3 | commodityCode |
array | ["10000028"] | commodityCode |
✅ 同名映射 |
| 4 | id |
integer | 2791925230096261 | id |
✅ 同名映射 |
| 5 | able_discount |
integer | 1 | able_discount |
✅ 同名映射 |
| 6 | able_site_transfer |
integer | 2 | able_site_transfer |
✅ 同名映射 |
| 7 | commodity_code |
string | 10000028 | commodity_code |
✅ 同名映射 |
| 8 | common_sale_royalty |
integer | 0 | common_sale_royalty |
✅ 同名映射 |
| 9 | cost_price |
number | 0.0 | cost_price |
✅ 同名映射 |
| 10 | cost_price_type |
integer | 1 | cost_price_type |
✅ 同名映射 |
| 11 | create_time |
string | 2025-07-15 17:13:15 | create_time |
✅ 同名映射 |
| 12 | goods_bar_code |
string | goods_bar_code |
✅ 同名映射 | |
| 13 | goods_category_id |
integer | 2790683528350539 | goods_category_id |
✅ 同名映射 |
| 14 | goods_cover |
string | https://oss.ficoo.vip/admin/ZwS8fj_17531... | goods_cover |
✅ 同名映射 |
| 15 | goods_name |
string | 东方树叶 | goods_name |
✅ 同名映射 |
| 16 | goods_number |
string | 1 | goods_number |
✅ 同名映射 |
| 17 | goods_second_category_id |
integer | 2790683528350540 | goods_second_category_id |
✅ 同名映射 |
| 18 | goods_state |
integer | 1 | goods_state |
✅ 同名映射 |
| 19 | is_delete |
integer | 0 | is_delete |
✅ 同名映射 |
| 20 | is_warehousing |
integer | 1 | is_warehousing |
✅ 同名映射 |
| 21 | market_price |
number | 8.0 | market_price |
✅ 同名映射 |
| 22 | min_discount_price |
number | 0.0 | min_discount_price |
✅ 同名映射 |
| 23 | not_sale |
integer | 2 | not_sale |
✅ 同名映射 |
| 24 | out_goods_id |
integer | 0 | out_goods_id |
✅ 同名映射 |
| 25 | pinyin_initial |
string | DFSY,DFSX | pinyin_initial |
✅ 同名映射 |
| 26 | point_sale_royalty |
integer | 0 | point_sale_royalty |
✅ 同名映射 |
| 27 | remark_name |
string | remark_name |
✅ 同名映射 | |
| 28 | sale_channel |
string | 1,2,3 | sale_channel |
✅ 同名映射 |
| 29 | supplier_id |
integer | 0 | supplier_id |
✅ 同名映射 |
| 30 | tenant_id |
integer | 2790683160709957 | tenant_id |
✅ 同名映射 |
| 31 | unit |
string | 瓶 | unit |
✅ 同名映射 |
| 32 | update_time |
string | 2025-10-29 23:51:38 | update_time |
✅ 同名映射 |
映射统计:32 个字段映射到 ODS,0 个仅存于 payload。
ODS: ods.tenant_goods_master (37 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | id |
BIGINT | id |
tenant_goods_id, tenant_goods_id |
| 2 | tenant_id |
BIGINT | tenant_id |
tenant_id |
| 3 | goods_name |
TEXT | goods_name |
goods_name |
| 4 | goods_bar_code |
TEXT | goods_bar_code |
goods_bar_code |
| 5 | goods_category_id |
BIGINT | goods_category_id |
goods_category_id |
| 6 | goods_second_category_id |
BIGINT | goods_second_category_id |
goods_second_category_id |
| 7 | categoryName |
TEXT | categoryName |
category_name |
| 8 | unit |
TEXT | unit |
unit |
| 9 | goods_number |
TEXT | goods_number |
goods_number |
| 10 | out_goods_id |
TEXT | out_goods_id |
out_goods_id |
| 11 | goods_state |
INT | goods_state |
goods_state |
| 12 | sale_channel |
INT | sale_channel |
sale_channel |
| 13 | able_discount |
INT | able_discount |
able_discount |
| 14 | able_site_transfer |
INT | able_site_transfer |
able_site_transfer |
| 15 | is_delete |
INT | is_delete |
is_delete |
| 16 | is_warehousing |
INT | is_warehousing |
is_warehousing |
| 17 | isInSite |
INT | isInSite |
is_in_site |
| 18 | cost_price |
NUMERIC(18,4) | cost_price |
cost_price |
| 19 | cost_price_type |
INT | cost_price_type |
cost_price_type |
| 20 | market_price |
NUMERIC(18,4) | market_price |
market_price |
| 21 | min_discount_price |
NUMERIC(18,4) | min_discount_price |
min_discount_price |
| 22 | common_sale_royalty |
NUMERIC(18,4) | common_sale_royalty |
common_sale_royalty |
| 23 | point_sale_royalty |
NUMERIC(18,4) | point_sale_royalty |
point_sale_royalty |
| 24 | pinyin_initial |
TEXT | pinyin_initial |
pinyin_initial |
| 25 | commodityCode |
TEXT | commodityCode |
— |
| 26 | commodity_code |
TEXT | commodity_code |
commodity_code, commodity_code_list |
| 27 | goods_cover |
TEXT | goods_cover |
goods_cover |
| 28 | supplier_id |
BIGINT | supplier_id |
supplier_id |
| 29 | remark_name |
TEXT | remark_name |
remark_name |
| 30 | create_time |
TIMESTAMP | create_time |
create_time |
| 31 | update_time |
TIMESTAMP | update_time |
update_time |
| 32 | not_sale |
INTEGER, | not_sale |
not_sale |
ETL 元数据列(5 个):payload, content_hash, source_file, source_endpoint, fetched_at
DWD: dwd.dim_tenant_goods — 维度 (19 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | tenant_goods_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | tenant_id |
BIGINT | tenant_id |
直接 | 同名直传 |
| 3 | supplier_id |
BIGINT | supplier_id |
直接 | 同名直传 |
| 4 | category_name |
VARCHAR(64) | categoryname |
直接 | 字段重命名 |
| 5 | goods_category_id |
BIGINT | goods_category_id |
直接 | 同名直传 |
| 6 | goods_second_category_id |
BIGINT | goods_second_category_id |
直接 | 同名直传 |
| 7 | goods_name |
VARCHAR(128) | goods_name |
直接 | 同名直传 |
| 8 | goods_number |
VARCHAR(64) | goods_number |
直接 | 同名直传 |
| 9 | unit |
VARCHAR(16) | unit |
直接 | 同名直传 |
| 10 | market_price |
NUMERIC(18,2) | market_price |
直接 | 同名直传 |
| 11 | goods_state |
INTEGER | goods_state |
直接 | 同名直传 |
| 12 | create_time |
TIMESTAMPTZ | create_time |
直接 | 同名直传 |
| 13 | update_time |
TIMESTAMPTZ | update_time |
直接 | 同名直传 |
| 14 | is_delete |
INTEGER | is_delete |
直接 | 同名直传 |
| 15 | not_sale |
INTEGER | not_sale |
直接 | |
| 16 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 17 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 18 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 19 | SCD2_version |
INT | — | — | SCD2 元数据 |
DWD: dwd.dim_tenant_goods_ex — 维度(扩展) (22 列) 🔗 ODS
| # | DWD 列名 | 类型 | ← ODS 来源 | 转换 | 说明 |
|---|---|---|---|---|---|
| 1 | tenant_goods_id |
BIGINT | id |
直接 | 字段重命名 |
| 2 | remark_name |
VARCHAR(128) | remark_name |
直接 | |
| 3 | pinyin_initial |
VARCHAR(128) | pinyin_initial |
直接 | 同名直传 |
| 4 | goods_cover |
VARCHAR(512) | goods_cover |
直接 | 同名直传 |
| 5 | goods_bar_code |
VARCHAR(64) | goods_bar_code |
直接 | |
| 6 | commodity_code |
VARCHAR(64) | commodity_code |
直接 | 同名直传 |
| 7 | commodity_code_list |
VARCHAR(256) | commodity_code |
直接 | 字段重命名 |
| 8 | min_discount_price |
NUMERIC(18,2) | min_discount_price |
直接 | 同名直传 |
| 9 | cost_price |
NUMERIC(18,2) | cost_price |
直接 | 同名直传 |
| 10 | cost_price_type |
INTEGER | cost_price_type |
直接 | 同名直传 |
| 11 | able_discount |
INTEGER | able_discount |
直接 | 同名直传 |
| 12 | sale_channel |
INTEGER | sale_channel |
直接 | 同名直传 |
| 13 | is_warehousing |
INTEGER | is_warehousing |
直接 | 同名直传 |
| 14 | is_in_site |
BOOLEAN | isinsite |
→ boolean | 字段重命名 |
| 15 | able_site_transfer |
INTEGER | able_site_transfer |
直接 | 同名直传 |
| 16 | common_sale_royalty |
INTEGER | common_sale_royalty |
直接 | 同名直传 |
| 17 | point_sale_royalty |
INTEGER | point_sale_royalty |
直接 | 同名直传 |
| 18 | out_goods_id |
BIGINT | out_goods_id |
直接 | 同名直传 |
| 19 | SCD2_start_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 20 | SCD2_end_time |
TIMESTAMPTZ | — | — | SCD2 元数据 |
| 21 | SCD2_is_current |
INT | — | — | SCD2 元数据 |
| 22 | SCD2_version |
INT | — | — | SCD2 元数据 |
结账小票详情(按 orderSettleId 逐条获取,不走常规分页) (settlement_ticket_details)
- 任务编码:
ODS_SETTLEMENT_TICKET - API 端点:
/Order/GetOrderSettleTicketNew - 获取记录数: 10
API 源字段(39 个) 🔗 ODS
| # | JSON 字段 | 类型 | 示例值 | → ODS 列 | 说明 |
|---|---|---|---|---|---|
| 1 | siteId |
integer | 2790685415443269 | siteId |
✅ 同名映射 |
| 2 | payTime |
string | 2025-11-08 22:21:19 | payTime |
✅ 同名映射 |
| 3 | siteName |
string | 朗朗桌球 | siteName |
✅ 同名映射 |
| 4 | tenantId |
integer | 2790683160709957 | tenantId |
✅ 同名映射 |
| 5 | orderItem |
array | [{"orderType": 1, "siteOrderId": 2956375... | orderItem |
✅ 同名映射 |
| 6 | rewardName |
string | 激励 | rewardName |
✅ 同名映射 |
| 7 | settleType |
string | SiteOrder | settleType |
✅ 同名映射 |
| 8 | tenantName |
string | 朗朗桌球 | tenantName |
✅ 同名映射 |
| 9 | cashierName |
string | 收银员:郑丽珊 | cashierName |
✅ 同名映射 |
| 10 | deliveryFee |
number | 0.0 | deliveryFee |
✅ 同名映射 |
| 11 | orderRemark |
string | orderRemark |
✅ 同名映射 | |
| 12 | prepayMoney |
number | 0.0 | prepayMoney |
✅ 同名映射 |
| 13 | siteAddress |
string | 广东省广州市天河区天园街道朗朗桌球 | siteAddress |
✅ 同名映射 |
| 14 | adjustAmount |
number | 0.0 | adjustAmount |
✅ 同名映射 |
| 15 | consumeMoney |
number | 68.0 | consumeMoney |
✅ 同名映射 |
| 16 | couponAmount |
number | 0.0 | couponAmount |
✅ 同名映射 |
| 17 | ledgerAmount |
number | 0.0 | ledgerAmount |
✅ 同名映射 |
| 18 | refundAmount |
number | 0.0 | refundAmount |
✅ 同名映射 |
| 19 | ticketRemark |
string | ticketRemark |
✅ 同名映射 | |
| 20 | voucherMoney |
number | 0.0 | voucherMoney |
✅ 同名映射 |
| 21 | actualPayment |
number | 0.0 | actualPayment |
✅ 同名映射 |
| 22 | balanceAmount |
number | 0.0 | balanceAmount |
✅ 同名映射 |
| 23 | memberProfile |
object | {"memberName": "匿名用户", "memberPhone": ""... | memberProfile |
✅ 同名映射 |
| 24 | orderSettleId |
integer | 2956435061558789 | orderSettleId |
✅ 同名映射 |
| 25 | paymentMethod |
integer | 2 | paymentMethod |
✅ 同名映射 |
| 26 | deliveryAddress |
string | deliveryAddress |
✅ 同名映射 | |
| 27 | siteBusinessTel |
string | 13316068642 | siteBusinessTel |
✅ 同名映射 |
| 28 | payMemberBalance |
number | 0.0 | payMemberBalance |
✅ 同名映射 |
| 29 | memberOfferAmount |
number | 0.0 | memberOfferAmount |
✅ 同名映射 |
| 30 | orderSettleNumber |
integer | 0 | orderSettleNumber |
✅ 同名映射 |
| 31 | pointDiscountCost |
number | 0.0 | pointDiscountCost |
✅ 同名映射 |
| 32 | returnGoodsAmount |
number | 0.0 | returnGoodsAmount |
✅ 同名映射 |
| 33 | memberDeductAmount |
integer | 0 | memberDeductAmount |
✅ 同名映射 |
| 34 | onlineReturnAmount |
number | 0.0 | onlineReturnAmount |
✅ 同名映射 |
| 35 | pointDiscountPrice |
number | 0.0 | pointDiscountPrice |
✅ 同名映射 |
| 36 | ticketCustomContent |
string | ticketCustomContent |
✅ 同名映射 | |
| 37 | assistantManualDiscount |
number | 0.0 | assistantManualDiscount |
✅ 同名映射 |
| 38 | code |
integer | 0 | — | ⚠️ 仅存于 payload JSONB |
| 39 | data |
object | {"code": 0, "data": {"siteId": 279068541... | — | 📦 嵌套对象,展平后各字段独立映射 |
映射统计:37 个字段映射到 ODS,1 个仅存于 payload。
ODS: ods.settlement_ticket_details (43 列) 🔗 API
| # | ODS 列名 | 类型 | ← JSON 源 | → DWD 目标 |
|---|---|---|---|---|
| 1 | orderSettleId |
BIGINT | orderSettleId |
— |
| 2 | actualPayment |
NUMERIC(18,2) | actualPayment |
— |
| 3 | adjustAmount |
NUMERIC(18,2) | adjustAmount |
— |
| 4 | assistantManualDiscount |
NUMERIC(18,2) | assistantManualDiscount |
— |
| 5 | balanceAmount |
NUMERIC(18,2) | balanceAmount |
— |
| 6 | cashierName |
TEXT | cashierName |
— |
| 7 | consumeMoney |
NUMERIC(18,2) | consumeMoney |
— |
| 8 | couponAmount |
NUMERIC(18,2) | couponAmount |
— |
| 9 | deliveryAddress |
TEXT | deliveryAddress |
— |
| 10 | deliveryFee |
NUMERIC(18,2) | deliveryFee |
— |
| 11 | ledgerAmount |
NUMERIC(18,2) | ledgerAmount |
— |
| 12 | memberDeductAmount |
NUMERIC(18,2) | memberDeductAmount |
— |
| 13 | memberOfferAmount |
NUMERIC(18,2) | memberOfferAmount |
— |
| 14 | onlineReturnAmount |
NUMERIC(18,2) | onlineReturnAmount |
— |
| 15 | orderRemark |
TEXT | orderRemark |
— |
| 16 | orderSettleNumber |
BIGINT | orderSettleNumber |
— |
| 17 | payMemberBalance |
NUMERIC(18,2) | payMemberBalance |
— |
| 18 | payTime |
TIMESTAMP | payTime |
— |
| 19 | paymentMethod |
INT | paymentMethod |
— |
| 20 | pointDiscountCost |
NUMERIC(18,2) | pointDiscountCost |
— |
| 21 | pointDiscountPrice |
NUMERIC(18,2) | pointDiscountPrice |
— |
| 22 | prepayMoney |
NUMERIC(18,2) | prepayMoney |
— |
| 23 | refundAmount |
NUMERIC(18,2) | refundAmount |
— |
| 24 | returnGoodsAmount |
NUMERIC(18,2) | returnGoodsAmount |
— |
| 25 | rewardName |
TEXT | rewardName |
— |
| 26 | settleType |
TEXT | settleType |
— |
| 27 | siteAddress |
TEXT | siteAddress |
— |
| 28 | siteBusinessTel |
TEXT | siteBusinessTel |
— |
| 29 | siteId |
BIGINT | siteId |
— |
| 30 | siteName |
TEXT | siteName |
— |
| 31 | tenantId |
BIGINT | tenantId |
— |
| 32 | tenantName |
TEXT | tenantName |
— |
| 33 | ticketCustomContent |
TEXT | ticketCustomContent |
— |
| 34 | ticketRemark |
TEXT | ticketRemark |
— |
| 35 | voucherMoney |
NUMERIC(18,2) | voucherMoney |
— |
| 36 | memberProfile |
JSONB | memberProfile |
— |
| 37 | orderItem |
JSONB | orderItem |
— |
| 38 | tenantMemberCardLogs |
JSONB | — | — |
ETL 元数据列(5 个):payload, content_hash, source_file, source_endpoint, fetched_at
该 ODS 表暂无 DWD 映射(仅用于 DWS 或其他下游)
附录
ETL 元数据列
所有 ODS 表均包含以下 ETL 元数据列,不映射到 DWD:
| 列名 | 类型 | 说明 |
|---|---|---|
content_hash |
TEXT | 记录内容哈希,用于去重和变更检测 |
source_file |
TEXT | 原始导出文件名,用于数据追溯 |
source_endpoint |
TEXT | 采集来源接口/文件路径 |
fetched_at |
TIMESTAMPTZ | 采集/入库时间戳 |
payload |
JSONB | 完整原始 JSON 记录快照 |
DWD 维度表 SCD2 列
| 列名 | 类型 | 说明 |
|---|---|---|
scd2_start_time |
TIMESTAMPTZ | 版本生效起点 |
scd2_end_time |
TIMESTAMPTZ | 版本失效时间(9999-12-31 = 当前) |
scd2_is_current |
INT | 当前版本标记(1=当前,0=历史) |
scd2_version |
INT | 版本号(自增) |
DWD 事实表增量策略
事实表按时间窗口增量写入,优先使用以下业务时间列进行过滤:
pay_time— 支付时间create_time— 创建时间update_time— 更新时间occur_time— 发生时间settle_time— 结算时间start_use_time— 开始使用时间fetched_at— 入库时间(兜底)