fix(#104): 驾驶舱设备统计改为按物联台账汇总 #105

Merged
Lijianping merged 1 commit from fix/104-bi-device-stats-from-iot into main 2026-11-09 17:59:46 +08:00
Collaborator

变更摘要

  • BiDashboardService.buildDeviceStats 改为按 txys_device.device_type 汇总四类设备
  • 「调流」优先于「电动阀」,避免电动调流阀误计

自测步骤

  • 重启后端后请求 GET /txys/bi/dashboard,检查 result.devices 非全 0(有台账时)
  • 对照 /txys/iot/devices 各 deviceType 数量是否大致一致
  • CI 编译通过

文档影响

无(接口字段名未变,仅统计数据源)

Closes #104

## 变更摘要 - `BiDashboardService.buildDeviceStats` 改为按 `txys_device.device_type` 汇总四类设备 - 「调流」优先于「电动阀」,避免电动调流阀误计 ## 自测步骤 - [ ] 重启后端后请求 `GET /txys/bi/dashboard`,检查 `result.devices` 非全 0(有台账时) - [ ] 对照 `/txys/iot/devices` 各 `deviceType` 数量是否大致一致 - [ ] CI 编译通过 ## 文档影响 无(接口字段名未变,仅统计数据源) Closes #104
fix(#104): 驾驶舱设备统计改为按物联台账汇总
All checks were successful
CI / backend-compile (pull_request) Successful in 8m15s
326494d196
避免测点类型/阀门表口径导致资产四格全 0。

Co-authored-by: Cursor <cursoragent@cursor.com>
Lijianping deleted branch fix/104-bi-device-stats-from-iot 2026-11-09 17:59:46 +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!105
No description provided.