feat: 明确导出报告正式导出口径
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user