Commit 1d650b34 authored by Quxl's avatar Quxl

x

parent 880877af
...@@ -139,7 +139,7 @@ public class SI004INVENTORYSyncOutServiceTask { ...@@ -139,7 +139,7 @@ public class SI004INVENTORYSyncOutServiceTask {
} finally { } finally {
try { try {
common.saveApiAccessLog("SAP库存数据接口", "/XISOAPAdapter/MessageServlet/si004INVENTORYSyncOut", isSuccess ? "S" : "F"); common.saveApiAccessLog("SAP库存数据接口", "/XISOAPAdapter/MessageServlet/si004INVENTORYSyncOut", isSuccess ? "S" : "F");
} catch (Exception e1) { } catch (Throwable e1) {
logger.error(timeString, e1); logger.error(timeString, e1);
} }
try { try {
...@@ -154,7 +154,7 @@ public class SI004INVENTORYSyncOutServiceTask { ...@@ -154,7 +154,7 @@ public class SI004INVENTORYSyncOutServiceTask {
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(mt004INVENTORY); String json = new Gson().toJson(mt004INVENTORY);
FileUtil.writeText(xmlFullName + ".JSON", json); FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) { } catch (Throwable e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
} }
......
...@@ -146,7 +146,7 @@ public class SI011ACTUALSALESSyncOutServiceTask { ...@@ -146,7 +146,7 @@ public class SI011ACTUALSALESSyncOutServiceTask {
} finally { } finally {
try { try {
common.saveApiAccessLog("SAP销售数据接口", "/XISOAPAdapter/MessageServlet/si011ACTUALSALESSyncOut", isSuccess ? "S" : "F"); common.saveApiAccessLog("SAP销售数据接口", "/XISOAPAdapter/MessageServlet/si011ACTUALSALESSyncOut", isSuccess ? "S" : "F");
} catch (Exception e1) { } catch (Throwable e1) {
logger.error(timeString, e1); logger.error(timeString, e1);
} }
try { try {
...@@ -161,7 +161,7 @@ public class SI011ACTUALSALESSyncOutServiceTask { ...@@ -161,7 +161,7 @@ public class SI011ACTUALSALESSyncOutServiceTask {
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(mt011ACTUALSALES); String json = new Gson().toJson(mt011ACTUALSALES);
FileUtil.writeText(xmlFullName + ".JSON", json); FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) { } catch (Throwable e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
} }
......
...@@ -139,7 +139,7 @@ public class ZMISD009SOCREATIONServiceTask { ...@@ -139,7 +139,7 @@ public class ZMISD009SOCREATIONServiceTask {
} finally { } finally {
try { try {
common.saveApiAccessLog("SAP采购订单接口", "/sap/xi/engine", isSuccess ? "S" : "F"); common.saveApiAccessLog("SAP采购订单接口", "/sap/xi/engine", isSuccess ? "S" : "F");
} catch (Exception e1) { } catch (Throwable e1) {
logger.error("数据上传日志记录失败", e1); logger.error("数据上传日志记录失败", e1);
} }
try { try {
...@@ -154,7 +154,7 @@ public class ZMISD009SOCREATIONServiceTask { ...@@ -154,7 +154,7 @@ public class ZMISD009SOCREATIONServiceTask {
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(ZDTSD009SOCREATIONBean); String json = new Gson().toJson(ZDTSD009SOCREATIONBean);
FileUtil.writeText(xmlFullName + ".JSON", json); FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) { } catch (Throwable e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
} }
......
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