feat(in-transit-transfer): 更新证据下载与待匹配清单逻辑
- 修改证据下载接口,分别签发预览地址与带保存名的下载地址,避免浏览器使用对象键哈希作为保存名。 - 待匹配清单接口调整,按外部单号合计数量,不再返回外部项次,提升数据展示的清晰度。 - 移除待匹配桶的「清空并重新解析」功能,简化操作流程,确保用户体验一致性。 - 新增跨页全选支持的 API,允许用户在待处理池中选择全部待处理明细 ID,优化批量操作体验。
This commit is contained in:
1 parent
4c2a7e2a23
commit
663f401873
50 files changed
+2156
-1309
No files matched your search
@@ -0,0 +1,22 @@
|
||||
"""[DEBUG-perf1] 首页 /summary 计时基线(临时,诊断后删除)。"""
|
||||
from time import perf_counter
|
||||
|
||||
from app import create_app
|
||||
from app.services.in_transit_transfer.backlog_service import (
|
||||
_pending_match_counts,
|
||||
backlog_summary,
|
||||
list_backlog,
|
||||
)
|
||||
|
||||
app = create_app()
|
||||
with app.app_context():
|
||||
t0 = perf_counter()
|
||||
items = list_backlog()
|
||||
t1 = perf_counter()
|
||||
pm, m = _pending_match_counts()
|
||||
t2 = perf_counter()
|
||||
s = backlog_summary()
|
||||
t3 = perf_counter()
|
||||
print(f"[DEBUG-perf1] list_backlog rows={len(items)}: {t1 - t0:.2f}s")
|
||||
print(f"[DEBUG-perf1] _pending_match_counts pending={pm} matchable={m}: {t2 - t1:.2f}s")
|
||||
print(f"[DEBUG-perf1] backlog_summary total: {t3 - t2:.2f}s (pending={s.pending_match_count}, matchable={s.matchable_count})")
|
||||
Reference in new issue
Block a user