Files
Ubuntu 87f8529625
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
feat(产地): 新增公开查询接口 GET /api/public/order-origin(主系统按订单号+SKU 问产地)
用户设计:不做主系统批次映射,改成主系统来问供应商。
- 入参 main_order_code + main_sku;用本地镜像 main_system_sku_mappings 换成我方 SKU
- 取该订单出库批次 picking_items.outbound_batches → inventory.origin(批次优先)→ skus.origin(兜底)
- 免鉴权;只返回 { origin },不泄漏 SKU/批次/订单等其它字段
- 查不到 / 异常一律 200 { origin: null },不 5xx、不影响调用方
- 冒烟:GET /api/public/order-origin?... 返回 200(本地无对应数据时为 null)
2026-10-20 13:23:30 +08:00
..