refactor(shipping-inventory): 统一库存准备事实来源与门禁状态

This commit is contained in:
hugo committed 2026-09-04 20:23:00 +08:00
1 parent 761a06e21a
commit eb55f407ae
62 files changed
+4242 -1471

No files matched your search

@@ -29,10 +29,10 @@ def test_force_new_enqueue_does_not_reuse_running_job(app):
force_new=True 时即使存在同 attempt 的 running Job,也必须新建可领取 queued Job。
"""
with app.app_context():
_user, item, version = _seed_workflow_version(suffix='requeue1')
_user, review_case_id, task_id = _seed_workflow_version(suffix='requeue1')
execution = ensure_execution_for_workflow_version(
workflow_item_id=int(item.id),
workflow_item_version_id=int(version.id),
review_case_id=review_case_id,
task_id=task_id,
)
attempt = queue_gate_attempt(
execution_no=execution.execution_no,