feat(shipping-notice): 落地 XFA 拆分、版面签名、统一进度与处理域履约

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-08-06 10:18:37 +08:00
1 parent 3a9fbac2fc
commit d2b3d74def
571 files changed
+78064 -24681

No files matched your search

+6 -6
View File
@@ -143,7 +143,7 @@ def _is_safe_supersede_target(sibling: Job, *, cancelled_job: Job) -> bool:
if status != "running":
return False
from app.models import ShippingNoticeIntake
from app.models import ShippingOrderIntake
intake_no = str(
(cancelled_job.payload_json or {}).get("intake_no")
@@ -154,8 +154,8 @@ def _is_safe_supersede_target(sibling: Job, *, cancelled_job: Job) -> bool:
if not intake_no:
return False
locked = (
db.session.query(ShippingNoticeIntake)
.filter(ShippingNoticeIntake.intake_no == intake_no)
db.session.query(ShippingOrderIntake)
.filter(ShippingOrderIntake.intake_no == intake_no)
.execution_options(populate_existing=True)
.with_for_update()
.first()
@@ -210,7 +210,7 @@ def _retarget_intake_parse_job_after_supersede(
"""
if not _subject_to_parse_queued_unique(str(cancelled_job.job_type or "")):
return
from app.models import ShippingNoticeIntake
from app.models import ShippingOrderIntake
intake_no = str(
(cancelled_job.payload_json or {}).get("intake_no")
@@ -227,8 +227,8 @@ def _retarget_intake_parse_job_after_supersede(
return
locked = (
db.session.query(ShippingNoticeIntake)
.filter(ShippingNoticeIntake.intake_no == intake_no)
db.session.query(ShippingOrderIntake)
.filter(ShippingOrderIntake.intake_no == intake_no)
.execution_options(populate_existing=True)
.with_for_update()
.first()