|
|
|
@ -108,7 +108,7 @@ public class InvoiceBackTask { |
|
|
|
|
invoice = new Invoice(); |
|
|
|
|
invoice.setOutTradeOrderno(invoiceBack.getSystemOrderno()); |
|
|
|
|
invoice.setState(22); |
|
|
|
|
invoice.setMessage(invoiceBack.getResultMsg() != null ? invoiceBack.getResultMsg().substring(0, 200) : ""); |
|
|
|
|
invoice.setMessage((invoiceBack.getResultMsg() != null && invoiceBack.getResultMsg().length() > 200) ? invoiceBack.getResultMsg().substring(0, 200) : invoiceBack.getResultMsg() ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
@ -228,7 +228,7 @@ public class InvoiceBackTask { |
|
|
|
|
invoiceBack.setBackMsg("id为空"); |
|
|
|
|
invoiceBack.setUpdateTime(new Date()); |
|
|
|
|
invoiceBackMapper.updateInvoiceBack(invoiceBack); |
|
|
|
|
break; |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.info("【重汽回调】订单号{},开始回调", id); |
|
|
|
@ -242,7 +242,7 @@ public class InvoiceBackTask { |
|
|
|
|
invoiceBack.setBackMsg("未配置回调地址"); |
|
|
|
|
invoiceBack.setUpdateTime(new Date()); |
|
|
|
|
invoiceBackMapper.updateInvoiceBack(invoiceBack); |
|
|
|
|
break; |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String callBackUrl = secretIdProp.getValue(); |
|
|
|
@ -254,8 +254,8 @@ public class InvoiceBackTask { |
|
|
|
|
invoice = new Invoice(); |
|
|
|
|
invoice.setOutTradeOrderno(invoiceBack.getSystemOrderno()); |
|
|
|
|
invoice.setState(22); |
|
|
|
|
invoice.setMessage(invoiceBack.getResultMsg() != null ? invoiceBack.getResultMsg().substring(0, 200) : ""); |
|
|
|
|
break; |
|
|
|
|
invoice.setMessage( (invoiceBack.getResultMsg() != null && invoiceBack.getResultMsg().length() > 200) ? invoiceBack.getResultMsg().substring(0, 200) : invoiceBack.getResultMsg() ); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
@ -284,7 +284,7 @@ public class InvoiceBackTask { |
|
|
|
|
invoiceBack.setUpdateTime(new Date()); |
|
|
|
|
invoiceBackMapper.updateInvoiceBack(invoiceBack); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.info("【控制台】发票回调接口,发送数据异常,id={}", id); |
|
|
|
|