|
|
|
@ -997,17 +997,21 @@ public class AisinoConsoleInvoiceApiServiceImpl implements IInvoiceApiService { |
|
|
|
|
public HXResponse exportVehicleInvoice(JSONObject decryptResult, Companyservice companyservice) { |
|
|
|
|
|
|
|
|
|
// TODO: 2023/10/10 机动车
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* { |
|
|
|
|
* "SavePath":"C://", |
|
|
|
|
* "FPZL":"", |
|
|
|
|
* "KSRQ":"", |
|
|
|
|
* "StrGuid":"" |
|
|
|
|
* } |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
/*// 发起请求
|
|
|
|
|
// 发起请求
|
|
|
|
|
AjaxResult ajaxResult = null; |
|
|
|
|
try { |
|
|
|
|
//hutool的beancopy别名会与JSONUTIl冲突
|
|
|
|
|
Map<String, Object> map = BeanToMapUtils.fastJsonBean2Map(aisinoConsoleInvoiceAddDTO); |
|
|
|
|
map.put("invoiceItems", listMap); |
|
|
|
|
ajaxResult = AisinoConsoleUtil.sendRequest(AisinoConsoleConstants.INVOICE_ADD, JSONUtil.parse(map), companyservice); |
|
|
|
|
ajaxResult = AisinoConsoleUtil.sendRequest(AisinoConsoleConstants.VEHIC, JSONUtil.parse(decryptResult), companyservice); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("【销项发票】【总部控制台接口】【发票开具】发票请求异常,请求报文{},销方信息{}", JSONUtil.parse(aisinoConsoleInvoiceAddDTO).toString(), JSONObject.toJSONString(companyservice)); |
|
|
|
|
log.error("【销项发票】【总部控制台接口】【机动车加密】发票请求异常,请求报文{},销方信息{}", JSONUtil.parse(decryptResult).toString(), JSONObject.toJSONString(companyservice)); |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
throw new JianshuiServiceException("系统异常!"); |
|
|
|
|
} |
|
|
|
@ -1020,9 +1024,14 @@ public class AisinoConsoleInvoiceApiServiceImpl implements IInvoiceApiService { |
|
|
|
|
|
|
|
|
|
cn.hutool.json.JSONObject resultJSON = JSONUtil.parseObj(ajaxResult.get("data")); |
|
|
|
|
String retcode = resultJSON.get("retcode") != null ? resultJSON.get("retcode").toString() : ""; |
|
|
|
|
String retmsg = resultJSON.get("retmsg") != null ? resultJSON.get("retmsg").toString() : "";*/ |
|
|
|
|
String retmsg = resultJSON.get("retmsg") != null ? resultJSON.get("retmsg").toString() : ""; |
|
|
|
|
|
|
|
|
|
if("0".equals(retcode)){ |
|
|
|
|
return new HXResponse("0000","导出成功!"); |
|
|
|
|
}else { |
|
|
|
|
return new HXResponse("9999","导出失败、发票不存在!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|