perf(shipping-notice): 优化发货任务性能,修复上传流程与终态问题

This commit is contained in:
hugo committed 2026-08-27 19:25:16 +08:00
1 parent 434c04ed2d
commit bcdd8285ae
29 files changed
+1074 -128

No files matched your search

+2 -1
View File
@@ -265,7 +265,8 @@ class ShippingTaskEvent(Base):
detail_json: Mapped[Optional[dict]] = mapped_column(JSON, nullable=True)
before_json: Mapped[Optional[dict]] = mapped_column(JSON, nullable=True)
after_json: Mapped[Optional[dict]] = mapped_column(JSON, nullable=True)
source: Mapped[Optional[str]] = mapped_column(String(32), nullable=True, index=True)
# source 记录触发/来源码(如 freight_upload_rpa_callback_succeeded);保证能容纳长触发码。
source: Mapped[Optional[str]] = mapped_column(String(64), nullable=True, index=True)
actor_id: Mapped[Optional[int]] = mapped_column(ForeignKey('users.id'), nullable=True, index=True)
request_id: Mapped[Optional[str]] = mapped_column(String(64), nullable=True, index=True)
created_at: Mapped[datetime] = mapped_column(default=datetime.utcnow, index=True)