fix(#86): 轻量 KPI 与指派给我的待办统计 #87

Merged
Lijianping merged 1 commit from fix/86-kpis-lite-mine-todo into main 2026-11-05 14:31:53 +08:00
Collaborator

变更摘要

  • /txys/monitor/kpis 改为轻量实现,不再调用全量 BI dashboard()
  • 新增/校正 inspPendingExec、woPendingHandle:仅统计指派给当前登录人的待执行巡检、待处理工单
  • statsSummary 跳过 hourBuckets;完整 stats 复用已加载历史
  • /txys/insp/tasks/executable 同步按执行人过滤

自测步骤

  • 调用 GET /txys/monitor/kpis,应快速返回(不再长时间 pending)
  • 用执行人账号登录 App,首页角标与指派给自己的待执行/待处理一致
  • 非指派任务不出现在 executable 列表

文档影响

  • 工作区 docs/API与错误码.md 已本地更新说明(聚合仓,不在本 PR)

Closes #86

## 变更摘要 - /txys/monitor/kpis 改为轻量实现,不再调用全量 BI `dashboard()` - 新增/校正 `inspPendingExec`、`woPendingHandle`:仅统计指派给当前登录人的待执行巡检、待处理工单 - `statsSummary` 跳过 hourBuckets;完整 stats 复用已加载历史 - `/txys/insp/tasks/executable` 同步按执行人过滤 ## 自测步骤 - [ ] 调用 `GET /txys/monitor/kpis`,应快速返回(不再长时间 pending) - [ ] 用执行人账号登录 App,首页角标与指派给自己的待执行/待处理一致 - [ ] 非指派任务不出现在 executable 列表 ## 文档影响 - 工作区 `docs/API与错误码.md` 已本地更新说明(聚合仓,不在本 PR) Closes #86
fix(#86): 轻量 KPI 与指派给我的待办统计
All checks were successful
CI / backend-compile (pull_request) Successful in 11m9s
086b42c90c
工作台/kpis 不再跑全量 dashboard;App 角标字段只计当前用户待执行巡检与待处理工单。

Co-authored-by: Cursor <cursoragent@cursor.com>
Lijianping deleted branch fix/86-kpis-lite-mine-todo 2026-11-05 14:31:53 +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!87
No description provided.