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);//单据号