feat(推广费用): 自动同步聚水潭推广费用到共享镜像 #1506

Open
yueyang wants to merge 1 commits from feature/yueyang-promotion-expenses-auto-sync into main
Collaborator

修改

  • 将聚水潭经营分析中的推广费、营销费及直接/分摊金额按日、平台、店铺汇总到 promotion_expense_daily_rows。
  • 财务经营报表 › 推广费用改为读取共享镜像,提供月度对比、平台/店铺筛选、月份明细和 CSV 导出。
  • 每天 03:10 在批处理容器内重算最近 7 天,同一天整日替换;支持 --full 从 2026-01-01 首次回补。

验证

  • 专项与关联测试 17 项、126 个断言通过。
  • 生产只读聚合实测 3 天源记录 74,373 条,汇总为 1,042 行,耗时约 581 ms,峰值内存约 38.5 MB。
  • 涉及新增共享镜像表与定时任务,不涉及上游写入、金额口径调整或权限变更。
## 修改 - 将聚水潭经营分析中的推广费、营销费及直接/分摊金额按日、平台、店铺汇总到 `promotion_expense_daily_rows`。 - 财务经营报表 › 推广费用改为读取共享镜像,提供月度对比、平台/店铺筛选、月份明细和 CSV 导出。 - 每天 03:10 在批处理容器内重算最近 7 天,同一天整日替换;支持 `--full` 从 2026-01-01 首次回补。 ## 验证 - 专项与关联测试 17 项、126 个断言通过。 - 生产只读聚合实测 3 天源记录 74,373 条,汇总为 1,042 行,耗时约 581 ms,峰值内存约 38.5 MB。 - 涉及新增共享镜像表与定时任务,不涉及上游写入、金额口径调整或权限变更。
yueyang added 1 commit 2026-11-27 14:55:05 +08:00
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/yueyang-promotion-expenses-auto-sync:feature/yueyang-promotion-expenses-auto-sync
git checkout feature/yueyang-promotion-expenses-auto-sync
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WuYongJie/CaiWuXiTong#1506
No description provided.