Commit 83222ec1 authored by Quxl's avatar Quxl

x

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