|
|
@ -11,6 +11,7 @@ import com.dxhy.common.constant.DbConstant; |
|
|
|
import com.dxhy.common.controller.AbstractController; |
|
|
|
import com.dxhy.common.controller.AbstractController; |
|
|
|
import com.dxhy.common.datasource.config.DynamicContextHolder; |
|
|
|
import com.dxhy.common.datasource.config.DynamicContextHolder; |
|
|
|
import com.dxhy.common.enums.SNFplxEnum; |
|
|
|
import com.dxhy.common.enums.SNFplxEnum; |
|
|
|
|
|
|
|
import com.dxhy.common.exception.BaseException; |
|
|
|
import com.dxhy.common.util.InvoiceUtil; |
|
|
|
import com.dxhy.common.util.InvoiceUtil; |
|
|
|
import com.dxhy.common.utils.Base64Encoding; |
|
|
|
import com.dxhy.common.utils.Base64Encoding; |
|
|
|
import com.dxhy.common.utils.R; |
|
|
|
import com.dxhy.common.utils.R; |
|
|
@ -135,7 +136,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
data.put("data", checkInvoiceResult); |
|
|
|
data.put("data", checkInvoiceResult); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord, 0,0, JSONObject.toJSONString(data)); |
|
|
|
requestRecordService.saveSuccessfulRequestRecord(singleInvoiceCheckRecord, JSONObject.toJSONString(data)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -154,7 +155,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
if (StringUtils.isBlank(pramsMap.get("invoiceNumber"))) { |
|
|
|
if (StringUtils.isBlank(pramsMap.get("invoiceNumber"))) { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(R.error("发票号码不能为空!")),0); |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord,0,JSONObject.toJSONString(R.error("发票号码不能为空!")), "发票号码不能为空!"); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -173,7 +174,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(R.error("开票日期不能为空!")), 0); |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord,0, |
|
|
|
|
|
|
|
JSONObject.toJSONString(R.error("开票日期不能为空!")), "开票日期不能为空!"); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -185,8 +187,9 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
if (StringUtils.isBlank(pramsMap.get("invoiceType"))) { |
|
|
|
if (StringUtils.isBlank(pramsMap.get("invoiceType"))) { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(R.error("发票类型不能为空!")), 0); |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord,0, |
|
|
|
} catch (Exception e) { |
|
|
|
JSONObject.toJSONString(R.error("发票类型不能为空!")), "发票类型不能为空!"); |
|
|
|
|
|
|
|
} catch (BaseException e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
@ -203,7 +206,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
if (StringUtils.isBlank(pramsMap.get("totalAmount"))) { |
|
|
|
if (StringUtils.isBlank(pramsMap.get("totalAmount"))) { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(R.error("金额不能为空!")), 0); |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord,0, |
|
|
|
|
|
|
|
JSONObject.toJSONString(R.error("金额不能为空!")), "金额不能为空!"); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -215,7 +219,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
if (StringUtils.isBlank(pramsMap.get("checkCode"))) { |
|
|
|
if (StringUtils.isBlank(pramsMap.get("checkCode"))) { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(R.error("校验码不能为空!")), 0); |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord,0, |
|
|
|
|
|
|
|
JSONObject.toJSONString(R.error("校验码不能为空!")), "校验码不能为空!"); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -237,7 +242,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
if (notes != null) { |
|
|
|
if (notes != null) { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(R.error(notes)), 0); |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord,0, |
|
|
|
|
|
|
|
JSONObject.toJSONString(R.error(notes)), notes); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -293,14 +299,18 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
// saveCheckLog(pramsMap, checkInvoice);
|
|
|
|
// saveCheckLog(pramsMap, checkInvoice);
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
if (checkInvoiceResult!=null && checkInvoiceResult.containsKey("code")) { |
|
|
|
if (checkInvoiceResult.containsKey("code")) { |
|
|
|
if (checkInvoiceResult.containsKey("cyjg")) { |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord, 0,JSONObject.toJSONString(data), |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(data), 0); |
|
|
|
(String) checkInvoiceResult.get("message")); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,0,0,JSONObject.toJSONString(data)); |
|
|
|
if (checkInvoiceResult.containsKey("cyjg") && !"0001".equals(checkInvoiceResult.getString("cyjg"))) { |
|
|
|
|
|
|
|
log.info("进项票池已存在发票,查验结果:{}",JSONObject.toJSON(checkInvoiceResult)); |
|
|
|
|
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord, 0,JSONObject.toJSONString(data), |
|
|
|
|
|
|
|
(String) checkInvoiceResult.get("cyjgxx")); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
requestRecordService.saveSuccessfulRequestRecord(singleInvoiceCheckRecord,JSONObject.toJSONString(data)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
@ -332,7 +342,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
// saveCheckLog(pramsMap,checkInvoice);
|
|
|
|
// saveCheckLog(pramsMap,checkInvoice);
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,0,0,JSONObject.toJSONString(data)); |
|
|
|
requestRecordService.saveSuccessfulRequestRecord(singleInvoiceCheckRecord, JSONObject.toJSONString(data)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -354,7 +364,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
log.error("查验失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("查验失败,errormsg:{}",e.getMessage()); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(R.error("查验失败,"+e.getMessage())), 1); |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord,1,JSONObject.toJSONString(R.error("查验失败,"+e.getMessage())), |
|
|
|
|
|
|
|
"查验失败,异常信息:{}"+JSONObject.toJSONString(e.getMessage())); |
|
|
|
} catch (Exception exception) { |
|
|
|
} catch (Exception exception) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
exception.printStackTrace(); |
|
|
|
exception.printStackTrace(); |
|
|
@ -370,7 +381,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
data = errorInfo(checkInvoiceResult, data); |
|
|
|
data = errorInfo(checkInvoiceResult, data); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(data), 0); |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord, 0,JSONObject.toJSONString(data), |
|
|
|
|
|
|
|
(String) checkInvoiceResult.get("cyjgxx")); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -390,7 +402,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
signSaveInvoiceInfoService.saveQueryInvoiceResult(checkInvoiceResult, userid, "1", dbName); |
|
|
|
signSaveInvoiceInfoService.saveQueryInvoiceResult(checkInvoiceResult, userid, "1", dbName); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,0,0,JSONObject.toJSONString(data)); |
|
|
|
requestRecordService.saveSuccessfulRequestRecord(singleInvoiceCheckRecord,JSONObject.toJSONString(data)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -428,7 +440,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
data.put("data", checkInvoiceResult); |
|
|
|
data.put("data", checkInvoiceResult); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,0,0,JSONObject.toJSONString(data)); |
|
|
|
requestRecordService.saveSuccessfulRequestRecord(singleInvoiceCheckRecord,JSONObject.toJSONString(data)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -439,7 +451,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(singleInvoiceCheckRecord,1,1,JSONObject.toJSONString(R.error().put("data", checkInvoiceResult)),0); |
|
|
|
requestRecordService.saveFailedRequestRecord(singleInvoiceCheckRecord,0,JSONObject.toJSONString(R.error().put("data", checkInvoiceResult)), |
|
|
|
|
|
|
|
"未知异常,请联系管理员"); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票查验接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -777,7 +790,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
data.put("data", result); |
|
|
|
data.put("data", result); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(record,0, 0, JSONObject.toJSONString(R.error(result))); |
|
|
|
requestRecordService.saveFailedRequestRecord(record,0, JSONObject.toJSONString(R.error(result)), result); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -801,6 +814,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
// JSONObject.toJSONString(invoiceNos),
|
|
|
|
// JSONObject.toJSONString(invoiceNos),
|
|
|
|
// "pushCheckResultToSAP", 1);
|
|
|
|
// "pushCheckResultToSAP", 1);
|
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
record.setActiveCallRequestDetail(request.toJSONString()); |
|
|
|
record.setActiveCall("pushCheckResultToSAP"); |
|
|
|
record.setActiveCall("pushCheckResultToSAP"); |
|
|
|
//将信息推送到影像系统
|
|
|
|
//将信息推送到影像系统
|
|
|
|
result = snPushCheckRecordService.pushCheckResultToSAP(request.toJSONString()); |
|
|
|
result = snPushCheckRecordService.pushCheckResultToSAP(request.toJSONString()); |
|
|
@ -811,7 +825,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
data.put("data", result); |
|
|
|
data.put("data", result); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(record,0, 0, JSONObject.toJSONString(data)); |
|
|
|
requestRecordService.saveSuccessfulRequestRecord(record, JSONObject.toJSONString(data)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -824,7 +838,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
|
|
|
|
|
|
|
|
// requestRecordService.saveRecord(pushCheckResultToSAPRecord,1, 1, JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_PUSH_SDNY)), 1);
|
|
|
|
// requestRecordService.saveRecord(pushCheckResultToSAPRecord,1, 1, JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_PUSH_SDNY)), 1);
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(record,1, 1, JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_PUSH_SDNY)), 1); |
|
|
|
requestRecordService.saveFailedRequestRecord(record,1, JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_PUSH_SDNY)), |
|
|
|
|
|
|
|
"推送sap失败,失败原因:"+"{"+JSONObject.toJSONString(e)+"}"); |
|
|
|
} catch (Exception exception) { |
|
|
|
} catch (Exception exception) { |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
exception.printStackTrace(); |
|
|
|
exception.printStackTrace(); |
|
|
@ -851,7 +866,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
data.put("data", ""); |
|
|
|
data.put("data", ""); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(record,0, 0, JSONObject.toJSONString(data)); |
|
|
|
requestRecordService.saveSuccessfulRequestRecord(record, JSONObject.toJSONString(data)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -876,7 +891,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
data.put("data", ""); |
|
|
|
data.put("data", ""); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(record,0, 0, JSONObject.toJSONString(data)); |
|
|
|
requestRecordService.saveSuccessfulRequestRecord(record, JSONObject.toJSONString(data)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -891,7 +906,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
exception.printStackTrace(); |
|
|
|
exception.printStackTrace(); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(record,1, 1, JSONObject.toJSONString(R.error(CommonConstants.CONNECT_TIMEOUT)),1); |
|
|
|
requestRecordService.saveFailedRequestRecord(record,1, JSONObject.toJSONString(R.error(CommonConstants.CONNECT_TIMEOUT)), |
|
|
|
|
|
|
|
"同步SAP失败,报错信息为:"+"{"+JSONObject.toJSONString(exception)+"}"); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -903,7 +919,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
exception.printStackTrace(); |
|
|
|
exception.printStackTrace(); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(record,1, 1, JSONObject.toJSONString(R.error(CommonConstants.NULL_POINTER_TIMEOUT)), 1); |
|
|
|
requestRecordService.saveFailedRequestRecord(record,1, JSONObject.toJSONString(R.error(CommonConstants.NULL_POINTER_TIMEOUT)), |
|
|
|
|
|
|
|
"同步SAP失败,报错信息为:"+"{"+JSONObject.toJSONString(exception)+"}"); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
@ -915,7 +932,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
exception.printStackTrace(); |
|
|
|
exception.printStackTrace(); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestRecordService.saveRecord(record,1, 1, JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_DEFAULT)),1); |
|
|
|
requestRecordService.saveFailedRequestRecord(record,1, JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_DEFAULT)), |
|
|
|
|
|
|
|
"同步SAP失败,报错信息为:"+"{"+JSONObject.toJSONString(exception)+"}"); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
log.error("发票同步接口记录保存失败,errormsg:{}",e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|