fix(test): 两处 SQL 账本补记 JdProductMapper#countByUserIds(b9b66bcb 漏记,发版前整量抓到)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -124,7 +124,11 @@ class SqlLayeringConventionTest {
|
||||
//(reassignItemNums,行号即货号 item_num = CONVERT(id, CHAR),按本任务刷、锁定行排除、
|
||||
// 幂等——已等于行号的行不重复写),全部新写,非迁移语句;同笔 upsertBatch 的 UPDATE 段
|
||||
// 摘掉 item_num 覆盖(语句数不变)。
|
||||
private static final int XML_STATEMENT_TOTAL = 163;
|
||||
// 163 → 164:2026-11-15 商品上架配额计数(b9b66bcb)在 JdProductMapper 落 1 条只读 select
|
||||
//(countByUserIds,按 owner uid 集计 biz_jd_product 行数,JdPublishQuotaService 配额原语),
|
||||
// 全部新写,非迁移语句。该笔当时只点编译没跑整量、两处账本都漏记,2026-11-15 发版前
|
||||
// 整量抓到补记(同轮 MigratedSqlEquivalenceTest.XML_SELECT_TOTAL 113 → 114)。
|
||||
private static final int XML_STATEMENT_TOTAL = 164;
|
||||
|
||||
/**
|
||||
* wrapper 里夹带函数级 SQL 的现状("这不是简单单表"的证据),文件名 → 条数:
|
||||
|
||||
Reference in New Issue
Block a user