liufumingren
d179cd3993
fix(pull): 一区(老分区)声明缺失时补扫 + 退化全量时提示可能漏单
用户报「抖音/抖店一区的 5 单拉不到」。按平台单号定位:5 单全部在
`fxdd.dgjapp.com(抖店-186,即一区)`,`ErpState=waitsellersend`、
`UpFxUserId=953516`、`ShopId=4500493`,新系统区/精选区里没有它们。
一区能拉到的前提是「待发货」过滤生效(`Contract` 必须是单个 `=`)。
- dgj.listOrders:把分区扫描抽成 scanArea;声明里没有老分区时不再直接跳过,
而是先挂起(deferredLegacy),新系统分区一单都没拉到时回头补扫老分区
(rescueHosts),命中会记 warn;确实有单时仍跳过并在 skippedLegacy 里列出
- externalPrintOrder:buildSupplementHint 兼容「补扫老分区」与「补查其它域名」两类;
新增 buildFallbackHint —— 有分区退化为「时间窗全量」时提示
「平台全量列表不含待发货单,可能漏拉,请检查后端版本(订单过滤 Contract 需为单个等号)」
- 单测:pullOrderHint.test.js 补 2 例(补扫老分区提示、退化兜底提示),
test/app/lib 75 passing
实测(本地库,同账号):只声明「抖店-二区」时 listOrders 仍能拿到
6931208417510390802 / 6931197358224080335 / 6931209886018010885 /
6919330748987944687 / 6931230754941796036 这 5 单(待处理 7 单)。
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-07 21:03:14 +08:00
..
2026-11-07 21:03:14 +08:00
2026-11-04 20:53:35 +08:00
2026-11-05 15:13:22 +08:00
2026-09-13 02:23:49 +08:00
2026-10-30 23:06:09 +08:00
2026-11-01 23:17:11 +08:00
2026-11-05 15:13:22 +08:00
2026-09-14 16:09:35 +08:00
2026-09-13 02:23:49 +08:00
2026-11-07 09:22:16 +08:00
2026-09-13 02:23:34 +08:00
2026-11-04 04:10:37 +08:00
2026-09-13 02:23:49 +08:00
2026-11-04 20:53:35 +08:00
2026-11-07 06:53:07 +08:00
2026-11-05 16:33:15 +08:00
2026-09-14 16:09:35 +08:00
2026-11-05 02:15:46 +08:00
2026-11-03 03:29:09 +08:00
2026-10-30 23:06:18 +08:00
2026-10-30 23:06:18 +08:00
2026-09-13 02:23:34 +08:00
2026-09-09 20:00:54 +08:00
2026-11-03 17:31:44 +08:00
2026-11-05 02:15:25 +08:00
2026-11-05 00:50:27 +08:00
2026-11-05 15:44:06 +08:00
2026-11-05 16:54:36 +08:00
2026-09-14 00:59:23 +08:00
2026-09-14 16:09:35 +08:00
2026-11-07 19:05:36 +08:00
2026-11-07 08:14:12 +08:00
2026-11-01 23:17:11 +08:00