Commit d58e5ff2 authored by Quxl's avatar Quxl

x

parent f988e474
......@@ -66,9 +66,9 @@ public class ZMISD009SOCREATIONServiceTask {
for(Map<String, Object> headerMap : headerList) {
String TRACE_NO = (String)headerMap.get("TRACE_NO");
String KUNNR = (String)headerMap.get("KUNNR");
String result = "S";
String message = null;
String errorMessage = null;
boolean isSuccess = false;
try {
ZDTSD009SOCREATION ZDTSD009SOCREATIONBean = new ZDTSD009SOCREATION();
Header header = new Header();
......@@ -114,13 +114,18 @@ public class ZMISD009SOCREATIONServiceTask {
ZMISD009SOCREATION.zMISD009SOCREATION(ZDTSD009SOCREATIONBean);
jdbcTemplate.update("UPDATE t_so_creation_header SET SEND_STATUS = 'Y', SEND_TIME = NOW() WHERE ID = ?", ID);
} catch (Throwable e) {
result = "F";
isSuccess = false;
message = ThrowableUtil.getThrowableDesc(e);
errorMessage = ThrowableUtil.getCaused(e).getMessage();
logger.error("数据上传错误", e);
} finally {
try {
common.saveOrderTracking(TRACE_NO, traceName, null, KUNNR, traceAction, result, message, errorMessage);
common.saveApiAccessLog("", "http://xiprd:8000/sap/xi/engine", isSuccess ? "S" : "F");
} catch (Exception e1) {
logger.error("数据上传日志记录失败", e1);
}
try {
common.saveOrderTracking(TRACE_NO, traceName, null, KUNNR, traceAction, (isSuccess ? "S" : "F"), message, errorMessage);
} catch (Throwable e1) {
logger.error("追踪数据保存失败", e1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment