Commit 83222ec1 authored by Quxl's avatar Quxl

x

parent 05ec3254
...@@ -167,16 +167,16 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService { ...@@ -167,16 +167,16 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
} }
} }
try { try {
common.saveApiAccessLog("execute", "/confirm_quotation", "SUCCESS"); common.saveApiAccessLog("execute", "/confirm_quotation", "S");
common.saveOrderTracking(TRACE_NO, "SoConfirmQuotation", VBELN, KUNNR, "U", "SUCCESS", null); common.saveOrderTracking(TRACE_NO, "SoConfirmQuotation", VBELN, KUNNR, "U", "S", null);
} catch (Throwable e) { } catch (Throwable e) {
logger.error(timeString, e); logger.error(timeString, e);
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
try { try {
common.saveApiAccessLog("execute", "/confirm_quotation", "ERROR"); common.saveApiAccessLog("execute", "/confirm_quotation", "F");
common.saveOrderTracking(TRACE_NO, "SoConfirmQuotation", VBELN, KUNNR, "U", "ERROR", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString); common.saveOrderTracking(TRACE_NO, "SoConfirmQuotation", VBELN, KUNNR, "U", "F", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString);
} catch (Throwable e1) { } catch (Throwable e1) {
logger.error(timeString, e1); logger.error(timeString, e1);
} }
......
...@@ -76,16 +76,16 @@ public class DNDeletionServiceImpl implements DNDeletionService { ...@@ -76,16 +76,16 @@ public class DNDeletionServiceImpl implements DNDeletionService {
Sql headerSql = SqlUtil.insertSql("t_so_dn_deletion", map); Sql headerSql = SqlUtil.insertSql("t_so_dn_deletion", map);
jdbcTemplate.update(headerSql.getSql(), headerSql.getArgs()); jdbcTemplate.update(headerSql.getSql(), headerSql.getArgs());
try { try {
common.saveApiAccessLog("execute", "/dn_deletion", "SUCCESS"); common.saveApiAccessLog("execute", "/dn_deletion", "S");
common.saveOrderTracking(TRACE_NO, "SODNDeletion", null, SOLD_TO, "U", "SUCCESS", null); common.saveOrderTracking(TRACE_NO, "SODNDeletion", null, SOLD_TO, "U", "S", null);
} catch (Throwable e) { } catch (Throwable e) {
logger.error(timeString, e); logger.error(timeString, e);
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
try { try {
common.saveApiAccessLog("execute", "/dn_deletion", "ERROR"); common.saveApiAccessLog("execute", "/dn_deletion", "F");
common.saveOrderTracking(TRACE_NO, "SODNDeletion", null, SOLD_TO, "U", "ERROR", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString); common.saveOrderTracking(TRACE_NO, "SODNDeletion", null, SOLD_TO, "U", "F", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString);
} catch (Throwable e1) { } catch (Throwable e1) {
logger.error(timeString, e1); logger.error(timeString, e1);
} }
......
...@@ -123,16 +123,16 @@ public class MaterialMasterServiceImpl implements MaterialMasterService { ...@@ -123,16 +123,16 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
} }
} }
try { try {
common.saveApiAccessLog("execute", "/material_master", "SUCCESS"); common.saveApiAccessLog("execute", "/material_master", "S");
common.saveOrderTracking(TRACE_NO, "MaterialMaster", null, DIS_CODE, "U", "SUCCESS", null); common.saveOrderTracking(TRACE_NO, "MaterialMaster", null, DIS_CODE, "U", "S", null);
} catch (Throwable e) { } catch (Throwable e) {
logger.error(timeString, e); logger.error(timeString, e);
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
try { try {
common.saveApiAccessLog("execute", "/material_master", "ERROR"); common.saveApiAccessLog("execute", "/material_master", "F");
common.saveOrderTracking(TRACE_NO, "MaterialMaster", null, DIS_CODE, "U", "ERROR", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString); common.saveOrderTracking(TRACE_NO, "MaterialMaster", null, DIS_CODE, "U", "F", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString);
} catch (Throwable e1) { } catch (Throwable e1) {
logger.error(timeString, e1); logger.error(timeString, e1);
} }
......
...@@ -250,16 +250,16 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -250,16 +250,16 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
Sql itemDataSql = SqlUtil.insertSqlBatch("t_perform_invoice_item_data", itemDatas); Sql itemDataSql = SqlUtil.insertSqlBatch("t_perform_invoice_item_data", itemDatas);
jdbcTemplate.batchUpdate(itemDataSql.getSql(), itemDataSql.getBachArgs()); jdbcTemplate.batchUpdate(itemDataSql.getSql(), itemDataSql.getBachArgs());
try { try {
common.saveApiAccessLog("execute", "/prforma_invoice", "SUCCESS"); common.saveApiAccessLog("execute", "/prforma_invoice", "S");
common.saveOrderTracking(TRACE_NO, "ProFormaInvoice", null, BATCH_CODE, "U", "SUCCESS", null); common.saveOrderTracking(TRACE_NO, "ProFormaInvoice", null, BATCH_CODE, "U", "S", null);
} catch (Throwable e) { } catch (Throwable e) {
logger.error(timeString, e); logger.error(timeString, e);
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
try { try {
common.saveApiAccessLog("execute", "/prforma_invoice", "ERROR"); common.saveApiAccessLog("execute", "/prforma_invoice", "F");
common.saveOrderTracking(TRACE_NO, "ProFormaInvoice", null, BATCH_CODE, "U", "ERROR", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString); common.saveOrderTracking(TRACE_NO, "ProFormaInvoice", null, BATCH_CODE, "U", "F", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString);
} catch (Throwable e1) { } catch (Throwable e1) {
logger.error(timeString, e1); logger.error(timeString, e1);
} }
......
...@@ -106,16 +106,16 @@ public class PriceListServiceImpl implements PriceListService { ...@@ -106,16 +106,16 @@ public class PriceListServiceImpl implements PriceListService {
} }
} }
try { try {
common.saveApiAccessLog("execute", "/price_list", "SUCCESS"); common.saveApiAccessLog("execute", "/price_list", "S");
common.saveOrderTracking(TRACE_NO, "PriceList", null, KUNNR, "U", "SUCCESS", null); common.saveOrderTracking(TRACE_NO, "PriceList", null, KUNNR, "U", "S", null);
} catch (Throwable e) { } catch (Throwable e) {
logger.error(timeString, e); logger.error(timeString, e);
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
try { try {
common.saveApiAccessLog("execute", "/price_list", "ERROR"); common.saveApiAccessLog("execute", "/price_list", "F");
common.saveOrderTracking(TRACE_NO, "PriceList", null, KUNNR, "U", "ERROR", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString); common.saveOrderTracking(TRACE_NO, "PriceList", null, KUNNR, "U", "F", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString);
} catch (Throwable e1) { } catch (Throwable e1) {
logger.error(timeString, e1); logger.error(timeString, e1);
} }
......
...@@ -175,16 +175,16 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ ...@@ -175,16 +175,16 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
} }
} }
try { try {
common.saveApiAccessLog("execute", "/shipping_notfirmation", "SUCCESS"); common.saveApiAccessLog("execute", "/shipping_notfirmation", "S");
common.saveOrderTracking(TRACE_NO, "ShippingNotification", null, BATCH_CODE, "U", "SUCCESS", null); common.saveOrderTracking(TRACE_NO, "ShippingNotification", null, BATCH_CODE, "U", "S", null);
} catch (Throwable e) { } catch (Throwable e) {
logger.error(timeString, e); logger.error(timeString, e);
} }
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
try { try {
common.saveApiAccessLog("execute", "/shipping_notfirmation", "ERROR"); common.saveApiAccessLog("execute", "/shipping_notfirmation", "F");
common.saveOrderTracking(TRACE_NO, "ShippingNotification", null, BATCH_CODE, "U", "ERROR", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString); common.saveOrderTracking(TRACE_NO, "ShippingNotification", null, BATCH_CODE, "U", "F", ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString);
} catch (Throwable e1) { } catch (Throwable e1) {
logger.error(timeString, e1); logger.error(timeString, 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