liufumingren
4223b6882a
feat(wave): 波次抓取不抓取 B2B 订单(is_b2b=Y 排除)
- 所有抓取候选与统计查询统一排除 B2B 订单(口径:is_b2b IS NULL OR is_b2b='N',
NULL 视为非 B2B,兼容存量行):
1) buildFetchWhere(团购/散单结构抓取共用 where)
2) groupOrderFetchList / singleOrderFetchList / fetchableOrderCount 候选列表与统计
3) buildWaveStrategyQuickScanOrderWhere + 扫描遗漏检查(策略扫描池,B2B 不进策略匹配)
4) 散单同结构计数候选
5) 策略候选/统计 SQL 5 块(调试候选、matched_count_filtered、count_total、
next_fetch 预演、同结构取出)o 侧与 src 侧同步加条件
6) singleFetchByIds 显式抓单:B2B 订单计入新增返回字段 excluded_b2b_order_ids
7) createWaveBatchByOrderIdsInTransaction 建波落库 lockRows 尾部兜底再排除
- 验证:临时集成测试 3/3 PASS(buildFetchWhere/buildWaveStrategyQuickScanOrderWhere
含 is_b2b 条件;fetchableOrderCount 真实库执行成功);ESLint 0 error
2026-10-09 00:06:54 +08:00
..
2026-07-01 14:00:59 +08:00
2026-09-30 03:08:49 +08:00
2026-09-13 02:24:37 +08:00
2026-09-20 22:12:35 +08:00
2026-09-20 22:12:35 +08:00
2026-10-09 00:06:54 +08:00
2026-10-08 19:33:21 +08:00
2026-08-14 23:06:05 +08:00
2026-04-09 01:36:49 +08:00
2026-03-16 14:01:22 +08:00
2026-07-01 14:00:59 +08:00
2026-09-23 02:46:28 +08:00
2026-08-27 17:58:52 +08:00
2026-09-27 03:05:15 +08:00
2026-09-13 15:29:43 +08:00
2026-09-27 03:05:15 +08:00
2026-08-08 00:17:38 +08:00