Files
Neo-ZQYY/.cursor/rules/etl-feiqiu.mdc
2026-05-02 03:11:39 +08:00

15 lines
655 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: 飞球 ETL 规则DWD-DOC 优先、金额口径、DWS 优先、禁止归档目录。
globs: apps/etl/connectors/feiqiu/**
alwaysApply: false
---
# ETL 飞球规则
- 金额、支付、消费链路、字段语义优先参考 `apps/etl/connectors/feiqiu/docs/reports/DWD-DOC/`。
- `consume_money` 禁止直接用于计算,使用 `items_sum` 拆分字段。
- 助教费用必须区分 `assistant_pd_money` 和 `assistant_cx_money`。
- 正向结算使用 `settle_type IN (1, 3)`,禁止随意读取 ODS 做业务计算。
- DWS/DWD 汇总默认保持幂等,禁止 `TRUNCATE`。
- 所有 `_archived/` 目录禁止读取或参考。