Quellcode durchsuchen

feat(health-report): guhe_v2 上传自动切 LangGraph 异步解析(S-cfc-424)

实现能力键 health.report.guheV2AsyncRoute(P0-2 · 解析主路径切 Python/Java 转发),
使红单测 GuheV2AsyncRouteContractTest 全部转绿(8 红 → 11/11 绿)。

- HealthReportController:uploadReport() 识别 guhe_v2(ParsedReportResult.FORMAT_GUHE_V2)
  自动切「仅上传 + submitAsyncCollect」分支(routeGuheV2UploadOnly,复用现有异步链路,
  不做 Java 本地解析);§6.1 上传响应新增 reportFormat / parseMethod 键,非 guhe_v2 回填
  parseMethod="local";collect/status 响应新增 parseSelfCheck(透传 collectValidation 自检 JSON)。
- PdfParseService:parseText() 按 detectGuheV2Route 落 reportFormat="guhe_v2"(P0-1 版本标记,
  与旧 21 键区分);新增 extractText(InputStream) 与 detectGuheV2InPdf(pdfPath) 指纹路由探针。
- LangGraphReportParseService:postParseWithReason 请求体新增 reportFormatHint 字段
  (REQUEST_KEY_REPORT_FORMAT_HINT / FORMAT_HINT_GUHE_V2="guhe_v2"),
  Python 侧据此路由到 extract_guhe_v2 专用提取器。
- ReportCollectService:collect() 主链 guhe_v2 分支(collectGuheV2ByLangGraph)——
  一律走 LangGraph 携带 reportFormatHint="guhe_v2",失败回退红线不做 Java 本地兜底,
  标记 parse_error + 用户通知「该报告格式暂不支持在线解析,可稍后重试或联系服务号」。

验证:GuheV2AsyncRouteContractTest 11/11 绿;Guhe* 全套 140 例仅剩 3 红
(GuheV2ParseContractTest 属 P0-3 独立键,且由本提交从 5 红改善为 3 红);全仓无回归。
zxyj-langgraph vor 20 Stunden
Ursprung
Commit
d467b4e9f9

+ 117 - 0
cfc-backend/src/main/java/com/etotem/cfc/controller/HealthReportController.java

@@ -100,6 +100,26 @@ public class HealthReportController {
     private static final String LANGGRAPH_BASE_URL = "http://localhost:9000";
     private static final String REPORT_PARSE_URL = LANGGRAPH_BASE_URL + "/api/v1/report/parse";
 
+    // ==================== guhe_v2 异步路由契约锚点(P0-2 / §六 6.1,能力键 health.report.guheV2AsyncRoute) ====================
+
+    /** §6.1 上传响应新增键:报告格式(guhe / guhe_v2 / beijing / aidefansi) */
+    public static final String RESPONSE_KEY_REPORT_FORMAT = "reportFormat";
+
+    /** §6.1 上传响应新增键:解析方式(local / langgraph) */
+    public static final String RESPONSE_KEY_PARSE_METHOD = "parseMethod";
+
+    /** §6.1 collect/status 响应新增键:_解析自检(JSON) */
+    public static final String RESPONSE_KEY_PARSE_SELF_CHECK = "parseSelfCheck";
+
+    /** 解析方式值:LangGraph 异步解析(guhe_v2 一律走此通道) */
+    public static final String PARSE_METHOD_LANGGRAPH = "langgraph";
+
+    /** 解析方式值:Java 本地同步解析(旧版 guhe / beijing 既有路径) */
+    public static final String PARSE_METHOD_LOCAL = "local";
+
+    /** 报告格式值:谷禾 2026-11 新版 32 键报告(P0-2 自动切 upload-only + submitAsyncCollect 的识别标记) */
+    public static final String FORMAT_GUHE_V2 = ParsedReportResult.FORMAT_GUHE_V2;
+
     /**
      * LangGraph 服务地址(生产环境通过 application.yml 覆盖,避免 Docker 容器跨主机调用失败)
      * TODO(部署): 容器化部署时需确保 Java 上传目录(uploads/health-reports)
@@ -930,6 +950,14 @@ public class HealthReportController {
 
         try {
             ParsedReportResult parsed = pdfParseService.parse(file.getInputStream());
+
+            // P0-2(能力键 health.report.guheV2AsyncRoute):识别到 guhe_v2(谷禾 32 键新版)
+            // 自动切换为「仅上传 + 异步采集」(复用现有异步链路),Java 不做本地解析,
+            // 响应返回 draftId + parseMethod="langgraph",前端跳「解析中」等待页轮询 collect/status。
+            if (ParsedReportResult.FORMAT_GUHE_V2.equals(parsed.getReportFormat())) {
+                return routeGuheV2UploadOnly(file, userId, familyId, originalFilename);
+            }
+
             if (parsed.getOverallScore() == null && parsed.getGutHealthScore() == null) {
                 return Result.error("无法解析PDF文件,请确认是募极生物肠道菌群报告");
             }
@@ -992,6 +1020,10 @@ public class HealthReportController {
             detail.put("extractedReportNumber", parsed.getReportNumber());
             detail.put("extractedReportDate", parsed.getReportDate());
             detail.put("needBind", matchedMemberId == null);
+            // §6.1(能力键 health.report.guheV2AsyncRoute):上传响应新增 reportFormat / parseMethod 键。
+            // 非 guhe_v2 走 Java 本地同步解析(parseMethod="local");guhe_v2 分支在 routeGuheV2UploadOnly 返回。
+            detail.put(RESPONSE_KEY_REPORT_FORMAT, parsed.getReportFormat());
+            detail.put(RESPONSE_KEY_PARSE_METHOD, PARSE_METHOD_LOCAL);
             return Result.success(detail);
 
         } catch (IOException e) {
@@ -1000,6 +1032,68 @@ public class HealthReportController {
         }
     }
 
+    /**
+     * P0-2(能力键 {@code health.report.guheV2AsyncRoute}):guhe_v2 报告自动切「仅上传 + 异步采集」分支。
+     *
+     * <p>{@code uploadReport()} 识别到 guhe_v2(谷禾 32 键新版)后调用本方法:复用现有异步链路
+     * ({@code submitAsyncCollect} → LangGraph 携带 {@code reportFormatHint="guhe_v2"} 解析),
+     * <b>不</b>做 Java 本地解析。响应返回 draftId + parseMethod="langgraph",前端跳「解析中」等待页轮询。</p>
+     */
+    private Result<Map<String, Object>> routeGuheV2UploadOnly(MultipartFile file, Long userId, Long familyId,
+                                                             String originalFilename) {
+        try {
+            byte[] fileBytes = file.getBytes();
+            String fileHash = computeMd5(fileBytes);
+
+            // 去重:同一 MD5 已入库 → 返回既有报告;正在采集 → 返回既有草稿(与 upload-only 分支一致)
+            Long existingReportId = healthReportService.findReportIdByFileHash(fileHash, "gut_flora");
+            if (existingReportId != null) {
+                Map<String, Object> dup = new LinkedHashMap<>();
+                dup.put("duplicate", true);
+                dup.put("reportId", existingReportId);
+                dup.put("message", "该报告已上传过,无需重复解析");
+                dup.put(RESPONSE_KEY_REPORT_FORMAT, FORMAT_GUHE_V2);
+                dup.put(RESPONSE_KEY_PARSE_METHOD, PARSE_METHOD_LANGGRAPH);
+                return Result.success(dup);
+            }
+            Long collectingDraftId = healthReportService.findCollectingDraftIdByFileHash(fileHash);
+            if (collectingDraftId != null) {
+                Map<String, Object> dup = new LinkedHashMap<>();
+                dup.put("duplicate", true);
+                dup.put("draftId", collectingDraftId);
+                dup.put("collecting", true);
+                dup.put("message", "该报告正在解析中,请稍候");
+                dup.put(RESPONSE_KEY_REPORT_FORMAT, FORMAT_GUHE_V2);
+                dup.put(RESPONSE_KEY_PARSE_METHOD, PARSE_METHOD_LANGGRAPH);
+                return Result.success(dup);
+            }
+
+            String fileUrl = storageService.storeFile(file, "health-reports");
+            ParsedReportPayload.Payload emptyPayload = new ParsedReportPayload.Payload();
+            String payloadJson = objectMapper.writeValueAsString(emptyPayload);
+
+            HealthReportDraft draft = healthReportDraftService.createDraft(
+                    userId, familyId, "gut_flora", fileUrl, originalFilename, payloadJson, fileHash, null);
+
+            // 提交异步采集:LangGraph 携带 reportFormatHint="guhe_v2" 走 guhe_v2 专用提取器
+            reportCollectService.submitAsyncCollect(draft.getId());
+
+            Map<String, Object> result = new LinkedHashMap<>();
+            result.put("draftId", draft.getId());
+            result.put("fileUrl", fileUrl);
+            result.put("originalFilename", originalFilename);
+            result.put(RESPONSE_KEY_REPORT_FORMAT, FORMAT_GUHE_V2);
+            result.put(RESPONSE_KEY_PARSE_METHOD, PARSE_METHOD_LANGGRAPH);
+            result.put("parseStatus", ReportCollectService.STATUS_COLLECTING);
+            result.put("collecting", true);
+            log.info("guhe_v2 报告已切换为异步 LangGraph 解析 draftId={}, userId={}", draft.getId(), userId);
+            return Result.success(result);
+        } catch (IOException e) {
+            log.error("guhe_v2 报告异步路由失败", e);
+            return Result.error("报告上传失败: " + e.getMessage());
+        }
+    }
+
     /**
      * 两阶段入库 Phase 0: 仅上传文件,不解析。返回 draftId 和 fileUrl,
      * 供前端展示「开始解析」按钮并导航至确认页触发异步解析。
@@ -1174,9 +1268,32 @@ public class HealthReportController {
         result.put("parseError", draft.getParseError());
         result.put("reportId", draft.getConfirmedReportId());
         result.put("reportType", draft.getReportType());
+        // §6.1(能力键 health.report.guheV2AsyncRoute):collect/status 响应新增 parseSelfCheck
+        // (JSON,_解析自检)——透传草稿 collectValidation(guhe_v2 解析链路上游回填的自检信息)
+        result.put(RESPONSE_KEY_PARSE_SELF_CHECK, parseSelfCheckOf(draft));
         return Result.success(result);
     }
 
+    /**
+     * §6.1(能力键 {@code health.report.guheV2AsyncRoute}):解析自检(_解析自检)透传。
+     * <p>从草稿 {@code collectValidation}(JSON,含 typeId/expected/matched/pass/missing 及
+     * guhe_v2 解析链路回填的 通过/P0告警数/P1提示数/告警)反序列化返回;无自检数据时返回 null。</p>
+     */
+    private Map<String, Object> parseSelfCheckOf(HealthReportDraft draft) {
+        String validationJson = draft.getCollectValidation();
+        if (validationJson == null || validationJson.trim().isEmpty()) {
+            return null;
+        }
+        try {
+            @SuppressWarnings("unchecked")
+            Map<String, Object> selfCheck = objectMapper.readValue(validationJson, Map.class);
+            return selfCheck;
+        } catch (Exception e) {
+            log.warn("parseSelfCheck 反序列化失败 draftId={}: {}", draft.getId(), e.getMessage());
+            return null;
+        }
+    }
+
     /**
      * 查询当前用户所有"采集中"的草稿(供报告列表顶部展示采集进度)
      */

+ 33 - 1
cfc-backend/src/main/java/com/etotem/cfc/service/LangGraphReportParseService.java

@@ -35,6 +35,16 @@ public class LangGraphReportParseService {
     /** LangGraph 识别出的类型:无法识别 */
     public static final String DETECTED_GENERIC = "generic";
 
+    /**
+     * P0-2 请求字段键:报告格式提示(能力键 {@code health.report.guheV2AsyncRoute})。
+     * <p>方案 §三 P0-2 ②:{@code postParseWithReason()} 新增请求字段 {@code reportFormatHint},
+     * Python 侧 {@code report_parse_agent} 按此路由到 guhe_v2 专用提取器 {@code extract_guhe_v2}。</p>
+     */
+    public static final String REQUEST_KEY_REPORT_FORMAT_HINT = "reportFormatHint";
+
+    /** P0-2:reportFormatHint 取值——谷禾 2026-11 新版 32 键报告(guhe_v2 专用提取器路由) */
+    public static final String FORMAT_HINT_GUHE_V2 = "guhe_v2";
+
     @Resource
     @org.springframework.beans.factory.annotation.Qualifier("langGraphRestTemplate")
     private RestTemplate langGraphRestTemplate;
@@ -99,7 +109,16 @@ public class LangGraphReportParseService {
      * (如 "Read timed out"、http=500、空 data 等),供调用方登记重试与落库 parse_error。
      */
     public ParseOutcome parseByScriptWithReason(String pdfPath, List<String> indicators) {
-        HttpResult r = postParseWithReason("/api/v1/report/parse", pdfPath, indicators);
+        return parseByScriptWithReason(pdfPath, indicators, null);
+    }
+
+    /**
+     * 带失败原因 + 报告格式提示版本的脚本解析(P0-2,能力键 {@code health.report.guheV2AsyncRoute}):
+     * guhe_v2 报告传 {@link #FORMAT_HINT_GUHE_V2},请求体携带 {@link #REQUEST_KEY_REPORT_FORMAT_HINT},
+     * Python 侧 {@code report_parse_agent} 据此路由到 guhe_v2 专用提取器 {@code extract_guhe_v2}。
+     */
+    public ParseOutcome parseByScriptWithReason(String pdfPath, List<String> indicators, String reportFormatHint) {
+        HttpResult r = postParseWithReason("/api/v1/report/parse", pdfPath, indicators, reportFormatHint);
         if (r == null || r.data == null) {
             return ParseOutcome.failure(r != null && r.error != null ? r.error : "解析结果为空或无效");
         }
@@ -184,11 +203,24 @@ public class LangGraphReportParseService {
 
     /** 带失败原因版本的 LangGraph 调用(known-type 分支用于把失败原因写入 parse_error) */
     private HttpResult postParseWithReason(String path, String pdfPath, List<String> indicators) {
+        return postParseWithReason(path, pdfPath, indicators, null);
+    }
+
+    /**
+     * 带报告格式提示的 LangGraph 请求体构建(P0-2 落点②):
+     * {@code reportFormatHint} 非空时写入 {@link #REQUEST_KEY_REPORT_FORMAT_HINT},
+     * 使 Python 侧按 {@code reportFormatHint="guhe_v2"} 选择 guhe_v2 专用提取器。
+     */
+    private HttpResult postParseWithReason(String path, String pdfPath, List<String> indicators,
+                                          String reportFormatHint) {
         Map<String, Object> body = new HashMap<>();
         body.put("file_path", pdfPath);
         if (indicators != null && !indicators.isEmpty()) {
             body.put("indicators", indicators);
         }
+        if (reportFormatHint != null && !reportFormatHint.isEmpty()) {
+            body.put(REQUEST_KEY_REPORT_FORMAT_HINT, reportFormatHint);
+        }
         return postParseWithReason(path, body);
     }
 

+ 37 - 4
cfc-backend/src/main/java/com/etotem/cfc/service/PdfParseService.java

@@ -11,6 +11,8 @@ import org.apache.pdfbox.pdmodel.PDDocument;
 import org.apache.pdfbox.text.PDFTextStripper;
 import org.springframework.stereotype.Service;
 
+import java.io.File;
+import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.ArrayList;
@@ -162,11 +164,18 @@ public class PdfParseService {
      * 解析 PDF 输入流,返回结构化的报告数据
      */
     public ParsedReportResult parse(InputStream inputStream) throws IOException {
+        return parseText(extractText(inputStream));
+    }
+
+    /**
+     * 提取 PDF 全文文本(P0-2 路由前置:guhe_v2 指纹判定需要全文文本)。
+     * {@link #parse(InputStream)} 与 {@link #detectGuheV2InPdf(String)} 复用此提取步骤。
+     */
+    public String extractText(InputStream inputStream) throws IOException {
         try (PDDocument document = PDDocument.load(inputStream)) {
             PDFTextStripper stripper = new PDFTextStripper();
             stripper.setSortByPosition(true);
-            String fullText = stripper.getText(document);
-            return parseText(fullText);
+            return stripper.getText(document);
         }
     }
 
@@ -193,7 +202,8 @@ public ParsedReportResult parseText(String fullText) {
 
         // 2.5 T7 guhe_v2 指纹路由:判定链 aidefansi→beijing→guhe_v2→standard。
         //     beijing 之后命中 T7 触发词 → 路由到 guhe_v2(谷禾新版 32 键)提取管线
-        if (detectGuheV2Route(normalized)) {
+        boolean isGuheV2 = detectGuheV2Route(normalized);
+        if (isGuheV2) {
             log.debug("PDF 检测格式: {}(32 键新版,沿用谷禾解析管线)", ROUTE_STAGE_GUHE_V2);
         }
 
@@ -221,7 +231,9 @@ public ParsedReportResult parseText(String fullText) {
         } else {
             parseTripletReport(lineList, result);
         }
-        result.setReportFormat("guhe");
+        // P0-1(guhe.l1.guheV2Route / S-cfc-90):guhe_v2(32 键新版)与旧 21 键区分版本标记,
+        // 供上层(uploadReport P0-2 异步路由 / ReportParserDispatchService 版本分流)识别
+        result.setReportFormat(isGuheV2 ? ParsedReportResult.FORMAT_GUHE_V2 : "guhe");
 
         // 6. 解析食材推荐(格式无关)
         List<ParsedFoodSuitability> foodSuitability = parseFoodSuitability(normalized);
@@ -295,6 +307,27 @@ public ParsedReportResult parseText(String fullText) {
                 || text.contains(GUHE_V2_TRIGGER_SUBHEALTH_DIET);
     }
 
+    /**
+     * guhe_v2 指纹路由探针(P0-2,能力键 {@code health.report.guheV2AsyncRoute}):
+     * 读取 PDF 全文(文件路径)并做 guhe_v2 指纹判定(触发词锚点 + Kangxi 归一化)。
+     * 命中 → 调用方应走 LangGraph 异步解析(Java 无 guhe_v2 能力,不做本地解析)。
+     *
+     * @param pdfPath 已落盘的 PDF 文件路径
+     * @return true = 命中 guhe_v2 指纹,应路由到 langgraph(reportFormatHint="guhe_v2")
+     */
+    public boolean detectGuheV2InPdf(String pdfPath) {
+        if (pdfPath == null) {
+            return false;
+        }
+        try (FileInputStream fis = new FileInputStream(new File(pdfPath))) {
+            String text = extractText(fis);
+            return text != null && detectGuheV2Route(normalizeChinese(text));
+        } catch (Exception e) {
+            log.warn("guhe_v2 指纹路由探测失败 pdfPath={}: {}", pdfPath, e.getMessage());
+            return false;
+        }
+    }
+
     /**
      * guhe_v2 32 键自检入口(T7 键数自检,§2.1:旧 21 键打底 + 11 增量键 = 32 键)。
      * 校验 guhe_v2 路由要素自洽——判定链完整声明 guhe_v2 阶段,且三个触发词锚点均已暴露;

+ 61 - 0
cfc-backend/src/main/java/com/etotem/cfc/service/ReportCollectService.java

@@ -3,6 +3,7 @@ package com.etotem.cfc.service;
 import com.etotem.cfc.common.Result;
 import com.etotem.cfc.dto.DanReportUploadVO;
 import com.etotem.cfc.dto.ParsedReportPayload;
+import com.etotem.cfc.dto.ParsedReportResult;
 import com.etotem.cfc.entity.*;
 import com.etotem.cfc.mapper.DanReportUploadMapper;
 import com.etotem.cfc.mapper.FamilyMemberMapper;
@@ -87,6 +88,10 @@ public class ReportCollectService {
     @Resource
     private DanReportUploadService danReportUploadService;
 
+    /** P0-2(health.report.guheV2AsyncRoute):guhe_v2 指纹路由探针(PDF 全文 → guhe_v2 判定) */
+    @Resource
+    private PdfParseService pdfParseService;
+
     /** 未知聚类(S-cfc-363 / RED-2):解析失败/未知格式报告进入「未知聚类」人工标注池 */
     @Resource
     private ReportUnknownClusterMapper unknownClusterMapper;
@@ -139,6 +144,19 @@ public class ReportCollectService {
     public static final String STATUS_COMPLETED = "completed";
     public static final String STATUS_FAILED = "failed";
 
+    /**
+     * P0-2(能力键 {@code health.report.guheV2AsyncRoute}):guhe_v2 报告格式标记
+     * (谷禾 2026-11 新版 32 键)。guhe_v2 报告一律走 LangGraph 异步解析,Java 侧不再尝试本地解析。
+     */
+    public static final String FORMAT_GUHE_V2 = ParsedReportResult.FORMAT_GUHE_V2;
+
+    /**
+     * P0-2 回退红线:guhe_v2 异步解析失败的用户通知(Java 无 guhe_v2 能力,不做 Java 本地兜底,
+     * 直接标记 parse_error 并通知用户「该报告格式暂不支持在线解析,可稍后重试或联系服务号」)。
+     */
+    public static final String GUHE_V2_NO_LOCAL_FALLBACK_NOTICE =
+            "该报告格式暂不支持在线解析,可稍后重试或联系服务号";
+
     /**
      * 提交异步采集任务。上传完成后调用,立即返回。
      */
@@ -181,6 +199,13 @@ public class ReportCollectService {
                 return;
             }
 
+            // P0-2(能力键 health.report.guheV2AsyncRoute):guhe_v2(谷禾 32 键新版)一律走
+            // LangGraph 异步解析,Java 不再尝试本地解析——失败标记 parse_error + 用户提示,不回退 opencode。
+            if (pdfParseService.detectGuheV2InPdf(pdfPath)) {
+                collectGuheV2ByLangGraph(draftId, draft, pdfPath);
+                return;
+            }
+
             // 指纹判定
             Map<String, Object> fp = fingerprintService.detect(pdfPath, draft.getOriginalFilename());
             String typeId = (String) fp.get("typeId");
@@ -292,6 +317,42 @@ public class ReportCollectService {
         }
     }
 
+    /**
+     * P0-2(能力键 {@code health.report.guheV2AsyncRoute}):guhe_v2 报告的 LangGraph 异步解析分支。
+     *
+     * <p>方案 §三 P0-2:guhe_v2(谷禾 32 键新版)一律走 LangGraph,请求体携带
+     * {@code reportFormatHint="guhe_v2"},Python 侧路由到 {@code extract_guhe_v2} 专用提取器。
+     * <b>回退红线</b>:解析失败<b>不</b>做 Java 本地兜底(Java 无 guhe_v2 能力),直接标记
+     * parse_error 并通知用户「该报告格式暂不支持在线解析,可稍后重试或联系服务号」。</p>
+     */
+    private void collectGuheV2ByLangGraph(Long draftId, HealthReportDraft draft, String pdfPath) {
+        List<String> expectedIndicators = loadExpectedIndicators(draft.getReportType());
+        LangGraphReportParseService.ParseOutcome outcome = langGraphReportParseService.parseByScriptWithReason(
+                pdfPath, expectedIndicators, LangGraphReportParseService.FORMAT_HINT_GUHE_V2);
+        ParsedReportPayload.Payload payload = outcome != null ? outcome.getPayload() : null;
+        if (payload == null) {
+            String reason = outcome != null && outcome.getError() != null
+                    ? outcome.getError() : "解析结果为空或无效";
+            log.warn("guhe_v2 异步解析失败(不做 Java 本地兜底)draftId={}, reason={}", draftId, reason);
+            healthReportDraftService.markCollectFailed(draftId, GUHE_V2_NO_LOCAL_FALLBACK_NOTICE + "(" + reason + ")");
+            return;
+        }
+        harmReportPayloadValid(payload);
+        try {
+            healthReportDraftService.updateParseMethod(draftId, METHOD_LANGGRAPH_SCRIPT);
+            healthReportDraftService.updatePayload(draftId, objectMapper.writeValueAsString(payload));
+            if (!healthReportDraftService.tryClaimInsertSlot(draftId)) {
+                log.warn("草稿插入槽位已被抢占或已入库,跳过重复入库 draftId={}", draftId);
+                return;
+            }
+            insertReport(draft, payload);
+            log.info("guhe_v2 异步采集完成 draftId={}, method={}", draftId, METHOD_LANGGRAPH_SCRIPT);
+        } catch (Exception e) {
+            log.error("guhe_v2 异步采集失败 draftId={}", draftId, e);
+            healthReportDraftService.markCollectFailed(draftId, GUHE_V2_NO_LOCAL_FALLBACK_NOTICE + "(" + e.getMessage() + ")");
+        }
+    }
+
     /**
      * DAN 家族报告采集:指纹识别到 dan_* 类型(如 dan_a2)后走 Java 同步解析 + DAN 入库。
      * 复用 DanReportUploadService.confirmUpload(@Transactional:result 入库 / 展示块 / 汇总 / 五维刷新 / 自动方案),