微信小程序页面迁移校验之前 P5任务处理之前
This commit is contained in:
@@ -414,6 +414,7 @@ def _check_ods_vs_dwd(
|
||||
# ══════════════════════════════════════════════════════════════
|
||||
|
||||
# 已知的 DWS→DWD 聚合关系映射
|
||||
# 营业日口径:使用 dws.biz_date() 替代 ::date 自然日转换
|
||||
_DWS_DWD_MAP: dict[str, dict] = {
|
||||
"dws.dws_assistant_daily_detail": {
|
||||
"dwd_source": "dwd.dwd_assistant_service_log",
|
||||
@@ -425,28 +426,28 @@ _DWS_DWD_MAP: dict[str, dict] = {
|
||||
"dwd_source": "dwd.dwd_settlement_head",
|
||||
"dws_date_col": "stat_date",
|
||||
"dwd_date_col": "pay_time",
|
||||
"dwd_date_cast": "::date",
|
||||
"dwd_date_cast": "dws.biz_date(%col%)",
|
||||
"description": "财务日度汇总 vs DWD 结账记录",
|
||||
},
|
||||
"dws.dws_member_visit_detail": {
|
||||
"dwd_source": "dwd.dwd_settlement_head",
|
||||
"dws_date_col": "visit_date",
|
||||
"dwd_date_col": "pay_time",
|
||||
"dwd_date_cast": "::date",
|
||||
"dwd_date_cast": "dws.biz_date(%col%)",
|
||||
"description": "会员到店明细 vs DWD 结账记录",
|
||||
},
|
||||
"dws.dws_member_consumption_summary": {
|
||||
"dwd_source": "dwd.dwd_settlement_head",
|
||||
"dws_date_col": "stat_month",
|
||||
"dwd_date_col": "pay_time",
|
||||
"dwd_date_cast": "date_trunc('month', %col%)::date",
|
||||
"dwd_date_cast": "date_trunc('month', dws.biz_date(%col%))::date",
|
||||
"description": "会员消费汇总 vs DWD 结账记录",
|
||||
},
|
||||
"dws.dws_finance_recharge_summary": {
|
||||
"dwd_source": "dwd.dwd_recharge_order",
|
||||
"dws_date_col": "stat_date",
|
||||
"dwd_date_col": "pay_time",
|
||||
"dwd_date_cast": "::date",
|
||||
"dwd_date_cast": "dws.biz_date(%col%)",
|
||||
"description": "充值汇总 vs DWD 充值订单",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user