From 6575bc3ca4a246d43fa30a6930f8de6e08735c6f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 3 Sep 2026 17:07:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=84=E8=8A=82=E7=82=B9QC=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E9=94=AE=E6=98=A0=E5=B0=84=EF=BC=88dim=E2=86=92qc=5Ft?= =?UTF-8?q?ype=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/bid_task_tree.dspy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wwwroot/api/bid_task_tree.dspy b/wwwroot/api/bid_task_tree.dspy index 5068d14..5078ef3 100644 --- a/wwwroot/api/bid_task_tree.dspy +++ b/wwwroot/api/bid_task_tree.dspy @@ -152,6 +152,8 @@ async with DBPools().sqlorContext(dbname) as sor: # ── 维度/类型分组 ── if role == 'agent.tender_analyst': # 各维度最新一轮 QC 结果(组节点标签用,消除"任务已批准≠QC通过"误导) + DIM_QC = {'scoring': 'scoring_items', 'quals': 'qualifications', + 'reqs_outline': 'doc_requirements', 'cost_benefit': 'cost_benefit'} latest_qc = {} for rv in await sor.sqlExe( "SELECT qc_type, fit_score, passed, round FROM bid_qc_reviews " @@ -189,7 +191,7 @@ async with DBPools().sqlorContext(dbname) as sor: }) else: final_state = getattr(ts[-1], 'state', '') or '' - lq = latest_qc.get(key) + lq = latest_qc.get(DIM_QC.get(key, ''), None) if lq: lq_passed = str(getattr(lq, 'passed', '0')) == '1' tail = "QC %.1f 分 %s" % (float(getattr(lq, 'fit_score', 0) or 0),