feat(shipping-notice): 新增订单行与字段冲突管理功能,支持字段冲突查询与解决

This commit is contained in:
hugo committed 2026-07-16 13:03:11 +08:00
1 parent 4fbaed2b4c
commit 9da0481fc3
74 files changed
+4861 -375

No files matched your search

@@ -160,9 +160,12 @@ def build_dify_openapi_spec(base_url: str) -> dict[str, Any]:
"qty": {"type": "number", "exclusiveMinimum": 0},
"reservation_id": _str_prop("可为空,缺失时 Task 停在补字段门禁"),
"source_type": _str_prop(
"可选订单路由线索;仅在原文有可靠证据时填写,"
"可选订单路由线索(库存来源提示);仅在原文有可靠证据时填写,"
"不代表任务通知来源或已确认的库存连接器类型"
),
"hub_code": _str_prop(
"可选 Hub/站点线索;与 source_type 独立落库,禁止折叠进 source_type"
),
},
"additionalProperties": True,
},
@@ -193,7 +196,7 @@ def build_dify_openapi_spec(base_url: str) -> dict[str, Any]:
description=(
"只接受 get_order_extraction_context 的同一快照。HXOPS 仅在分类、SKU/Qty 置信度及原文证据均达标,"
"且无阻断冲突/修订决策时自动建单;Reservation ID 允许缺失,"
"订单行 Source Type 是可选路由线索。"
"订单行 Source Type / Hub Code 是可选路由线索并独立持久化。"
"响应以持久化结果分别返回 created_count、opened_existing_count、pending_count、"
"non_shipping_count;auto_created_count 仅为兼容字段且等于 created_count。"
),
@@ -236,8 +239,8 @@ def build_dify_openapi_spec(base_url: str) -> dict[str, Any]:
"patch": {
"type": "object",
"description": (
"可更新字段:sku/reservation_id/quantity/qty/required_date/uom/source_type;"
"source_type 仅作为可选订单路由线索"
"可更新字段:sku/reservation_id/quantity/qty/required_date/uom/source_type/hub_code;"
"source_type 与 hub_code 均为可选订单路由线索并独立落库"
),
"additionalProperties": True,
},