feat(shipping-notice): 添加订单文档 Profile 盲测集和样本管理功能,支持创建、执行和批准盲测,增强订单冻结和库存核验功能

This commit is contained in:
hugo committed 2026-07-23 00:15:34 +08:00
1 parent c35223d49d
commit abd8fc1e16
98 files changed
+4629 -528

No files matched your search

+6
View File
@@ -1170,6 +1170,8 @@ def _handle_upload_trigger(trigger_path: Path, processed_dir: Path) -> None:
body = json.loads(trigger_path.read_text(encoding="utf-8"))
task_no = str(body.get("task_no") or "").strip()
file_path = str(body.get("file_path") or "").strip()
attempt_id = body.get("attempt_id")
callback_id = str(body.get("callback_id") or "").strip()
failed_dir = trigger_path.parent / "failed"
if not task_no:
trigger_path.unlink(missing_ok=True)
@@ -1184,6 +1186,8 @@ def _handle_upload_trigger(trigger_path: Path, processed_dir: Path) -> None:
try:
_post_callback("/api/shipping-notice/rpa/upload-complete", {
"task_no": task_no,
"attempt_id": attempt_id,
"callback_id": callback_id,
"success": False,
"error_message": f"queue file missing: {file_path}",
})
@@ -1196,6 +1200,8 @@ def _handle_upload_trigger(trigger_path: Path, processed_dir: Path) -> None:
try:
_post_callback("/api/shipping-notice/rpa/upload-complete", {
"task_no": task_no,
"attempt_id": attempt_id,
"callback_id": callback_id,
"success": True,
"freight_ref_no": ref,
})