fix: 工作台设备在线数改为按物联设备统计 #100

Closed
opened 2026-11-09 09:53:16 +08:00 by Lijianping · 0 comments
Collaborator

目标

工作台「设备在线」与物联数据转存设备列表的在线口径对齐。目标仓:backend

范围

  • BiDashboardService:workbenchKpis / dashboard kpis 的 deviceOnline/deviceTotal/onlineRate 改为按 txys_device.onlineFlag 统计(不再误用阀门表)
  • 必要时同步 docs/API与错误码.md 口径说明

不做

  • 不改 frontend / app / gis-cs / txys-*
  • 不改阀门远控列表本身;valveOpenAvg 等阀门指标仍用阀门表

验收

  • /txys/monitor/kpis 的 deviceOnline = 物联设备 onlineFlag=1 的数量
  • 与 /txys/iot/devices 中 online=true 条数一致
  • BI dashboard kpis.deviceOnline 同源
  • 阀门开度等阀门 KPI 不受影响

相关文档

  • docs/API与错误码.md GET /txys/monitor/kpis
  • docs/汀溪原水调度平台-PRD-v0.1.md(KPI 含阀门与设备在线分列)
## 目标 工作台「设备在线」与物联数据转存设备列表的在线口径对齐。目标仓:backend ## 范围 - `BiDashboardService`:`workbenchKpis` / dashboard `kpis` 的 `deviceOnline`/`deviceTotal`/`onlineRate` 改为按 `txys_device.onlineFlag` 统计(不再误用阀门表) - 必要时同步 `docs/API与错误码.md` 口径说明 ## 不做 - 不改 frontend / app / gis-cs / `txys-*` - 不改阀门远控列表本身;`valveOpenAvg` 等阀门指标仍用阀门表 ## 验收 - [ ] `/txys/monitor/kpis` 的 `deviceOnline` = 物联设备 `onlineFlag=1` 的数量 - [ ] 与 `/txys/iot/devices` 中 `online=true` 条数一致 - [ ] BI dashboard `kpis.deviceOnline` 同源 - [ ] 阀门开度等阀门 KPI 不受影响 ## 相关文档 - `docs/API与错误码.md` GET `/txys/monitor/kpis` - `docs/汀溪原水调度平台-PRD-v0.1.md`(KPI 含阀门与设备在线分列)
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#100
No description provided.