feat(shipping-notice): 收敛复核阶段同源投影与 OT 后履约推进

统一 Case/Progress 阶段 label_key、修复 Job 成功未推进 OT 的可重试失败投影与写路径,并落地 OT 后行级匹配/波次履约与版面诊断开关。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-08-07 13:11:14 +08:00
1 parent 74270adc22
commit fd6a23f870
100 files changed
+12138 -1017

No files matched your search

@@ -134,6 +134,9 @@ def _register_builtin_platform_jobs() -> None:
from app.services.schedule.shipping_audit_retention_job import run_shipping_audit_retention_schedule
from app.services.schedule.shipping_inventory_rpa_job import run_shipping_inventory_rpa_schedule
from app.services.schedule.shipping_order_extraction_progress_cleanup_job import run_shipping_order_extraction_progress_cleanup_schedule
from app.services.schedule.shipping_post_ot_auto_fulfill_compensation_job import (
run_shipping_post_ot_auto_fulfill_compensation_schedule,
)
register_platform_job(PlatformJobDefinition(
key="shipping-order-extraction-progress-cleanup",
@@ -144,6 +147,19 @@ def _register_builtin_platform_jobs() -> None:
params_schema=({"key": "limit", "type": "number", "label": "单批上限", "required": False, "default": 1000},),
defaults={"limit": 1000},
))
register_platform_job(PlatformJobDefinition(
key="shipping-post-ot-auto-fulfill-compensation",
label="OT 后行级自动履约补偿",
handler=run_shipping_post_ot_auto_fulfill_compensation_schedule,
description=(
"每 15 分钟扫描正式 OT 上尚未入波次且匹配 ready 的行,"
"复用 coordinate_post_ot_auto_fulfill(trigger=compensation)。"
"SHIPPING_NOTICE_LINE_AUTO_FULFILL_ENABLED=false 时空跑。"
),
category="shipping",
params_schema=({"key": "limit", "type": "number", "label": "单批 Case 上限", "required": False, "default": 50},),
defaults={"limit": 50},
))
register_platform_job(PlatformJobDefinition(
key="shipping-audit-retention",
label="货代审计到期清理与哈希校验",