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

Merged
Lijianping merged 1 commit from feat/80-metric-stat into main 2026-11-04 15:17:42 +08:00
Collaborator

变更摘要

  • 新增 txys_metric_stat_day/month/year(水量/电耗共用,metric_type=water|power)
  • 定时增量回填 + POST /txys/iot/metric-stat/rebuild 全量回填
  • 站点详情水量/电耗改为读统计表;无电耗统计时回退模拟结构

自测步骤

  • 执行 db/txys-patch/txys_metric_stat_sqlserver.sql
  • POST /txys/iot/metric-stat/rebuild 返回 day/month/year 行数
  • GET /txys/monitor/rtu/RTU01 的 waterAnalysis.source=metric_stat,按设备有月/年序列
  • powerAnalysis 有设备月/年(有电能历史时 fromStat=true)

文档影响

  • 对照 PRD MON.08.3;库补丁见 txys_metric_stat_sqlserver.sql

Closes #80

## 变更摘要 - 新增 `txys_metric_stat_day/month/year`(水量/电耗共用,`metric_type=water|power`) - 定时增量回填 + `POST /txys/iot/metric-stat/rebuild` 全量回填 - 站点详情水量/电耗改为读统计表;无电耗统计时回退模拟结构 ## 自测步骤 - [ ] 执行 `db/txys-patch/txys_metric_stat_sqlserver.sql` - [ ] `POST /txys/iot/metric-stat/rebuild` 返回 day/month/year 行数 - [ ] `GET /txys/monitor/rtu/RTU01` 的 `waterAnalysis.source=metric_stat`,按设备有月/年序列 - [ ] `powerAnalysis` 有设备月/年(有电能历史时 fromStat=true) ## 文档影响 - 对照 PRD MON.08.3;库补丁见 `txys_metric_stat_sqlserver.sql` Closes #80
feat(#80): 水量/电耗日·月·年统计表与定时汇总
All checks were successful
CI / backend-compile (pull_request) Successful in 8m11s
ee68e31207
Closes #80

Co-authored-by: Cursor <cursoragent@cursor.com>
Lijianping deleted branch feat/80-metric-stat 2026-11-04 15:17:42 +08:00
Sign in to join this conversation.
No reviewers
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!81
No description provided.