feat(shipping-notice): 完成货代发货通知全门禁恢复MVP收口
完成全门禁恢复MVP版本交付:调整自动上传与重试配置,重构正式执行链路;修复多处代码bug,新增测试与审计工具;更新全流程文档与契约规范。
This commit is contained in:
1 parent
8e0bbf7a81
commit
c94d173f92
181 files changed
+12947
-1724
No files matched your search
@@ -410,7 +410,13 @@ def _build_stp_facts(task: ShippingNotice) -> dict[str, Any] | None:
|
||||
resolutions = [item for item in resolutions_raw if isinstance(item, dict)] if isinstance(resolutions_raw, list) else []
|
||||
multi_block = bool(payload.get('multi_source_excel_block'))
|
||||
candidate_projection = project_inventory_candidate_facts(task)
|
||||
frozen_codes = list(candidate_projection.get('candidate_source_codes') or []) or task_frozen_inventory_source_codes(task)
|
||||
frozen_codes = (
|
||||
list(candidate_projection.get('candidate_source_codes') or [])
|
||||
or list(
|
||||
(payload.get('line_inventory_candidates') or {}).get('source_codes') or []
|
||||
)
|
||||
or task_frozen_inventory_source_codes(task)
|
||||
)
|
||||
has_stp = (
|
||||
status in {'candidates_frozen', 'resolved'}
|
||||
or method.startswith('stp')
|
||||
@@ -436,6 +442,12 @@ def _build_stp_facts(task: ShippingNotice) -> dict[str, Any] | None:
|
||||
'part_number': item.get('part_number'),
|
||||
'resolved_inventory_source_code': item.get('resolved_inventory_source_code'),
|
||||
'inventory_file_no': item.get('inventory_file_no'),
|
||||
'inventory_file_sha256': item.get('inventory_file_sha256'),
|
||||
'inventory_row_index': item.get('inventory_row_index'),
|
||||
'match_attempt_id': item.get('match_attempt_id'),
|
||||
'required_qty': item.get('required_qty'),
|
||||
'matched_qty': item.get('matched_qty'),
|
||||
'shortage_qty': item.get('shortage_qty'),
|
||||
'inventory_row_ref': item.get('inventory_row_ref'),
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user