统一:DSH 智能分析、Top100 与图表静默恢复

接入 DSH 专用运行时和对话界面,保留模型原始回答,支持会话分页、连续追问与显式报告。
补齐组合筛选、各维度 Top100、分组查询到排名图的转换,图表故障静默省略并基于保存数据自动恢复。
优化报告风格、图表顺序和表格换行,更新接入说明及构建输入。

验证:独立目录前后端构建通过;118 项 Java、102 项前端、102 项图表、14 项 DSH 应用和 13 项组合筛选检查通过。
仅提交相关源码、锁定依赖与测试;不包含凭据、会话、业务数据或本地产物。
This commit is contained in:
2026-11-12 11:57:41 +08:00
parent cc8832c8e5
commit f1a2fbd494
166 changed files with 26281 additions and 2248 deletions
+10 -3
View File
@@ -316,9 +316,16 @@ class NativeSpanStructure:
opening,closing=child
relation=_change_annotation(text,seg_left,seg_right)
if relation:result['fieldAssociation']=relation
inherited.append(text[seg_left:opening])
first_number=_NUM.search(text,opening+1,closing-1)
if first_number and first_number.start()<start:inherited.append(text[opening+1:first_number.start()])
# Inherit the current annotation's leading subject/context,
# but never carry a closed sibling annotation into the next
# one. For “组织甲(...)和组织乙(...)”, the previous
# annotation is not evidence about 组织乙, even when the
# numbers happen to be equal. Nested parents remain in the
# earlier inherited frames as we descend.
prior_children=[child_end for child_start,child_end in children
if seg_left<=child_start and child_end<=opening]
context_start=max([seg_left,*prior_children])
inherited.append(text[context_start:opening])
left,right=opening+1,closing-1
predicate=text[left:right];prefix=text[left:start]
# A from/to or arrow pair gives ordered *levels*, not a delta field.