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-05-06 01:32:55 +08:00
2026-07-04 23:30:32 +08:00
2026-06-09 14:12:02 +08:00
2026-07-04 23:30:32 +08:00
2026-07-03 16:10:46 +08:00
2026-07-02 22:08:47 +08:00
2026-07-06 19:28:45 +08:00
2026-07-06 22:12:23 +08:00
2026-07-09 03:36:03 +08:00
2026-07-27 03:47:49 +08:00
2026-08-24 03:23:15 +08:00
2026-05-06 17:53:54 +08:00
2026-05-11 08:44:27 +08:00
2026-05-11 08:44:27 +08:00
2026-05-11 08:44:27 +08:00
2026-05-11 08:44:27 +08:00
2026-05-11 08:44:27 +08:00
2026-05-11 08:44:27 +08:00
2026-05-11 08:44:27 +08:00
2026-05-13 03:18:39 +08:00
2026-05-16 02:44:53 +08:00
2026-05-16 02:44:53 +08:00
2026-05-16 02:44:53 +08:00
2026-05-16 02:44:53 +08:00
2026-05-16 02:44:53 +08:00
2026-05-16 02:44:53 +08:00
2026-05-16 23:00:49 +08:00
2026-05-16 23:00:49 +08:00
2026-05-17 03:23:57 +08:00
2026-05-20 16:31:29 +08:00
2026-05-22 08:39:07 +08:00
2026-05-20 16:31:29 +08:00
2026-05-20 16:31:29 +08:00
2026-05-20 16:31:29 +08:00
2026-05-20 16:31:29 +08:00
2026-05-20 16:31:29 +08:00
2026-05-20 16:31:29 +08:00
2026-05-22 08:39:07 +08:00
2026-05-22 08:39:07 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-25 17:08:56 +08:00
2026-05-29 16:47:38 +08:00
2026-05-29 16:47:38 +08:00
2026-05-29 16:47:38 +08:00
2026-05-29 16:47:38 +08:00
2026-05-29 16:47:38 +08:00
2026-05-29 16:47:38 +08:00
2026-05-29 16:47:38 +08:00
2026-05-29 16:47:38 +08:00
2026-05-29 16:47:38 +08:00
2026-06-06 05:15:46 +08:00
2026-05-29 16:47:38 +08:00
2026-05-30 17:30:17 +08:00
2026-06-06 05:15:46 +08:00
2026-05-30 17:30:17 +08:00
2026-06-06 05:15:46 +08:00
2026-06-06 05:15:46 +08:00
2026-06-06 05:15:46 +08:00
2026-06-06 05:15:46 +08:00
2026-06-06 05:15:46 +08:00
2026-06-07 01:52:06 +08:00
2026-06-06 05:15:46 +08:00
2026-07-04 23:30:32 +08:00
2026-07-04 23:30:32 +08:00
2026-06-14 19:03:58 +08:00
2026-06-14 19:03:58 +08:00
2026-07-04 23:30:32 +08:00
2026-07-04 23:30:32 +08:00
2026-07-04 23:30:32 +08:00
2026-06-17 01:18:55 +08:00
2026-06-23 18:48:33 +08:00
2026-06-23 18:48:33 +08:00
2026-06-23 18:48:33 +08:00
2026-06-23 18:48:33 +08:00
2026-07-02 22:08:47 +08:00
2026-07-04 23:30:32 +08:00
2026-07-04 23:30:32 +08:00
2026-07-04 23:30:32 +08:00
2026-07-01 14:00:59 +08:00
2026-07-03 16:10:46 +08:00
2026-07-03 16:10:46 +08:00
2026-07-09 03:36:03 +08:00
2026-08-08 20:28:18 +08:00
2026-07-27 03:45:54 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-07-27 03:46:37 +08:00
2026-07-27 03:46:37 +08:00
2026-07-27 03:46:37 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-07-27 03:46:51 +08:00
2026-08-08 20:28:18 +08:00
2026-07-27 03:47:49 +08:00
2026-07-27 03:46:37 +08:00
2026-07-27 03:46:37 +08:00
2026-07-27 03:46:37 +08:00
2026-08-08 20:28:18 +08:00
2026-07-27 03:47:27 +08:00
2026-07-27 03:47:09 +08:00
2026-07-27 03:46:07 +08:00
2026-07-27 03:47:09 +08:00
2026-07-27 03:47:09 +08:00
2026-08-08 20:28:18 +08:00
2026-07-27 03:47:09 +08:00
2026-08-08 20:28:18 +08:00
2026-07-27 03:47:09 +08:00
2026-07-27 03:46:37 +08:00
2026-07-27 03:46:51 +08:00
2026-07-27 03:46:51 +08:00
2026-07-29 13:57:04 +08:00
2026-07-29 13:57:04 +08:00
2026-07-29 13:57:04 +08:00
2026-07-29 13:57:04 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-08-01 03:43:47 +08:00
2026-08-01 03:43:47 +08:00
2026-08-01 03:43:47 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-08-01 03:39:41 +08:00
2026-08-06 17:40:36 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-04 08:18:43 +08:00
2026-08-06 17:40:36 +08:00
2026-08-04 08:18:43 +08:00
2026-08-06 17:40:36 +08:00
2026-08-06 17:40:36 +08:00
2026-08-08 20:28:18 +08:00
2026-08-05 22:46:22 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-08-05 22:46:22 +08:00
2026-08-08 20:28:18 +08:00
2026-08-06 17:40:36 +08:00
2026-08-06 17:40:36 +08:00
2026-08-08 00:17:38 +08:00
2026-08-08 00:17:38 +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-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-08-09 16:21:04 +08:00
2026-08-09 21:17:34 +08:00
2026-08-09 21:17:34 +08:00
2026-08-09 21:17:34 +08:00
2026-08-12 20:47:19 +08:00
2026-08-12 20:47:19 +08:00
2026-08-12 20:47:19 +08:00
2026-08-12 20:47:19 +08:00
2026-08-12 20:47:19 +08:00
2026-08-12 20:47:19 +08:00
2026-08-12 22:41:32 +08:00
2026-08-13 01:58:55 +08:00
2026-08-13 01:58:55 +08:00
2026-08-13 01:58:55 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 21:40:57 +08:00
2026-08-13 23:13:07 +08:00
2026-08-15 18:22:30 +08:00
2026-08-17 22:01:18 +08:00
2026-08-19 00:00:32 +08:00
2026-08-21 02:20:17 +08:00
2026-08-23 14:31:49 +08:00
2026-08-23 14:31:49 +08:00
2026-08-23 14:31:49 +08:00
2026-08-25 01:07:22 +08:00
2026-08-25 23:40:42 +08:00
2026-08-25 23:40:42 +08:00
2026-08-26 15:35:35 +08:00
2026-08-26 15:35:35 +08:00
2026-08-26 15:35:35 +08:00
2026-08-27 23:41:50 +08:00
2026-08-27 20:11:52 +08:00
2026-08-27 23:41:43 +08:00
2026-08-30 07:28:29 +08:00
2026-08-30 07:28:01 +08:00
2026-08-30 07:28:01 +08:00
2026-08-30 07:28:01 +08:00
2026-08-30 07:28:05 +08:00
2026-08-30 07:28:21 +08:00
2026-08-30 07:28:01 +08:00
2026-08-30 07:28:01 +08:00
2026-08-30 07:28:05 +08:00
2026-09-03 17:00:37 +08:00
2026-09-03 17:00:37 +08:00
2026-09-03 17:01:05 +08:00
2026-09-03 17:03:30 +08:00
2026-09-05 22:43:38 +08:00
2026-09-05 22:43:38 +08:00
2026-09-04 21:43:05 +08:00
2026-09-04 21:43:05 +08:00
2026-09-04 21:43:05 +08:00
2026-09-05 22:43:38 +08:00
2026-09-05 22:43:38 +08:00
2026-09-07 03:48:43 +08:00
2026-09-07 03:48:43 +08:00
2026-09-07 03:48:43 +08:00
2026-09-07 16:43:35 +08:00
2026-09-07 17:49:43 +08:00
2026-09-07 22:16:54 +08:00
2026-09-08 16:36:57 +08:00
2026-09-11 02:49:27 +08:00
2026-09-11 02:49:27 +08:00
2026-09-11 02:49:27 +08:00
2026-09-13 15:30:55 +08:00