feat(订单统计): 落地读模型汇总表与 refresh 写入链路,工作台/概览/导出切读 daily 汇总并补充 Admin rebuild 与对账

This commit is contained in:
小蟑螂
2026-06-01 15:45:31 +08:00
parent e1d90ccba3
commit b19f6d60f9
58 changed files with 5332 additions and 131 deletions
@@ -41,6 +41,21 @@ spring:
min-idle: 0
max-wait: -1ms
# 订单统计读模型
order-stat:
stat-source: daily
auto-refresh-on-miss: true
refresh-worker:
enabled: true
pool-size: 4
poll-interval-ms: 2000
cache:
enabled: true
ttl-history-seconds: 86400
ttl-today-seconds: 900
nightly-rebuild-enabled: false
nightly-rebuild-cron: "0 30 2 * * ?"
# JWT配置
# ⚠️ 生产环境必须通过环境变量 JWT_SECRET 覆盖,默认值仅用于本地开发
jwt: