Reuse assignment business columns and keyword searches in the four statistics drill-down lists. Add a statistics-permission read endpoint sharing tenant-scoped detail queries without granting assignment access.
Related to issue #13. Independent static review completed. User self-test arrangement: regression cases authored, no tests or builds executed.
cykj
merged commit ce8babcb7b into V2.02026-11-04 06:42:47 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
业务统计的四类明细弹窗原先仅显示通用单号和归属,缺少辨识业务所需的信息。按用户要求复用历史归属维护的业务列及关键词搜索。
新增统计专用只读接口,要求
project:statistics:list;归属维护接口仍要求project:assignment:edit。复用内部明细查询,沿用租户、主单数据权限、汇总钻取条件、主单分页及子表去重;统计弹窗不提供归属操作。预签约沿用原接口,无 SQL/移动端变更。关联 #13。Evidence
RecordList非 assignment 模式只展示通用字段并调用旧/records。After: 四正式业务的统计明细复用同一列/搜索配置,通过
/statistics/records获取对应业务字段;现有弹窗宽度、P02 表格和搜索右对齐不变。Merge Danger
Door: two-way
纯代码变更,无数据库迁移。
Blast Radius: 项目统计
统计权限现在可按用户明确要求读取自身数据范围内的业务识别及联系信息;不扩大业务行范围或授予归属写权限。Web 和后端需要配套更新。