fix(admin): add exception handling for SQL retry in freight accounting flow

This commit is contained in:
xst
2026-07-23 17:49:29 +08:00
parent 4ef8af5c87
commit 51768c7c95
@@ -139,7 +139,10 @@ class FreightAccountingPage(BasePage):
# 无数据 → 执行 SQL 重试
if not self._table_has_data():
if retry_sql:
try:
retry_sql()
except Exception as e:
raise RuntimeError(f"运费核算 SQL 重试失败!单号: {order_no}, 错误: {e}")
self._fill_order_no(order_no)
self._click_search()