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-04-05 09:03:50 +08:00
2026-08-08 00:17:38 +08:00
2026-09-15 16:18:32 +08:00
2026-09-15 16:19:10 +08:00
2026-09-13 02:24:18 +08:00
2026-09-28 01:32:03 +08:00
2026-08-17 02:03:34 +08:00
2026-09-15 23:49:34 +08:00