chore: update tasks.md

This commit is contained in:
Neo
2026-03-20 01:48:27 +08:00
parent 79f9a0e1da
commit 8f8abad4c9
5 changed files with 16 additions and 72 deletions

View File

@@ -29,25 +29,25 @@
- 当某种卡类型无记录时,对应余额为 0
- **Validates: Requirements 2.1, 2.2, 2.3, 10.1**
- [ ] 3. ETL 赠送卡新增充值拆分
- [x] 3. ETL 赠送卡新增充值拆分
- [x] 3.1 新增 `_extract_gift_recharge_breakdown()` 方法
- 文件:`apps/etl/connectors/feiqiu/tasks/dws/finance_recharge_task.py`
- SQL`dwd_recharge_order JOIN dim_member_card_account``tenant_member_card_id``tenant_member_id`)按 card_type_id 分组
- 新增 `GIFT_RECHARGE_FIELD_MAP` 常量映射
- 返回 `{gift_liquor_recharge, gift_table_fee_recharge, gift_voucher_recharge}`,缺失卡类型默认 0
- _Requirements: 3.1, 3.2, 3.3_
- [-] 3.2 编写属性测试ETL 新增提取 round-trip
- [x] 3.2 编写属性测试ETL 新增提取 round-trip
- **Property 4: ETL 新增提取 round-trip**
- 生成随机 `dwd_recharge_order` + `dim_member_card_account` 记录mock DB验证各类型新增等于对应 card_type_id 的 point_amount 之和
- 当某种卡类型无充值记录时,对应新增为 0
- **Validates: Requirements 3.1, 3.2, 3.3, 10.2**
- [ ] 4. ETL transform 合并细分字段
- [~] 4.1 修改 `extract()` 调用新方法并传递结果
- [-] 4.1 修改 `extract()` 调用新方法并传递结果
- 文件:`apps/etl/connectors/feiqiu/tasks/dws/finance_recharge_task.py`
- 在 extract 返回值中新增 `gift_recharge_breakdown` key
- _Requirements: 4.1_
- [~] 4.2 修改 `transform()` 将 6 个新字段写入 record dict
- [-] 4.2 修改 `transform()` 将 6 个新字段写入 record dict
- 使用 `self.safe_decimal()` 处理值,缺失 key 时填充 0
- 沿用现有 delete-before-insert 幂等策略
- _Requirements: 4.1, 4.2, 4.3_