|
|
|
@ -944,7 +944,8 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
|
|
|
|
|
|
List<CompanyserviceDetail> companyserviceDetailList = companyservice.getCompanyserviceDetailList(); |
|
|
|
|
if (CollectionUtils.isEmpty(companyserviceDetailList) || StrUtil.isEmpty(companyserviceDetailList.get(0).getGoldenTaxDiskNo())) { |
|
|
|
|
throw new JianshuiServiceException("金税盘编号未配置,请联系管理员!"); |
|
|
|
|
// throw new JianshuiServiceException("金税盘编号未配置,请联系管理员!");
|
|
|
|
|
return new HXResponse("9999", "金税盘编号未配置,请联系管理员!"); |
|
|
|
|
} |
|
|
|
|
String goldenTaxDiskNo = companyserviceDetailList.get(0).getGoldenTaxDiskNo(); |
|
|
|
|
String fjh = companyserviceDetailList.get(0).getFjh(); |
|
|
|
@ -977,12 +978,14 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("【销项发票】【总部控制台接口】【红字申请表下载】发票请求异常,请求报文{},销方信息{}", "", JSONObject.toJSONString(companyservice)); |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
throw new JianshuiServiceException("系统异常!"); |
|
|
|
|
// throw new JianshuiServiceException("系统异常!");
|
|
|
|
|
return new HXResponse("9999", "系统异常!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//返回报文解析
|
|
|
|
|
if (ajaxResult.isError()) { |
|
|
|
|
throw new JianshuiServiceException(ajaxResult.getMsg()); |
|
|
|
|
// throw new JianshuiServiceException(ajaxResult.getMsg());
|
|
|
|
|
return new HXResponse("9999", ajaxResult.getMsg()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 控制台和文档不一样*/ |
|
|
|
|