fix(shipping-recovery): 恢复库存RPA入口与门禁恢复流程
This commit is contained in:
1 parent
eb55f407ae
commit
938f3dd0e8
8 files changed
+1329
-194
No files matched your search
@@ -14,10 +14,7 @@ import logging
|
||||
|
||||
from flask import current_app
|
||||
from app import db
|
||||
from app.models import (
|
||||
ShippingNotice,
|
||||
ShippingTaskInventoryRpaAttempt,
|
||||
)
|
||||
from app.models import ShippingOrderTask, ShippingTaskInventoryRpaAttempt
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -82,8 +79,8 @@ def _scan_stale_inventory_attempts(*, timeout_seconds: int) -> int:
|
||||
|
||||
total = 0
|
||||
for task in (
|
||||
ShippingNotice.query
|
||||
.filter(ShippingNotice.task_no.in_(task_nos))
|
||||
ShippingOrderTask.query
|
||||
.filter(ShippingOrderTask.task_no.in_(task_nos))
|
||||
.all()
|
||||
):
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user