liufumingren
0a6e82e00a
feat(order): B2B 订单作业链路(列表/转换/取消/波次排除/作业明细表重构)
- 新增 order.pendingOrder2b.list / order.deliveryOrder2b.list:复用待处理与配送列表条件,
强制 is_b2b='Y'(fixedWhere 以 AND 追加,请求 where 无法覆盖),并带出 wms_order_b2b
作业明细字段(total_box_count/pickup_plate_number/prep_remark/prep_duration_seconds/
prep_at/is_picked_up/picked_up_at/created_at),无明细行时输出空值占位
- B2B 列表 where 支持按作业明细字段筛选:先按 warehouse_id + order_id 查副表取 order_id,
再以 id IN (...) 回填;该筛选仅这两个接口开放,不影响普通订单列表
- 其余订单列表(order/reviewOrder/pendingOrder/outboundOrder/expectionOrder/entrustOrder/
deliveryOrder/deliveryExpectionOrder/archiveOrder 及 waveStrategyFallbackOrderList)
统一追加 (is_b2b IS NULL OR is_b2b = 'N'),B2B 订单不再混入普通列表
- order.convertToB2b 收紧准入:status!=cancel、step in [1,2,3]、未拣货、未复核、未锁定、
未拦截、未 B2B(打印状态不限制);已在波次中的订单转换后在同一事务内从波次摘除
(含库内抓取订单),波次存在进行中拣货任务则跳过
- order.cancelB2b 放开打印限制,作业明细由软删除改为物理删除
- 波次抓取全链路排除 B2B:补上自动加团 appendOrderToWave / countCandidateGroupOrders
两处遗漏;抽出 detachOrdersFromWavesInTransaction 供 batchRemoveOrders 与转 B2B 复用
- wms_order_delivery 分表新增 is_b2b 列表索引(current/dispatch,等值列前置 + 排序列),
由订单工厂结构漂移同步自动补建
- 迁移 20261115180000-refactor-wms-order-b2b:新增 prep_at;移除 is_print/updated_at/
deleted_at/delivery_order_code/store_id;唯一键改 uk_warehouse_order(warehouse_id, order_id);
迁移前清理历史软删除行与重复行(开发库与生产库均已执行)
- operation_log 兜底用 changeSummary 写入 message,修复转/取消 B2B 日志操作说明为空
- 同步 methods/system.json 与变更记录 0.3.351~0.3.360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-17 01:30:08 +08:00
..
2026-04-09 01:36:49 +08:00
2026-04-09 01:36:49 +08:00
2026-10-27 03:08:51 +08:00
2026-08-12 20:47:19 +08:00
2026-09-17 02:41:43 +08:00
2026-09-17 02:41:43 +08:00
2026-09-18 22:38:57 +08:00
2026-09-17 02:41:43 +08:00
2026-09-17 02:41:43 +08:00
2026-09-17 02:41:43 +08:00
2026-09-17 02:41:43 +08:00
2026-09-17 02:41:43 +08:00
2026-09-23 02:46:06 +08:00
2026-09-30 03:08:27 +08:00
2026-08-08 20:28:18 +08:00
2026-08-08 20:28:18 +08:00
2026-09-25 03:14:15 +08:00
2026-10-16 05:29:13 +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-09-17 02:41:43 +08:00
2026-08-08 00:17:38 +08:00
2026-09-17 02:41:43 +08:00
2026-09-17 02:41:43 +08:00
2026-09-17 02:41:43 +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-09-15 23:49:34 +08:00
2026-08-13 21:40:50 +08:00
2026-05-06 01:32:55 +08:00
2026-11-17 01:30:08 +08:00
2026-09-20 16:13:59 +08:00
2026-11-17 01:30:08 +08:00
2026-11-14 17:14:04 +08:00
2026-04-05 09:03:50 +08:00
2026-11-11 04:22:30 +08:00
2026-11-14 17:14:04 +08:00
2026-11-14 17:14:04 +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-10-08 21:58:02 +08:00
2026-08-19 03:23:50 +08:00
2026-05-11 08:44:27 +08:00
2026-09-29 03:50:34 +08:00
2026-08-27 23:41:50 +08:00
2026-07-27 03:41:24 +08:00
2026-09-24 03:16:35 +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-11-14 17:14:04 +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-09-25 23:39:29 +08:00
2026-10-06 03:24:36 +08:00
2026-10-06 03:24:36 +08:00
2026-08-13 21:40:50 +08:00
2026-08-13 21:40:50 +08:00
2026-10-11 21:54:08 +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-10-06 03:24:41 +08:00
2026-10-06 03:24:41 +08:00
2026-10-28 07:22:44 +08:00
2026-10-02 15:43:49 +08:00
2026-10-02 15:43:49 +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-11-14 17:14:04 +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-10-16 05:27:30 +08:00
2026-09-24 03:26:08 +08:00
2026-09-11 02:49:27 +08:00
2026-09-25 23:40:56 +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-24 03:26:08 +08:00
2026-09-23 02:46:28 +08:00
2026-09-05 22:43:38 +08:00
2026-09-07 03:48:43 +08:00