Commit 09f90af5 authored by Quxl's avatar Quxl

x

parent 79d17d8b
......@@ -122,7 +122,7 @@ public class CommonService {
public String getNextTrace(Date now, String sPrefix, String sName) {
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
return sPrefix + timeString + this.getNextval(sName + "_" + dateString);
return sPrefix + timeString + this.getNextval(sName + "_TRACE_" + dateString);
}
public String limitByMysql(String sql, Page page) {
......
......@@ -53,7 +53,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
System.out.println(new Gson().toJson(Z_MT_SD_008_SO_CONFIRM_QUOTATION));
Date now = new Date();
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
String TRACE_NO = common.getNextTrace(now, "sapsoconfirmquotation", "T_SO_CONFIRMACTION_HEADER_TRACE");
String TRACE_NO = common.getNextTrace(now, "sapsoconfirmquotation", "T_SO_CONFIRMACTION_HEADER");
Long time = now.getTime();
String KUNNR = null;
String VBELN = null;
......
......@@ -47,7 +47,7 @@ public class DNDeletionServiceImpl implements DNDeletionService {
System.out.println(new Gson().toJson(DELETED_DOCUMENTS));
Date now = new Date();
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
String TRACE_NO = common.getNextTrace(now, "sapsodndeletion", "T_SO_DN_DELETION_TRACE");
String TRACE_NO = common.getNextTrace(now, "sapsodndeletion", "T_SO_DN_DELETION");
String apiName = "SAP单据删除通知接口";
String apiPath = "/dn_deletion";
String traceName = "SODNDeletion";
......
......@@ -50,7 +50,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
boolean isSuccess = true;
System.out.println(new Gson().toJson(Z_MT_SD_001_MATERIAL_MASTER));
String TRACE_NO = common.getNextTrace(now, "sapmaterialmaster", "T_VEN_GOODS_TRACE");
String TRACE_NO = common.getNextTrace(now, "sapmaterialmaster", "T_VEN_GOODS");
String apiName = "SAP物料接口";
String apiPath = "/material_master";
String traceName = "MaterialMaster";
......
......@@ -62,7 +62,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
System.out.println(new Gson().toJson(Z_MT_SD_005_PERFORM_INVOICE));
Date now = new Date();
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
String TRACE_NO = common.getNextTrace(now, "sapproformainvoice", "T_PERFORM_INVOICE_HEADER_TRACE");
String TRACE_NO = common.getNextTrace(now, "sapproformainvoice", "T_PERFORM_INVOICE_HEADER");
String apiName = "SAP形式发票接口";
String apiPath = "/prforma_invoice";
String traceName = "ProFormaInvoice";
......
......@@ -50,7 +50,7 @@ public class PriceListServiceImpl implements PriceListService {
System.out.println(new Gson().toJson(Z_MT_SD_002_PRICE_LIST));
Date now = new Date();
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
String TRACE_NO = common.getNextTrace(now, "sappricelist", "T_PRICE_LIST_TRACE");
String TRACE_NO = common.getNextTrace(now, "sappricelist", "T_PRICE_LIST");
String apiName = "SAP列表价接口";
String apiPath = "/price_list";
String traceName = "PriceList";
......
......@@ -57,7 +57,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
Date now = new Date();
Long timeMillis = now.getTime();
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
String TRACE_NO = common.getNextTrace(now, "sapshippingnotification", "T_SHIPPING_NOTIFICATION_HEADER_TRACE");
String TRACE_NO = common.getNextTrace(now, "sapshippingnotification", "T_SHIPPING_NOTIFICATION_HEADER");
String apiName = "SAP发货通知接口";
String apiPath = "/shipping_notfirmation";
String traceName = "ShippingNotfirmation";
......
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