|
|
|
@ -1114,7 +1114,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
|
return new HXResponse("9999","请求参数为空!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// TODO: 2023/10/28 机动车处理
|
|
|
|
|
// TODO: 2023/10/28 机动车加密导出路径配置
|
|
|
|
|
exportVehicleDTO.setSavePath("C:\\test\\fileDownload\\"); |
|
|
|
|
|
|
|
|
|
// 发起请求
|
|
|
|
@ -1200,12 +1200,20 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
|
} |
|
|
|
|
// InputStream is = new ByteArrayInputStream(fileStream.getBytes());
|
|
|
|
|
|
|
|
|
|
CompanyserviceProp qyjc = companyserviceProp.selectPropByKey(companyservice.getCompanyid(), "aisino_qyjc"); |
|
|
|
|
if(qyjc == null || StrUtil.isEmpty(qyjc.getValue())){ |
|
|
|
|
return new HXResponse("9999","重汽推送企业简称未设置!"); |
|
|
|
|
} |
|
|
|
|
CompanyserviceProp zdr = companyserviceProp.selectPropByKey(companyservice.getCompanyid(), "aisino_zdr"); |
|
|
|
|
if(zdr == null || StrUtil.isEmpty(zdr.getValue())){ |
|
|
|
|
return new HXResponse("9999","重汽推送制单人未设置!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 调用重汽的推送接口
|
|
|
|
|
HashMap<String, Object> paramMap = new HashMap<>(); |
|
|
|
|
paramMap.put("file", file); |
|
|
|
|
// TODO: 2023/10/25 调整成可配置的简称
|
|
|
|
|
paramMap.put("qyjc", companyservice.getSellertax()); |
|
|
|
|
paramMap.put("zdr", companyservice.getCompanyid()); |
|
|
|
|
paramMap.put("qyjc", qyjc.getValue()); |
|
|
|
|
paramMap.put("zdr", zdr.getValue()); |
|
|
|
|
|
|
|
|
|
CompanyserviceProp pushUrl = companyserviceProp.selectPropByKey(companyservice.getCompanyid(), "aisino_upload_url"); |
|
|
|
|
if (pushUrl == null || StrUtil.isEmpty(pushUrl.getValue())) { |
|
|
|
|