You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chenchuchuan
2472cba6f0
feat(yqn): 按 API 107 对接批量库存查询
- 路径 /inventory/BatchQueryInventory → /v2/inventory/get_inventory_by_page
- 方法是 GET,但文档把参数写在 Body 里;按重复 query 参数下发
(query.warehouseCodes=a&query.warehouseCodes=b),待联调核对
- 响应是 Spring Data 分页结构,翻页以 data.last 为准
- 该接口的 code 是字符串,其它接口是数字;信封按数值解析,两种都能过
库存模型补齐 API 107 的维度:
- InventorySnapshot 补 inventoryType(可售/不可售) / parentSku / saleType /
standardQuantity / 箱套四个库存字段
- InventoryQuery 补 warehouseCodes / inventoryType
两条防护:
- warehouseCodes 必填;没给时用账户配置的仓,都没有直接拒绝,
空列表会把整个租户的库存都拉下来
- inventory_current 文档标为 string,按 BigDecimal 解析,脏值归 0
同步策略固定 FULL_PULL_DIFF:运去哪没有按时间增量查的接口。
Co-Authored-By: Claude <noreply@anthropic.com>
|
2 weeks ago |
| .. |
|
src
|
feat(yqn): 按 API 107 对接批量库存查询
|
2 weeks ago |
|
pom.xml
|
feat(warehouse): 新增仓库域 SDK 内核与运去哪 P1 出库闭环
|
2 weeks ago |