liufumingren
f8081b876f
feat(order.wave): 新增 order.wave.fetchableOrderCount 团购可抓取订单数统计接口
- 与 order.wave.groupOrderFetchList 同口径:同一候选条件(step in [1,2,3]、status!=cancel、
outbound_status!=padding、intercept_status='none'、lock_status='none'、wave_id=0,叠加
store_id/shop_name/stock_query 过滤)+ items_hash 粗分组 + 团购阈值过滤;
仅取 id/items_hash/items/sys_logistics_code 四列做内存计数,不分页、不查订单明细
- 返回 data:group_count / order_count / same_order_quantity / raw_order_count /
warehouse_id / distinguish_express;仓库上下文缺失返回 flag=failure/code=400
- 口径提示:order_count 为命中分组的订单数合计(与 groupOrderFetchList 的 pagination.total=分组数语义不同);
include_sku 为 groupOrderFetchList 页内过滤参数,本方法不参与统计
- 权限与日志:已加入 wave.js systemInit 的 _noNeedRight / _noNeedLog / _noNeedAuth 名单
(与 groupOrderFetchList 一致),仅需登录;不产生 wms_permission 记录,无需权限同步与迁移
- 文档:methods/system.json 新增 order.wave.fetchableOrderCount(根版本 0.3.194 -> 0.3.195、
updatedAt 2026-09-28),methods/changes/system.json 新增变更记录;AI_METHOD_ROUTING.md 由脚本重新生成 service method 清单
- 测试:test/app/service/systemMethods/order/wave.fetchableOrderCount.test.js(8 用例);
该路径命中仓库 .gitignore 的 test/* 规则,按既有约定未纳入版本管理
2026-09-28 01:32:03 +08:00
..
2026-09-28 01:32:03 +08:00
2026-03-16 14:01:22 +08:00
2026-09-10 20:59:39 +08:00
2026-09-24 03:26:15 +08:00
2026-09-05 22:43:38 +08:00
2026-09-15 16:18:39 +08:00
2026-08-31 17:17:48 +08:00
2026-08-01 03:43:47 +08:00
2026-09-17 02:41:43 +08:00
2026-08-01 03:39:41 +08:00
2026-09-15 23:49:34 +08:00
2026-07-27 03:46:51 +08:00
2026-06-23 18:48:33 +08:00
2026-04-09 01:36:49 +08:00
2026-09-24 03:26:21 +08:00
2026-09-25 23:40:56 +08:00
2026-09-18 22:38:57 +08:00
2026-09-25 03:14:15 +08:00
2026-06-14 19:03:58 +08:00
2026-09-20 16:13:59 +08:00
2026-08-12 20:47:19 +08:00
2026-09-20 16:13:59 +08:00
2026-07-29 13:57:04 +08:00
2026-08-31 17:17:48 +08:00
2026-09-03 17:03:40 +08:00
2026-09-15 16:14:46 +08:00
2026-08-13 21:40:57 +08:00
2026-08-15 20:12:26 +08:00
2026-08-04 08:18:43 +08:00
2026-04-09 01:36:49 +08:00
2026-07-06 22:07:10 +08:00
2026-09-23 02:46:28 +08:00
2026-07-10 18:10:11 +08:00
2026-09-24 03:26:08 +08:00
2026-09-21 02:28:04 +08:00