3 Commits

Author SHA1 Message Date
liufumingren
1e1c13f38c feat(order): 新增运单号批量导入,并增加运单号仓库内唯一校验
- 新增 order.pendingOrder.importWaybill:按 delivery_order_code + store_remark 定位当前仓库待处理订单,逐条写入运单记录并返回逐条结果
- manualWaybill 与 importWaybill 共用 assertWaybillEntryAllowed / assertWaybillCodeUnused / createManualWaybillRecord,保证口径一致
- manualWaybill 增加运单号同仓库唯一校验(delete_at 为空时已存在即拒绝)
- 同步更新 API 文档(methods/system.json、methods/changes/system.json)与 AI_METHOD_ROUTING.md
- 补充 importWaybill 单元测试,修复 manualWaybill 测试缺失的 OrderExpress.findOne 桩

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-23 15:39:38 +08:00
liufumingren
358fef0f71 chore: apply ESLint auto-fixes, JSDoc additions, and CRLF→LF normalization (no logic changes) 2026-08-08 20:28:18 +08:00
liufumingren
19f0449992 fix: 手工运单号防误删三层防护 + 操作日志businessId修正
1. hardDeleteWaybillAsyncOrderExpressRows 加 status:0 过滤,保护手工录入 status=1 记录
2. createWaybillCodePipeline 入口跳过 business_key=1 且已分配运单的订单
3. manualWaybill 操作日志 businessId 从仓库ID 修正为订单ID String(orderId)
4. 新增 14 个单元测试,全部通过
2026-07-07 17:06:43 +08:00