feat: RTU 水量/电耗日·月·年统计表与定时汇总 #80

Closed
opened 2026-11-04 14:33:51 +08:00 by Lijianping · 0 comments
Collaborator

目标

站点详情水量分析与电耗分析改为读预聚合统计表(MON.08.3),避免每次扫全量点表历史。目标仓:backend

范围

  • jeecg-boot/db/txys-patch/ 建表 SQL(日/月/年)
  • txys-module-biz:实体/Mapper、汇总任务、站点详情读统计表
  • 水量(累计流量差)与电耗(电能累计差)共用一套 metric 统计

不做

  • 不改 frontend / app / txys-*(前端若需电耗月年切换另开 front Issue)
  • 不改流量台账 txys_water_usage 业务表

验收

  • 存在 txys_metric_stat_day/month/year 且有唯一键(metric+point+周期)
  • 定时或手动回填后,RTU 详情 waterAnalysis 来自统计表
  • powerAnalysis 结构可读月/年(真表有数据时不再纯随机模拟)
  • 累计回跳不产生负水量/负电耗

相关文档

  • 工作区 docs/汀溪原水调度平台-PRD-v0.1.md MON.08.3
## 目标 站点详情水量分析与电耗分析改为读预聚合统计表(MON.08.3),避免每次扫全量点表历史。目标仓:backend ## 范围 - `jeecg-boot/db/txys-patch/` 建表 SQL(日/月/年) - `txys-module-biz`:实体/Mapper、汇总任务、站点详情读统计表 - 水量(累计流量差)与电耗(电能累计差)共用一套 metric 统计 ## 不做 - 不改 frontend / app / `txys-*`(前端若需电耗月年切换另开 front Issue) - 不改流量台账 `txys_water_usage` 业务表 ## 验收 - [ ] 存在 `txys_metric_stat_day/month/year` 且有唯一键(metric+point+周期) - [ ] 定时或手动回填后,RTU 详情 `waterAnalysis` 来自统计表 - [ ] `powerAnalysis` 结构可读月/年(真表有数据时不再纯随机模拟) - [ ] 累计回跳不产生负水量/负电耗 ## 相关文档 - 工作区 `docs/汀溪原水调度平台-PRD-v0.1.md` MON.08.3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jiaoce/xm_txys2_back#80
No description provided.