Commit 314ebd73 authored by Quxl's avatar Quxl

x

parent e6ee2c5f
...@@ -28,6 +28,7 @@ import com.egolm.sso.util.FileUtil; ...@@ -28,6 +28,7 @@ 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.ThrowableUtil;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
import com.google.gson.Gson;
@Component @Component
@WebService(serviceName = "ConfirmQuotationService", targetNamespace = "http://confirm_quotation.sso.egolm.com", endpointInterface = "com.egolm.sso.services.confirm_quotation.ConfirmQuotationService") @WebService(serviceName = "ConfirmQuotationService", targetNamespace = "http://confirm_quotation.sso.egolm.com", endpointInterface = "com.egolm.sso.services.confirm_quotation.ConfirmQuotationService")
...@@ -170,6 +171,8 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService { ...@@ -170,6 +171,8 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
String xml = XMLUtil.toXml(Z_MT_SD_008_SO_CONFIRM_QUOTATION); String xml = XMLUtil.toXml(Z_MT_SD_008_SO_CONFIRM_QUOTATION);
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(Z_MT_SD_008_SO_CONFIRM_QUOTATION);
FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) { } catch (Exception e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
......
...@@ -20,6 +20,7 @@ import com.egolm.sso.util.SqlUtil; ...@@ -20,6 +20,7 @@ import com.egolm.sso.util.SqlUtil;
import com.egolm.sso.util.StringUtil; import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.ThrowableUtil; import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.SqlUtil.Sql; import com.egolm.sso.util.SqlUtil.Sql;
import com.google.gson.Gson;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
@Component @Component
...@@ -79,6 +80,8 @@ public class DNDeletionServiceImpl implements DNDeletionService { ...@@ -79,6 +80,8 @@ public class DNDeletionServiceImpl implements DNDeletionService {
String xml = XMLUtil.toXml(DELETED_DOCUMENTS); String xml = XMLUtil.toXml(DELETED_DOCUMENTS);
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(DELETED_DOCUMENTS);
FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) { } catch (Exception e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
......
...@@ -129,6 +129,8 @@ public class MaterialMasterServiceImpl implements MaterialMasterService { ...@@ -129,6 +129,8 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
String xml = XMLUtil.toXml(Z_MT_SD_001_MATERIAL_MASTER); String xml = XMLUtil.toXml(Z_MT_SD_001_MATERIAL_MASTER);
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(Z_MT_SD_001_MATERIAL_MASTER);
FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) { } catch (Exception e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
......
...@@ -34,6 +34,7 @@ import com.egolm.sso.util.DateUtil; ...@@ -34,6 +34,7 @@ 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.SqlUtil.Sql; import com.egolm.sso.util.SqlUtil.Sql;
import com.google.gson.Gson;
import com.egolm.sso.util.StringUtil; import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.ThrowableUtil; import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
...@@ -254,6 +255,8 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -254,6 +255,8 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
String xml = XMLUtil.toXml(Z_MT_SD_005_PERFORM_INVOICE); String xml = XMLUtil.toXml(Z_MT_SD_005_PERFORM_INVOICE);
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(Z_MT_SD_005_PERFORM_INVOICE);
FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) { } catch (Exception e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
......
...@@ -112,6 +112,8 @@ public class PriceListServiceImpl implements PriceListService { ...@@ -112,6 +112,8 @@ public class PriceListServiceImpl implements PriceListService {
String xml = XMLUtil.toXml(Z_MT_SD_002_PRICE_LIST); String xml = XMLUtil.toXml(Z_MT_SD_002_PRICE_LIST);
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(Z_MT_SD_002_PRICE_LIST);
FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) { } catch (Exception e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
......
...@@ -31,6 +31,7 @@ import com.egolm.sso.util.FileUtil; ...@@ -31,6 +31,7 @@ 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.ThrowableUtil;
import com.egolm.sso.util.XMLUtil; import com.egolm.sso.util.XMLUtil;
import com.google.gson.Gson;
@Component @Component
@WebService(serviceName = "ShippingNotificationService", targetNamespace = "http://shipping_notfirmation.sso.egolm.com", endpointInterface = "com.egolm.sso.services.shipping_notfirmation.ShippingNotificationService") @WebService(serviceName = "ShippingNotificationService", targetNamespace = "http://shipping_notfirmation.sso.egolm.com", endpointInterface = "com.egolm.sso.services.shipping_notfirmation.ShippingNotificationService")
...@@ -180,6 +181,8 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ ...@@ -180,6 +181,8 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
String xml = XMLUtil.toXml(Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE); String xml = XMLUtil.toXml(Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE);
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + DateUtil.formatDate(now, "yyyyMMddHHmmssSSS") + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE);
FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) { } catch (Exception 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