From da9c3c4360faf6ba17c209581beaa2f00af645b9 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Thu, 2 Feb 2023 15:35:51 +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 --- src/main/java/com/glxp/api/http/ErpBasicClient.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/glxp/api/http/ErpBasicClient.java b/src/main/java/com/glxp/api/http/ErpBasicClient.java index 0ec395fa..122cbbd8 100644 --- a/src/main/java/com/glxp/api/http/ErpBasicClient.java +++ b/src/main/java/com/glxp/api/http/ErpBasicClient.java @@ -158,7 +158,12 @@ public class ErpBasicClient { BaseResponse> udiDlDeviceResponse = JSONObject.parseObject(response, new TypeReference>>() { }); - return udiDlDeviceResponse; + if(udiDlDeviceResponse!=null){ + return udiDlDeviceResponse; + }else{ + return ResultVOUtils.error(500, "查询第三方数据失败!"); + } + } catch (Exception e) { log.error("获取单据类型异常", e); return ResultVOUtils.error(500, "连接第三方系统接口服务出错!");