From 811eb10f96ae98d263012e62de9fd668bdd37538 Mon Sep 17 00:00:00 2001 From: yefei Date: Wed, 3 May 2023 14:32:11 +0800 Subject: [PATCH] =?UTF-8?q?ariesy=20=E8=A7=A3=E5=86=B3=E9=9D=9E=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=A8=8E=E5=8F=B7=E6=9F=A5=E9=AA=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/dxhy/core/util/InvoiceQueryUtil.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dxhy-core/src/main/java/com/dxhy/core/util/InvoiceQueryUtil.java b/dxhy-core/src/main/java/com/dxhy/core/util/InvoiceQueryUtil.java index f0aa057e..b2472ff8 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/util/InvoiceQueryUtil.java +++ b/dxhy-core/src/main/java/com/dxhy/core/util/InvoiceQueryUtil.java @@ -152,9 +152,11 @@ public class InvoiceQueryUtil { // 通过税号获取id和key log.info("查验一张发票信息税号为 taxNo{}",taxNo); TAcOrg tacOrg = confirmDao.findIdAndKeyByTaxno(taxNo); - if(enterprisePermissionFlag){ - secretId = tacOrg.getAceId(); - secretKey = tacOrg.getAceKey(); + if(tacOrg != null) { + if (enterprisePermissionFlag) { + secretId = tacOrg.getAceId(); + secretKey = tacOrg.getAceKey(); + } } try { InvoiceUtil iu = new InvoiceUtil(invoiceCode);