feat: 驾驶舱设备统计轻量接口 #106

Closed
opened 2026-11-09 18:40:56 +08:00 by Lijianping · 0 comments
Collaborator

目标

提供驾驶舱资产统计设备四格轻量接口,避免等慢 dashboard。目标仓:backend

范围

  • BiController:GET /txys/bi/device-stats
  • BiDashboardService.deviceStats()(复用现有 buildDeviceStats)

不做

  • 不改 frontend / app / txys-*
  • 不改 dashboard 聚合本身与数字分析

验收

  • GET /txys/bi/device-stats 返回四类计数,口径与 dashboard.devices 一致
  • 响应明显快于全量 dashboard(仅查 txys_device)
  • CI 编译通过

相关文档

  • 工作区 docs/API与错误码.md(已补该路径说明;工作区本地聚合,随本卡交付)
## 目标 提供驾驶舱资产统计设备四格轻量接口,避免等慢 dashboard。目标仓:backend ## 范围 - `BiController`:`GET /txys/bi/device-stats` - `BiDashboardService.deviceStats()`(复用现有 `buildDeviceStats`) ## 不做 - 不改 frontend / app / `txys-*` - 不改 dashboard 聚合本身与数字分析 ## 验收 - [ ] `GET /txys/bi/device-stats` 返回四类计数,口径与 dashboard.devices 一致 - [ ] 响应明显快于全量 dashboard(仅查 `txys_device`) - [ ] CI 编译通过 ## 相关文档 - 工作区 `docs/API与错误码.md`(已补该路径说明;工作区本地聚合,随本卡交付)
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#106
No description provided.