Merge remote-tracking branch 'origin/beta-prop-all' into beta-prop-all

jianshui-ui
路明慧 1 year ago
commit 6938889762
  1. 2
      jianshui-admin/src/main/resources/application-prod.yml
  2. 2
      jianshui-admin/src/main/resources/application.yml
  3. 12
      jianshui-invoice/src/main/java/com/jianshui/invoice/task/InvoiceBackTask.java

@ -90,7 +90,7 @@ elephant_invoice_file: http://dev.goldentaxcloud.com:8081/invoice/fileUrl/
ele_url_v6: https:// ele_url_v6: https://
# 大象纸票服务对应平台地址 # 大象纸票服务对应平台地址
ele_url: http://140.143.226.17:8087/order-api ele_url: http://140.143.226.17:8087/order-api
ele_url_qz: https://openapi.ele-cloud.com/api/ ele_url_qz: https://openapi.zncspt.com/api/authen/token
#logstash: #logstash:
# host: 43.138.58.64:14560 # host: 43.138.58.64:14560
# indexname: jianshui-prod # indexname: jianshui-prod

@ -46,7 +46,7 @@ spring:
# 国际化资源文件路径 # 国际化资源文件路径
basename: i18n/messages basename: i18n/messages
profiles: profiles:
active: dev active: prod
# 文件上传 # 文件上传
servlet: servlet:
multipart: multipart:

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

Loading…
Cancel
Save