Commit 6e72be6d authored by Quxl's avatar Quxl

z

parent 314ebd73
...@@ -50,10 +50,10 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService { ...@@ -50,10 +50,10 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
@Transactional @Transactional
public void execute(Z_MT_SD_008_SO_CONFIRM_QUOTATION Z_MT_SD_008_SO_CONFIRM_QUOTATION) { public void execute(Z_MT_SD_008_SO_CONFIRM_QUOTATION Z_MT_SD_008_SO_CONFIRM_QUOTATION) {
boolean isSuccess = true; boolean isSuccess = true;
System.out.println(new Gson().toJson(Z_MT_SD_008_SO_CONFIRM_QUOTATION));
Date now = new Date(); Date now = new Date();
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE); String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
Long time = now.getTime(); Long time = now.getTime();
System.out.println(JSON.toJSONString(Z_MT_SD_008_SO_CONFIRM_QUOTATION));
try { try {
Map<String, Object> header = new HashMap<>(); Map<String, Object> header = new HashMap<>();
RESPONSE res = Z_MT_SD_008_SO_CONFIRM_QUOTATION.getRESPONSE(); RESPONSE res = Z_MT_SD_008_SO_CONFIRM_QUOTATION.getRESPONSE();
......
...@@ -44,6 +44,7 @@ public class DNDeletionServiceImpl implements DNDeletionService { ...@@ -44,6 +44,7 @@ public class DNDeletionServiceImpl implements DNDeletionService {
@Transactional @Transactional
public void execute(DELETED_DOCUMENTS DELETED_DOCUMENTS) { public void execute(DELETED_DOCUMENTS DELETED_DOCUMENTS) {
boolean isSuccess = true; boolean isSuccess = true;
System.out.println(new Gson().toJson(DELETED_DOCUMENTS));
Date now = new Date(); Date now = new Date();
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE); String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
try { try {
......
...@@ -59,6 +59,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -59,6 +59,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
@Transactional @Transactional
public void execute(Z_MT_SD_005_PERFORM_INVOICE Z_MT_SD_005_PERFORM_INVOICE) { public void execute(Z_MT_SD_005_PERFORM_INVOICE Z_MT_SD_005_PERFORM_INVOICE) {
boolean isSuccess = true; boolean isSuccess = true;
System.out.println(new Gson().toJson(Z_MT_SD_005_PERFORM_INVOICE));
Date now = new Date(); Date now = new Date();
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE); String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
try { try {
......
...@@ -47,9 +47,9 @@ public class PriceListServiceImpl implements PriceListService { ...@@ -47,9 +47,9 @@ public class PriceListServiceImpl implements PriceListService {
@Transactional @Transactional
public void execute(Z_MT_SD_002_PRICE_LIST Z_MT_SD_002_PRICE_LIST) { public void execute(Z_MT_SD_002_PRICE_LIST Z_MT_SD_002_PRICE_LIST) {
boolean isSuccess = true; boolean isSuccess = true;
System.out.println(new Gson().toJson(Z_MT_SD_002_PRICE_LIST));
Date now = new Date(); Date now = new Date();
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE); String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
System.out.println(new Gson().toJson(Z_MT_SD_002_PRICE_LIST));
try { try {
RECORD r = Z_MT_SD_002_PRICE_LIST.getRECORD(); RECORD r = Z_MT_SD_002_PRICE_LIST.getRECORD();
if(r != null) { if(r != null) {
......
...@@ -15,7 +15,6 @@ import org.springframework.jdbc.core.JdbcTemplate; ...@@ -15,7 +15,6 @@ import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSON;
import com.egolm.sso.config.XRException; import com.egolm.sso.config.XRException;
import com.egolm.sso.services.CommonService; import com.egolm.sso.services.CommonService;
import com.egolm.sso.services.shipping_notfirmation.Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE.HEADER_DATE; import com.egolm.sso.services.shipping_notfirmation.Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE.HEADER_DATE;
...@@ -54,7 +53,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ ...@@ -54,7 +53,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
@Transactional @Transactional
public void execute(Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE) { public void execute(Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE) {
boolean isSuccess = true; boolean isSuccess = true;
System.out.println(JSON.toJSONString(Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE)); System.out.println(new Gson().toJson(Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE));
Date now = new Date(); Date now = new Date();
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE); String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
Long time = now.getTime(); Long time = now.getTime();
......
...@@ -12,8 +12,8 @@ public class MaterialMasterServiceTest { ...@@ -12,8 +12,8 @@ public class MaterialMasterServiceTest {
String wsdlLocation = "http://10.204.15.9:8080/api/services/material_master?wsdl"; String wsdlLocation = "http://10.204.15.9:8080/api/services/material_master?wsdl";
String namespace = "http://material_master.sso.egolm.com"; String namespace = "http://material_master.sso.egolm.com";
String serviceName = "MaterialMasterService"; String serviceName = "MaterialMasterService";
MaterialMasterService service = ServiceFactory.create(MaterialMasterService.class, wsdlLocation, namespace, serviceName, "test", "", null); MaterialMasterService service = ServiceFactory.create(MaterialMasterService.class, wsdlLocation, namespace, serviceName);
String XML = StringUtil.readText("D:/data/sso/001.XML"); String XML = StringUtil.readText("C:\\Users\\Quxl\\Desktop\\SSP3A250F7R.xml");
Z_MT_SD_001_MATERIAL_MASTER Z_MT_SD_001_MATERIAL_MASTER = XMLUtil.toBeanByJxab(XML, Z_MT_SD_001_MATERIAL_MASTER.class); Z_MT_SD_001_MATERIAL_MASTER Z_MT_SD_001_MATERIAL_MASTER = XMLUtil.toBeanByJxab(XML, Z_MT_SD_001_MATERIAL_MASTER.class);
service.execute(Z_MT_SD_001_MATERIAL_MASTER); service.execute(Z_MT_SD_001_MATERIAL_MASTER);
} }
......
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