docs(waybill): 说明 printHistoryId 只在响应顶层、不在面单数据里
实测确认: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>
This commit is contained in:
parent
09587bc3e7
commit
f08d6c0fa7
@ -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[]=<Id>&IsCustomerOrder=false&FxPageType=1`;
|
||||
响应 `Data[0].PrintDataJson` 就是新的 params(实测 7888 字符,`id/sendContent/printDataJson`)。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user