From 9597a27c76617e8963d3d63c9e87b4dd6fa5cf6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E6=9C=A8c?= <857448963@qq.com> Date: Mon, 6 Nov 2023 10:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commApi/fallback/CommLineClientFallbackFactory.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pqs-device/common-device-biz/src/main/java/com/njcn/device/biz/commApi/fallback/CommLineClientFallbackFactory.java b/pqs-device/common-device-biz/src/main/java/com/njcn/device/biz/commApi/fallback/CommLineClientFallbackFactory.java index 9ac54306c..842e9a5fd 100644 --- a/pqs-device/common-device-biz/src/main/java/com/njcn/device/biz/commApi/fallback/CommLineClientFallbackFactory.java +++ b/pqs-device/common-device-biz/src/main/java/com/njcn/device/biz/commApi/fallback/CommLineClientFallbackFactory.java @@ -10,6 +10,8 @@ import feign.hystrix.FallbackFactory; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; +import java.util.List; + /** * 公共 * @author cdf @@ -35,6 +37,12 @@ public class CommLineClientFallbackFactory implements FallbackFactory> getLineDetailBatch(List ids) { + log.error("{}异常,降级处理,异常为:{}", "批量获取监测点信息", throwable.toString()); + throw new BusinessException(finalExceptionEnum); + } + }; } }