From f08d6c0fa76b6b3ae4d0e12153e88e6122651b28 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Sat, 7 Nov 2026 06:45:55 +0800 Subject: [PATCH] =?UTF-8?q?docs(waybill):=20=E8=AF=B4=E6=98=8E=20printHist?= =?UTF-8?q?oryId=20=E5=8F=AA=E5=9C=A8=E5=93=8D=E5=BA=94=E9=A1=B6=E5=B1=82?= =?UTF-8?q?=E3=80=81=E4=B8=8D=E5=9C=A8=E9=9D=A2=E5=8D=95=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 实测确认:ExpressPrint 的 PrintDataJson.id 与 printDataJson.printHistoryIds 都是 null, WaybillCode[] 里也没有该字段;printHistoryId 只出现在 - 取号:Data.PrintHistoryIds[].Id - 回捞打印数据:Data[].ID(实测 10000078656212,number) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- 店管家取号-旧系统提取.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/店管家取号-旧系统提取.md b/店管家取号-旧系统提取.md index 00f0051..740d283 100644 --- a/店管家取号-旧系统提取.md +++ b/店管家取号-旧系统提取.md @@ -268,6 +268,9 @@ WaybillCodeCreateDate='2026-11-04 08:20:37' **`Id` 即 printHistoryId**,每打一张新增一条;`Pid` 与 `WaybillCode[].WaybillCodePid`、`WaybillCodeId` 是不同概念,别混。 OMS 把解析结果(`id/pid/waybill_code/batch_index` 数组)落到 `waybill_fetch_records.print_history_ids`, 供后续重打/作废(`PrintHistory/LoadPrintData` 按它回捞)使用,暂不回传 WMS。 +- **printHistoryId 不在「面单数据」里**(实测:`PrintDataJson.id = null`、`printDataJson.printHistoryIds = null`, + `WaybillCode[]` 里也没有该字段),只在响应顶层:取号是 `Data.PrintHistoryIds[].Id`, + 回捞打印数据是 `Data[].ID`(实测 `10000078656212`,number)。要拿它只能从这两个顶层字段取。 - **打印数据(params)只有 10 分钟有效期**:取号返回的 `printinfo` 不能长期保存着用,WMS 真正打印前必须重新拉一次 `POST /PrintHistory/LoadPrintData?token=&dbname=<取号命中的分区>`,表单 `printHistoryIds[]=&IsCustomerOrder=false&FxPageType=1`; 响应 `Data[0].PrintDataJson` 就是新的 params(实测 7888 字符,`id/sendContent/printDataJson`)。