fix(test): 两处 SQL 账本补记 JdProductMapper#countByUserIds(b9b66bcb 漏记,发版前整量抓到)

This commit is contained in:
2026-11-15 23:22:41 +08:00
parent d0aa93759d
commit 6818f9777b
2 changed files with 16 additions and 3 deletions
@@ -91,7 +91,10 @@ class MigratedSqlEquivalenceTest {
// 111 → 112:2026-11-15 类目筛选下拉在 JdProductMapper 新写 1 条 select
//(selectProductCategories,DISTINCT category_path +行数),从来没有注解原文可对撞,
// 逐条点名进 NOT_MIGRATED。
private static final int XML_SELECT_TOTAL = 113;
// 113 → 114:2026-11-15 商品上架配额计数(b9b66bcb)在 JdProductMapper 新写 1 条只读 select
//(countByUserIds,按 owner uid 集计 biz_jd_product 行数),逐条点名进 NOT_MIGRATED。
// 该笔当时只点编译没跑整量、两处账本都漏记,2026-11-15 发版前整量抓到补记。
private static final int XML_SELECT_TOTAL = 114;
/**
* 不是「从注解搬过来」的语句:注解时代没有原文可对撞,等价性这支只能跳过它们。
@@ -201,7 +204,13 @@ class MigratedSqlEquivalenceTest {
"JdProductMapper#selectProductPage",
// 2026-11-15 类目筛选下拉(京麦末级类目 distinct +行数)新写 1 条 select,
// 同样没有注解原文可对撞,点名留痕(XML_SELECT_TOTAL 同轮 111 → 112)。
"JdProductMapper#selectProductCategories");
"JdProductMapper#selectProductCategories",
// 2026-11-15 商品上架配额计数(b9b66bcb)在 JdProductMapper 新写 1 条只读 select
//(countByUserIds,按 owner uid 集计 biz_jd_product 行数,JdPublishQuotaService
// 配额原语),没有注解原文可对撞,点名留痕。该笔当时只点编译没跑整量、漏记两处
// 账本,2026-11-15 发版前整量抓到补记(XML_SELECT_TOTAL 113 → 114,
// SqlLayeringConventionTest.XML_STATEMENT_TOTAL 同轮 163 → 164)。
"JdProductMapper#countByUserIds");
/** 账本 5 列:接口 / 方法 / @Select 种类 / 是否含常量插值 / 注解原文(Java 反转义后那条串)。 */
private static final int LEDGER_COLUMNS = 5;