refactor(phase-3): 3A 拆薄第六七笔——AP 载荷与结果行读取出件,服务 2801→2377

I 聚类(解析/分片载荷组装、读取、事务后删除)进 AppearancePatentPayloadSupport;
H 聚类(回传分组展开、解析行计数、分片载荷读取、分页结果行与行键口径)进
AppearancePatentResultRowReader。归一、归属、分组、afterCommit 与解析载荷读取
仍由服务回调交出。SourceScan 面数 32→34、support 9→11 并逐枚点名新件。
This commit is contained in:
2026-10-20 15:11:53 +08:00
parent 4bcce9d534
commit a765468a9f
4 changed files with 684 additions and 501 deletions
@@ -266,13 +266,13 @@ class SourceScanTest {
// ---------------------------------------------------------------- N6 moduleSources
@Test
void moduleSources_appearancepatent返回32支含拆分后的support件() {
void moduleSources_appearancepatent返回34支含拆分后的support件() {
List<Path> files = SourceScan.moduleSources("modules/appearancepatent");
assertThat(files)
.as("真实集成:对真仓目录求值。32 支=1 controller+1 client+1 service 主件+3 spi/cache+"
+ "9 service/support+16 model(dto7/vo9),与 find 实测同号")
.hasSize(32);
.as("真实集成:对真仓目录求值。34 支=1 controller+1 client+1 service 主件+3 spi/cache+"
+ "11 service/support+16 model(dto7/vo9),与 find 实测同号")
.hasSize(34);
assertThat(files.stream().map(p -> p.toString().replace('\\', '/')).toList())
.as("support 目录里的既有件必须在面里——聚合入口存在的理由就是拆分后的新文件要自动被看到")
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentRowNormalizer.java"));
@@ -366,23 +366,25 @@ class SourceScanTest {
}
@Test
void recursive_包含service_support下的既有9件() {
void recursive_包含service_support下的既有11件() {
List<String> support = SourceScan.moduleSources("modules/appearancepatent").stream()
.map(p -> p.toString().replace('\\', '/'))
.filter(rel -> rel.contains("/service/support/"))
.toList();
assertThat(support)
.as("真实集成:对真仓 modules/appearancepatent/service/support 求值,实测 9 支(3A 拆薄把归属谓词、陈旧扫描、结果打包、LLM 批管线抽成四枚 support 件,5→9)。"
.as("真实集成:对真仓 modules/appearancepatent/service/support 求值,实测 11 支(3A 拆薄把归属谓词、陈旧扫描、结果打包、LLM 批管线、载荷读写、结果行读取抽成六枚 support 件,5→11)。"
+ "这一格就是聚合入口存在的理由——拆分出去的新文件必须自动进面")
.hasSize(9);
.hasSize(11);
assertThat(support)
.as("3A 拆出去的四枚新件必须被逐枚点名扫到:只把分母数字改大,下一回拆件又只剩「数不对」"
.as("3A 拆出去的六枚新件必须被逐枚点名扫到:只把分母数字改大,下一回拆件又只剩「数不对」"
+ "一记红,证不了「扫得到」这件事")
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentTaskOwnership.java"))
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentStaleTaskScanner.java"))
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentResultPackager.java"))
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentLlmBatchPipeline.java"));
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentLlmBatchPipeline.java"))
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentPayloadSupport.java"))
.anyMatch(rel -> rel.endsWith("service/support/AppearancePatentResultRowReader.java"));
}
@Test