Files
Neo-ZQYY/apps
Neo d418621951 feat(backend): F1-6 sprint2 #1 60d 消费迁移到 sandbox_replay
迁移 fdw_queries.get_consumption_60d 到 sandbox_replay.consumption_replay,
沿用 sprint 1 模式: @trace_service + @runtime_aware decorator + 显式
stat_date <= ctx.business_date 上界(与视图过滤双保险),fdw_queries 改
thin wrapper 保持 customer_service 2 处调用兼容。

双口径走查 PASS(member=2799207087163141 黄先生):
- 4a live(today=2026-05-05): 小程序 stat 卡条 60天消费 ¥115(consume_amount_60d=115.36)
- 4b sandbox=2026-04-20: 小程序 stat 卡条 60天消费 ¥89(walkthrough 测试快照 88.88)

unit test sprint1+sprint2 累计 15/15 PASS,无回归。

详见 docs/audit/changes/2026-05-06__f1_6_sprint2_consumption_60d.md

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 00:27:13 +08:00
..

apps/

作用说明

应用项目顶层目录,存放所有可独立部署/运行的子项目。当前包含 ETL Connector、FastAPI 后端、微信小程序前端,以及预留的管理后台。

内部结构

  • etl/pipelines/feiqiu/ — 飞球 Connector数据源连接器抽取→清洗→汇总全流程
  • backend/ — FastAPI 后端(小程序 API、权限、审批
  • miniprogram/ — 微信小程序前端Donut + TDesign
  • admin-web/ — 管理后台(预留,暂未实施)
  • mcp-server/ — MCP Server为百炼 AI 应用提供 PostgreSQL 只读查询)

Roadmap

  • 新增更多 Connector 时,在 etl/pipelines/ 下按平台名创建子目录
  • admin-web/ 待产品需求确认后启动