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
03f4773cb8
feat(edayun): 对接查询出库单与查询面单
两个接口:
- POST /webApi/order/v1/getOrderInfo → OutboundOrder
- POST /webApi/order/v1/getOrderLabel → List<PackageResult>(含 labelRef)
enums/EdayunOrderStatus:文档给了 24 个状态,按「宿主是否需要区分」折叠:
- ReadyToShip → SUBMITTED,Shipment → PICKING
- Shipped / Online / Delivered / Returns → SHIPPED(文档定义的「已发货」)
- Cancelled / InterceptSuccess → CANCELLED(文档定义的「已取消」)
- 其余 19 个异常类 → EXCEPTION,具体原因在 errorMsg / rawStatus
精确匹配不做子串:Shipment(发货中)不能因为含 Ship 就判成已发货。
adapter/EdayunOrderQueryMapper:
- 订单详情映射:poNumber→来源单号、orderNo→仓侧单号;毫秒时间戳;
SN 按 SKU 汇总;包裹 fileUrl 转附件;0/1 旗标 null 保持 null
- 面单映射:trackingNo 与 labels 按逗号位置一一对应到 PackageResult
- 地址优先取二字码(destProvince),全称兜底
适配器 get / packages 已实现;query / cancel / checkCancel 仍显式不支持。
测试 15 个(状态映射、地址口径、SN、旗标 null、多包裹对应、空面单)。
只跑 edayun 模块:56 个测试全绿。
Co-Authored-By: Claude <noreply@anthropic.com>
|
1 week ago |
| .. |
|
src
|
feat(edayun): 对接查询出库单与查询面单
|
1 week ago |
|
pom.xml
|
feat(edayun): 新建易达云适配器骨架
|
1 week ago |