Files
shanxia2.0/openspec/changes/pl-fuel-recent-avg-rate/tasks.md
T
wuzilongandCursor c658f78329 feat(pl): 加油汇总顶部改为近10/20/30次平均油耗。
按相邻登记的升数与期初公里差计算 L/100km,并恢复汇总页车牌卡片展示。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-19 18:00:00 +08:00

416 B

1. 后端

  • 单次/近 N 次平均算法与单测
  • schema 增加 avgRateLast10/20/30L100
  • list_plate_month_summary 填充新字段;汇总回归断言

2. Web

  • 恢复汇总顶部卡片,展示近 10/20/30 次平均
  • API 类型字段对齐

3. 验证

  • pytest 加油汇总相关:21 passed
  • 本机打开汇总页目视验收(需在任务 worktree 启前后端)