feat(shipping-notice): 收敛订单处理状态与履约门禁
This commit is contained in:
1 parent
bffcd55b40
commit
70dd0051b8
153 files changed
+10916
-4296
No files matched your search
@@ -2,7 +2,7 @@
|
||||
services/schedule/shipping_post_ot_auto_fulfill_compensation_job.py
|
||||
|
||||
用途:OT 后行级自动履约补偿轮询(每 15 分钟)——补齐 matching/ot_created 事件丢失。
|
||||
依赖:line_auto_fulfill_coordinator、ShippingOrderReviewCase、list_eligible_post_ot_line_keys。
|
||||
依赖:line_auto_fulfill_coordinator、ShippingOrderReviewCase、list_eligible_post_ot_snapshot_line_ids。
|
||||
逻辑:platform_api_path=shipping-post-ot-auto-fulfill-compensation;flag 关闭时 no-op;
|
||||
仅扫描有正式 OT 且存在 eligible 行的 Case,复用 coordinate_post_ot_auto_fulfill(trigger=compensation)。
|
||||
"""
|
||||
@@ -18,7 +18,7 @@ from app.services.shipping_notice.line_auto_fulfill_coordinator import (
|
||||
)
|
||||
from app.services.shipping_notice.line_inventory_match_projection import line_auto_fulfill_enabled
|
||||
from app.services.shipping_notice.post_ot_fulfillment_wave_service import (
|
||||
list_eligible_post_ot_line_keys,
|
||||
list_eligible_post_ot_snapshot_line_ids,
|
||||
)
|
||||
|
||||
ScheduleExecuteResult = tuple[int, int, int, int, list[dict[str, Any]], list[str], list[dict[str, Any]]]
|
||||
@@ -63,7 +63,7 @@ def run_post_ot_auto_fulfill_compensation(*, limit: int = 50) -> dict[str, Any]:
|
||||
if scanned >= safe_limit:
|
||||
break
|
||||
scanned += 1
|
||||
eligible = list_eligible_post_ot_line_keys(case)
|
||||
eligible = list_eligible_post_ot_snapshot_line_ids(case)
|
||||
if not eligible:
|
||||
skipped += 1
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user