From 6de6bb0fc1bf4cd5535e33484ad96b0f273b2b9b Mon Sep 17 00:00:00 2001 From: zhangfeng <1603559716@qq.com> Date: 星期二, 27 九月 2022 18:05:47 +0800 Subject: [PATCH] 新增根据ids查询应急物资的Rpc接口 --- safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java index c06d0bd..56d1879 100644 --- a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java +++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java @@ -110,6 +110,9 @@ public ResultVO errorHandler(Exception e) { e.printStackTrace(); logger.error(e.getMessage()); - return new ResultVO(ResultCodes.SERVER_ERROR); + ResultVO resultVO = new ResultVO<>(); + resultVO.setCode(ResultCodes.SERVER_ERROR.getCode()); + return resultVO; +// return new ResultVO(ResultCodes.SERVER_ERROR); } } -- Gitblit v1.9.2