feat(brandgating): 品牌Gating库后端模块并入管理后台
直连主库既有 biz_brand_gating 表(原独立小网页后台 8090 下线的前置),
六端点挂 /api/admin/brand-gating,权限键 admin_brand_gating,走 admin
第一道门前缀守卫无需额外登记。列表/统计/新增/删除/启停用对齐桌面版
(停用记 disabled_at、恒刷 updated_at);批量导入 { text } 按桌面版
parse_batch 逐条同款解析,去重靠唯一键+批内四键预检。
SQL 账本 115→124、select 账本 78→86,8 条 select 点入 NOT_MIGRATED。
This commit is contained in:
@@ -56,9 +56,10 @@ class MigratedSqlEquivalenceTest {
|
||||
private static final int LEDGER_SELECTS = 60;
|
||||
/** 全部 mapper XML 里的 select 总数:账本 60 + TaskImageCache 5 + AsinResultCache 1。 */
|
||||
/** 66 → 67:会话容忍新增的 {@code AdminUserMapper#countLiveWorkFor} 也是一条 select。 */
|
||||
// 67 → 78:keywordshare 模块新写 11 条 select,逐条登记进下方 NOT_MIGRATED
|
||||
// (与 SqlLayeringConventionTest.XML_STATEMENT_TOTAL 同轮 99 → 115)。
|
||||
private static final int XML_SELECT_TOTAL = 78;
|
||||
// 67 → 78:keywordshare 模块新写 11 条 select,逐条登记进下方 NOT_MIGRATED。
|
||||
// 78 → 86:brandgating 模块新写 8 条 select,同样逐条点入
|
||||
// (与 SqlLayeringConventionTest.XML_STATEMENT_TOTAL 同轮 99 → 115 → 124)。
|
||||
private static final int XML_SELECT_TOTAL = 86;
|
||||
|
||||
/**
|
||||
* 不是「从注解搬过来」的语句:注解时代没有原文可对撞,等价性这支只能跳过它们。
|
||||
@@ -82,7 +83,16 @@ class MigratedSqlEquivalenceTest {
|
||||
"KeywordShareMapper#selectCategoryCounts",
|
||||
"KeywordShareMapper#selectSubCategoryCounts",
|
||||
"KeywordShareMapper#selectCategoryL3Counts",
|
||||
"KeywordShareMapper#selectExistingKeywords");
|
||||
"KeywordShareMapper#selectExistingKeywords",
|
||||
// brandgating 模块(品牌Gating库并入管理后台,2026-10-23)新写 8 条 select。
|
||||
"BrandGatingMapper#countByFilter",
|
||||
"BrandGatingMapper#selectRows",
|
||||
"BrandGatingMapper#countAll",
|
||||
"BrandGatingMapper#countByStatus",
|
||||
"BrandGatingMapper#countDistinctBrands",
|
||||
"BrandGatingMapper#countGroupByType",
|
||||
"BrandGatingMapper#countGroupByCountry",
|
||||
"BrandGatingMapper#countGroupBySource");
|
||||
|
||||
/** 账本 5 列:接口 / 方法 / @Select 种类 / 是否含常量插值 / 注解原文(Java 反转义后那条串)。 */
|
||||
private static final int LEDGER_COLUMNS = 5;
|
||||
|
||||
Reference in New Issue
Block a user