获取企业档案优化

beta-enc
kk 2 years ago
parent 4867b88fc2
commit 796b8df455
  1. 8
      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);

Loading…
Cancel
Save