Commit a154ecaf authored by Quxl's avatar Quxl

x

parent 69817003
...@@ -25,6 +25,7 @@ import com.egolm.sso.services.confirm_quotation.Z_MT_SD_008_SO_CONFIRM_QUOTATION ...@@ -25,6 +25,7 @@ import com.egolm.sso.services.confirm_quotation.Z_MT_SD_008_SO_CONFIRM_QUOTATION
import com.egolm.sso.util.DateUtil; import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.FileUtil; import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.StringUtil; import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
@Component @Component
...@@ -143,7 +144,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService { ...@@ -143,7 +144,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
throw new XRException("数据保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} finally { } finally {
String xmlName = Z_MT_SD_008_SO_CONFIRM_QUOTATION.getClass().getSimpleName(); String xmlName = Z_MT_SD_008_SO_CONFIRM_QUOTATION.getClass().getSimpleName();
try { try {
......
...@@ -17,6 +17,7 @@ import com.egolm.sso.services.CommonService; ...@@ -17,6 +17,7 @@ import com.egolm.sso.services.CommonService;
import com.egolm.sso.util.DateUtil; import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.FileUtil; import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.SqlUtil; import com.egolm.sso.util.SqlUtil;
import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.SqlUtil.Sql; import com.egolm.sso.util.SqlUtil.Sql;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
...@@ -60,7 +61,7 @@ public class DNDeletionServiceImpl implements DNDeletionService { ...@@ -60,7 +61,7 @@ public class DNDeletionServiceImpl implements DNDeletionService {
jdbcTemplate.update(headerSql.getSql(), headerSql.getArgs()); jdbcTemplate.update(headerSql.getSql(), headerSql.getArgs());
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
throw new XRException("数据保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} finally { } finally {
String xmlName = DELETED_DOCUMENTS.getClass().getSimpleName(); String xmlName = DELETED_DOCUMENTS.getClass().getSimpleName();
try { try {
......
...@@ -23,6 +23,7 @@ import com.egolm.sso.services.material_master.Z_MT_SD_001_MATERIAL_MASTER.RECORD ...@@ -23,6 +23,7 @@ import com.egolm.sso.services.material_master.Z_MT_SD_001_MATERIAL_MASTER.RECORD
import com.egolm.sso.util.DateUtil; import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.FileUtil; import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.StringUtil; import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
import com.google.gson.Gson; import com.google.gson.Gson;
...@@ -119,7 +120,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService { ...@@ -119,7 +120,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
throw new XRException("数据保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} finally { } finally {
String xmlName = Z_MT_SD_001_MATERIAL_MASTER.getClass().getSimpleName(); String xmlName = Z_MT_SD_001_MATERIAL_MASTER.getClass().getSimpleName();
try { try {
......
...@@ -35,6 +35,7 @@ import com.egolm.sso.util.FileUtil; ...@@ -35,6 +35,7 @@ import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.SqlUtil; import com.egolm.sso.util.SqlUtil;
import com.egolm.sso.util.SqlUtil.Sql; import com.egolm.sso.util.SqlUtil.Sql;
import com.egolm.sso.util.StringUtil; import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
@Component @Component
...@@ -176,7 +177,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -176,7 +177,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
jdbcTemplate.batchUpdate(itemDataSql.getSql(), itemDataSql.getBachArgs()); jdbcTemplate.batchUpdate(itemDataSql.getSql(), itemDataSql.getBachArgs());
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
throw new XRException("数据保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} finally { } finally {
String xmlName = Z_MT_SD_005_PERFORM_INVOICE.getClass().getSimpleName(); String xmlName = Z_MT_SD_005_PERFORM_INVOICE.getClass().getSimpleName();
try { try {
......
...@@ -23,6 +23,7 @@ import com.egolm.sso.services.price_list.Z_MT_SD_002_PRICE_LIST.RECORD; ...@@ -23,6 +23,7 @@ import com.egolm.sso.services.price_list.Z_MT_SD_002_PRICE_LIST.RECORD;
import com.egolm.sso.util.DateUtil; import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.FileUtil; import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.StringUtil; import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
import com.google.gson.Gson; import com.google.gson.Gson;
...@@ -94,7 +95,7 @@ public class PriceListServiceImpl implements PriceListService { ...@@ -94,7 +95,7 @@ public class PriceListServiceImpl implements PriceListService {
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
throw new XRException("数据保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} finally { } finally {
String xmlName = Z_MT_SD_002_PRICE_LIST.getClass().getSimpleName(); String xmlName = Z_MT_SD_002_PRICE_LIST.getClass().getSimpleName();
try { try {
......
...@@ -29,6 +29,7 @@ import com.egolm.sso.services.shipping_notfirmation.Z_MT_SD_007_SHIPPING_NOTFIRM ...@@ -29,6 +29,7 @@ import com.egolm.sso.services.shipping_notfirmation.Z_MT_SD_007_SHIPPING_NOTFIRM
import com.egolm.sso.util.DateUtil; import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.FileUtil; import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.StringUtil; import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
@Component @Component
...@@ -143,7 +144,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ ...@@ -143,7 +144,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
throw new XRException("数据保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} finally { } finally {
String xmlName = Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE.getClass().getSimpleName(); String xmlName = Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE.getClass().getSimpleName();
try { try {
......
package com.egolm.sso.util;
public class ThrowableUtil {
public static Throwable getCaused(Throwable e) {
Throwable ex = e.getCause();
if(ex != null) {
return getCaused(ex);
} else {
return 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