From e2f10c1bad1af9914eb6a5457e3b4f240f159c6e Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Wed, 20 Nov 2024 16:42:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java index 79cca7e11..5343ce73a 100644 --- a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java +++ b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java @@ -174,7 +174,7 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { @Override public void handleExternalThrInvPhOrder(FilterInvProductRequest filterInvProductRequest) { BaseResponse> baseResponse = erpInvClient.getInvPhResult(filterInvProductRequest); - if (baseResponse.getCode() == 20000) { + if (baseResponse!= null && baseResponse.getCode() == 20000) { List list = baseResponse.getData().getList(); if (CollectionUtil.isNotEmpty(list)) { String billNo = generateBillNo(filterInvProductRequest);//单据号