liufumingren
da7df4139d
feat(order): 新增 need_oms_waybill 回 OMS 取号标记与本地取号分流
- 模型/迁移:wms_order_delivery 新增 need_oms_waybill TINYINT(4) NOT NULL DEFAULT 0,
迁移覆盖基表与全部分表(含 _history/_dispatch/_outsourced),幂等且 down 可回滚
- 写入链路:openapi 请求根节点 need_oms_waybill(兼容 camelCase needOmsWaybill)→
openapiMethods/deliveryorder.js 透传;delivery_order.js 仅 API 来源可能为 1,
QM/MANUAL/STOCKOUT 一律强制 0(见相邻提交)
- 取号分流:need_oms_waybill=1 的订单不参与本地自动分配快递
1. asyncProcessOrderCreated 不入本地取号队列,写 ORDER_NEED_OMS_WAYBILL_WAIT 操作日志
2. express.createWaybillCodePipeline 按订单级标记过滤(同订单全部 business_key 一并跳过),
返回值新增 skipped_need_oms_waybill_order_ids
3. schedule/consume_waybill_allocate_queue 将对应队列行置终态 waiting_oms
(不再走 pending 重试 → failed)
- waybill_allocate_queue.status 注释补充 waiting_oms 语义(STRING(20),无需迁移)
- test: delivery_order.asyncProcessOrderCreated.test.js 新增分流/保持本地取号用例,
express.createWaybillCodePipeline.skipCancelled.test.js 补齐返回字段断言
2026-09-13 15:30:55 +08:00
..
2026-04-09 01:36:49 +08:00
2026-04-09 01:36:49 +08:00
2026-04-09 01:36:49 +08:00
2026-08-12 20:47:19 +08:00
2026-08-14 23:06:05 +08:00
2026-08-08 00:17:38 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-05-06 01:32:55 +08:00
2026-03-16 14:01:22 +08:00
2026-06-23 18:48:33 +08:00
2026-09-07 22:16:54 +08:00
2026-08-30 07:28:29 +08:00
2026-06-23 18:48:33 +08:00
2026-07-27 03:47:27 +08:00
2026-05-06 01:32:55 +08:00
2026-04-17 19:21:57 +08:00
2026-04-27 16:09:26 +08:00
2026-05-30 17:30:17 +08:00
2026-03-16 14:01:22 +08:00
2026-04-09 01:36:49 +08:00
2026-04-09 01:36:49 +08:00
2026-04-09 01:36:49 +08:00
2026-03-23 17:10:07 +08:00
2026-07-03 16:10:46 +08:00
2026-08-08 00:17:38 +08:00
2026-08-15 18:22:30 +08:00
2026-08-06 17:40:36 +08:00
2026-04-09 01:36:49 +08:00
2026-07-27 03:46:07 +08:00
2026-03-16 14:01:22 +08:00
2026-03-16 14:01:22 +08:00
2026-04-05 21:45:18 +08:00
2026-08-31 17:17:48 +08:00
2026-08-13 21:40:50 +08:00
2026-05-06 01:32:55 +08:00
2026-08-15 20:12:23 +08:00
2026-09-07 16:43:35 +08:00
2026-09-13 15:30:55 +08:00
2026-04-05 09:03:50 +08:00
2026-08-01 03:44:14 +08:00
2026-08-15 20:12:23 +08:00
2026-08-19 00:00:32 +08:00
2026-07-01 14:00:59 +08:00
2026-08-25 23:40:42 +08:00
2026-08-19 03:23:50 +08:00
2026-05-11 08:44:27 +08:00
2026-08-27 23:41:50 +08:00
2026-07-27 03:41:24 +08:00
2026-09-03 17:01:05 +08:00
2026-07-27 03:46:07 +08:00
2026-07-27 03:46:07 +08:00
2026-05-29 16:47:38 +08:00
2026-05-16 02:44:53 +08:00
2026-05-13 03:18:39 +08:00
2026-07-09 03:36:03 +08:00
2026-05-06 01:32:55 +08:00
2026-06-17 01:18:55 +08:00
2026-07-01 14:00:59 +08:00
2026-07-29 13:57:04 +08:00
2026-07-02 22:08:47 +08:00
2026-05-06 01:32:55 +08:00
2026-05-29 16:47:38 +08:00
2026-05-20 16:31:29 +08:00
2026-07-27 03:47:09 +08:00
2026-05-20 16:31:29 +08:00
2026-07-02 22:08:47 +08:00
2026-03-16 14:01:22 +08:00
2026-05-22 08:39:07 +08:00
2026-04-11 17:09:06 +08:00
2026-07-27 03:46:07 +08:00
2026-07-01 14:00:59 +08:00
2026-09-10 20:59:39 +08:00
2026-08-30 07:28:01 +08:00
2026-08-30 07:28:01 +08:00
2026-08-13 21:40:50 +08:00
2026-08-27 23:41:43 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 23:13:07 +08:00
2026-04-05 09:03:50 +08:00
2026-06-07 20:42:24 +08:00
2026-06-24 07:36:43 +08:00
2026-07-27 03:46:07 +08:00
2026-07-27 03:45:54 +08:00
2026-05-06 01:32:55 +08:00
2026-08-23 14:31:49 +08:00
2026-09-03 17:00:37 +08:00
2026-09-03 17:00:37 +08:00
2026-08-04 08:18:43 +08:00
2026-03-16 14:01:22 +08:00
2026-05-22 08:39:07 +08:00
2026-09-05 22:43:38 +08:00
2026-09-07 17:49:43 +08:00
2026-05-25 17:08:56 +08:00
2026-09-11 02:49:27 +08:00
2026-08-08 00:17:38 +08:00
2026-09-08 16:36:57 +08:00
2026-09-13 15:30:55 +08:00
2026-09-05 22:43:38 +08:00
2026-09-07 03:48:43 +08:00