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-09-23 02:46:28 +08:00
2026-09-20 16:13:59 +08:00
2026-05-06 01:32:55 +08:00
2026-10-04 23:35:23 +08:00
2026-10-08 22:03:27 +08:00
2026-09-27 03:05:15 +08:00
2026-10-09 00:06:54 +08:00
2026-09-23 02:46:28 +08:00
2026-09-23 02:46:28 +08:00