From 1d1d54fcd3c8408ad904ae34767c82a2fad72a40 Mon Sep 17 00:00:00 2001 From: yinhuaiwei Date: Fri, 9 Jan 2026 15:18:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=A7=E6=A8=A1=E5=9E=8B=E7=AE=97?= =?UTF-8?q?=E6=B3=95=E6=96=B0=E5=A2=9E=E6=97=A0=E4=BA=BA=E6=9C=BA=E8=A1=A8?= =?UTF-8?q?=E8=AE=A1gis=5Fmeter2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/core/constant/AlgConstants.java | 21 +++++++++++++++++++ .../impl/AnalyseResponseServiceImpl.java | 14 +------------ 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/inspect-base/inspect-base-core/src/main/java/com/inspect/base/core/constant/AlgConstants.java b/inspect-base/inspect-base-core/src/main/java/com/inspect/base/core/constant/AlgConstants.java index 1b2377d..9d95181 100644 --- a/inspect-base/inspect-base-core/src/main/java/com/inspect/base/core/constant/AlgConstants.java +++ b/inspect-base/inspect-base-core/src/main/java/com/inspect/base/core/constant/AlgConstants.java @@ -1,5 +1,8 @@ package com.inspect.base.core.constant; +import java.util.Arrays; +import java.util.List; + public class AlgConstants { public static final String METER = "meter"; public static final String GIS_METER_2 = "gis_meter2"; @@ -11,4 +14,22 @@ public class AlgConstants { public static final String XB = "xb"; public static final String ALG_SUBTYPE_CODE = "alg_subtype_code"; + + /** + * 需要走大模型的算法 + */ + public static final List BIG_MODEL_ALG_LIST = Arrays.asList( + METER, + XB, + INFRA_1800, + INFRA_YU3, + INFRA_CAMERA, + INFRA_CAMERA_REVERSE, + INFRARED2, + "isolator", + "gis_meter", + "correction", + "switch", + GIS_METER_2 + ); } diff --git a/inspect-main/inspect-main-task/src/main/java/com/inspect/analysis/service/impl/AnalyseResponseServiceImpl.java b/inspect-main/inspect-main-task/src/main/java/com/inspect/analysis/service/impl/AnalyseResponseServiceImpl.java index 034fdc3..ce78049 100644 --- a/inspect-main/inspect-main-task/src/main/java/com/inspect/analysis/service/impl/AnalyseResponseServiceImpl.java +++ b/inspect-main/inspect-main-task/src/main/java/com/inspect/analysis/service/impl/AnalyseResponseServiceImpl.java @@ -178,19 +178,7 @@ public class AnalyseResponseServiceImpl implements IAnalyseResponseService { bDefect, analyseResPoint.getType(), algType); - if (bDefect || (AlgConstants.METER.equals(algType) - || AlgConstants.XB.equals(algType) - || AlgConstants.INFRA_1800.equals(algType) - || AlgConstants.INFRA_YU3.equals(algType) - || AlgConstants.INFRA_CAMERA.equals(algType) - || AlgConstants.INFRA_CAMERA_REVERSE.equals(algType) - || AlgConstants.INFRARED2.equals(algType) - || "isolator".equals(algType) - || "gis_meter".equals(algType) - || "correction".equals(algType) - || "switch".equals(algType) - ) - ) { + if (bDefect || AlgConstants.BIG_MODEL_ALG_LIST.contains(algType)) { /* * 先检查结果有缺无缺陷,如果有缺陷不用判断算法直接调用大模型;* * 如果无缺陷,再去判断算法,如果算法是meter, infrared就继续调用大模型。*