feat: 明确导出报告正式导出口径

This commit is contained in:
2026-06-04 02:18:36 +08:00
parent 5808dd794d
commit e81f0f891e
4 changed files with 75 additions and 3 deletions

View File

@@ -161,13 +161,18 @@ def _build_workspace_summary(conversation: Conversation, batch: SubmissionBatch
notify_status = node_status_map.get("飞书通知", "待处理")
export_status = node_status_map.get("Word 回填导出", "待处理")
highest_risk_level = "" if risk_status in {"已阻断", "待复核"} else ""
latest_summary = conversation.latest_summary or {}
structured_output = latest_summary.get("structured_output") or {}
explicit_export_flag = structured_output.get("can_export_formally")
export_allowed = (
""
""
if explicit_export_flag is True
else ""
if explicit_export_flag is False
else ""
if risk_status in {"已阻断", "待复核"} or export_status in {"已阻断", "待复核", "失败"}
else ""
)
latest_summary = conversation.latest_summary or {}
structured_output = latest_summary.get("structured_output") or {}
return {
"highest_risk_level": highest_risk_level,
"export_allowed": export_allowed,