chore(shipping-notice): 统一货代发货生命周期阶段命名并优化全链路业务逻辑
This commit is contained in:
1 parent
5ef8329bd8
commit
4ec4e57005
183 files changed
+14653
-3936
No files matched your search
@@ -32,6 +32,7 @@ def _task_has_process_execution(task: ShippingNotice | None) -> bool:
|
||||
return (
|
||||
ShippingProcessExecution.query
|
||||
.filter_by(task_id=int(task.id))
|
||||
.filter(ShippingProcessExecution.status != 'superseded')
|
||||
.first()
|
||||
is not None
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user