From 796b8df455e1640262fca7be07df3f6e09571828 Mon Sep 17 00:00:00 2001 From: kk <1910333201@qq.com> Date: Wed, 27 Sep 2023 17:37:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=BC=81=E4=B8=9A=E6=A1=A3?= =?UTF-8?q?=E6=A1=88=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jianshui/income/service/impl/EleAuthInvoiceImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jianshui-income/src/main/java/com/jianshui/income/service/impl/EleAuthInvoiceImpl.java b/jianshui-income/src/main/java/com/jianshui/income/service/impl/EleAuthInvoiceImpl.java index e360486..f1b64e9 100644 --- a/jianshui-income/src/main/java/com/jianshui/income/service/impl/EleAuthInvoiceImpl.java +++ b/jianshui-income/src/main/java/com/jianshui/income/service/impl/EleAuthInvoiceImpl.java @@ -733,6 +733,14 @@ public class EleAuthInvoiceImpl implements IAuthInvoice { log.error("【进项服务类】【大象】【获取企业档案】API请求异常,大象外部报文返回code非0000。错误信息:{}", e.getMessage()); return AjaxResult.error(ErrorCode.INCOME_ERROR); } + + String ztdm = resp.getString("ZTDM") != null ? resp.getString("ZTDM") : ""; + String ztxx = resp.getString("ZTXX") != null ? resp.getString("ZTXX") : ""; + if(!"0000".equals(ztdm)){ + log.info("【进项服务类】【大象】【获取企业档案】API请求返回错误,ZTDM={},ZTXX={}",ztdm,ztxx); + return AjaxResult.error(200000,"进项错误!"); + } + GetCompanyInfoVO getCompanyInfoVO = BeanUtil.copyProperties(resp, GetCompanyInfoVO.class); IncomeInvoiceAuthEnterpriseArchives enterpriseArchives = BeanUtil.copyProperties(getCompanyInfoVO, IncomeInvoiceAuthEnterpriseArchives.class);