|
|
|
@ -302,7 +302,7 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
|
} else if ("2".equals(jdcbz)) { |
|
|
|
|
aisinoConsoleInvoiceAddDTO.setJDCBZ("1"); |
|
|
|
|
} else { |
|
|
|
|
aisinoConsoleInvoiceAddDTO.setJDCBZ("2"); |
|
|
|
|
aisinoConsoleInvoiceAddDTO.setJDCBZ("0"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//hutool的beancopy别名会与JSONUTIl冲突
|
|
|
|
@ -458,17 +458,20 @@ public class AisinoConsoleInvoiceApiZhongQiServiceImpl implements IInvoiceApiSer |
|
|
|
|
Invoice invoice = invoiceMapper.selectInvoiceById(id); |
|
|
|
|
if (invoice == null) { |
|
|
|
|
log.info("【控制台】发票信息未查询到,id={}", id); |
|
|
|
|
invoice = new Invoice(); |
|
|
|
|
invoice.setOutTradeOrderno(invoiceBack.getSystemOrderno()); |
|
|
|
|
invoice.setState(22); |
|
|
|
|
invoice.setMessage(invoiceBack.getResultMsg()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
cn.hutool.json.JSONObject jsonResult = new cn.hutool.json.JSONObject(); |
|
|
|
|
jsonResult.set("status", invoiceBack.getResultCode()); |
|
|
|
|
jsonResult.set("message", invoiceBack.getResultMsg()); |
|
|
|
|
jsonResult.set("data", invoice); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
/*cn.hutool.json.JSONObject jsonResult = new cn.hutool.json.JSONObject(); |
|
|
|
|
jsonResult.set("status", invoiceBack.getResultCode()); |
|
|
|
|
jsonResult.set("message", invoiceBack.getResultMsg()); |
|
|
|
|
jsonResult.set("data", invoice);*/ |
|
|
|
|
|
|
|
|
|
log.info("【控制台】发票回调接口,发送数据开始,id={}", id); |
|
|
|
|
String result = HttpUtil.post(callBackUrl, JSONUtil.toJsonStr(jsonResult)); |
|
|
|
|
log.info("【控制台】发票回调接口,发送数据开始,id={},callBackUrl={},param={}", id,callBackUrl,JSONUtil.toJsonStr(invoice)); |
|
|
|
|
String result = HttpUtil.post(callBackUrl, JSONUtil.toJsonStr(invoice)); |
|
|
|
|
log.info("【控制台】发票回调接口,发送数据结束,id={},接口返回信息={}", id, result); |
|
|
|
|
|
|
|
|
|
cn.hutool.json.JSONObject jsonObject = JSONUtil.parseObj(result); |
|
|
|
|