fix(cost-guard): 注解 SQL 收进 XML、新端点进守卫名单,并按实扫对齐 catch 棘轮
三格护栏红都在本笔自己头上:UserSecretUsageMapper/UserTaskGuardMapper 的 5 条 注解 SQL 迁进 mapper XML(两处语句台账同步);cost-guard 两个端点身份取自 JWT, 进 AdminApiGuardFilter 无条件名单而不是登记成「方法内自校验」;catch 静默棘轮 先摘掉 6 处能去的静默出口(含 resume 写失败被吞成「已继续任务」的假成功), 余下 6 处带 [cost-guard] 锚点的 fail-open 逐处记名入账。
This commit is contained in:
@@ -59,7 +59,9 @@ class MigratedSqlEquivalenceTest {
|
||||
// 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;
|
||||
// 86 → 88:损耗监控在 UserSecretUsageMapper 新写 2 条聚合 select,逐条点入
|
||||
// (SqlLayeringConventionTest.XML_STATEMENT_TOTAL 同轮 124 → 126)。
|
||||
private static final int XML_SELECT_TOTAL = 88;
|
||||
|
||||
/**
|
||||
* 不是「从注解搬过来」的语句:注解时代没有原文可对撞,等价性这支只能跳过它们。
|
||||
@@ -92,7 +94,10 @@ class MigratedSqlEquivalenceTest {
|
||||
"BrandGatingMapper#countDistinctBrands",
|
||||
"BrandGatingMapper#countGroupByType",
|
||||
"BrandGatingMapper#countGroupByCountry",
|
||||
"BrandGatingMapper#countGroupBySource");
|
||||
"BrandGatingMapper#countGroupBySource",
|
||||
// 损耗监控(2026-10-24)新写的 2 条聚合 select:当日全量扫描 + 单用户读数。
|
||||
"UserSecretUsageMapper#sumByUserAndModule",
|
||||
"UserSecretUsageMapper#sumForUser");
|
||||
|
||||
/** 账本 5 列:接口 / 方法 / @Select 种类 / 是否含常量插值 / 注解原文(Java 反转义后那条串)。 */
|
||||
private static final int LEDGER_COLUMNS = 5;
|
||||
|
||||
Reference in New Issue
Block a user