From 7729f1389505653dc3188a49728d09fa95fe7b4a Mon Sep 17 00:00:00 2001 From: sx <@sx.com> Date: Mon, 19 Aug 2024 10:31:05 +0800 Subject: [PATCH] =?UTF-8?q?test=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/lets/plugin/base/ShopTest.java | 62 ++++++++++++++----- 1 file changed, 45 insertions(+), 17 deletions(-) diff --git a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/base/ShopTest.java b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/base/ShopTest.java index 80b053f4..244a4937 100644 --- a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/base/ShopTest.java +++ b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/base/ShopTest.java @@ -2,13 +2,19 @@ package com.hzya.frame.plugin.lets.plugin.base; import com.alibaba.fastjson.JSON; import com.hzya.frame.WebappApplication; +import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant; import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity; import com.hzya.frame.plugin.lets.ofs.entity.ShopEntity; +import com.hzya.frame.plugin.lets.ofs.entity.SupplierEntity; import com.hzya.frame.plugin.lets.queryvo.CustdocRequestVo; import com.hzya.frame.plugin.lets.resultvo.ShopReturnMessageDto; import com.hzya.frame.plugin.lets.u8cdto.CustdocEntityDto; import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil; +import com.hzya.frame.ttxofs.basics.ReturnMessageBasics; +import com.hzya.frame.ttxofs.dto.InterfaceParamByU8CApiDto; import com.hzya.frame.ttxofs.dto.InterfaceParamDto; +import com.hzya.frame.ttxofs.dto.ofsBaseSearch.OfsShopDto; +import com.hzya.frame.ttxofs.dto.ofsBaseSearch.OfsShopReturnMessageDto; import com.hzya.frame.ttxofs.service.OfsUnifiedService; import org.checkerframework.checker.units.qual.C; import org.junit.Test; @@ -18,6 +24,7 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import java.util.ArrayList; +import java.util.List; /** * @Author @@ -37,22 +44,43 @@ public class ShopTest { private OfsUnifiedService ofsUnifiedService; @Autowired private PushDataByU8cUtil pushDataByU8cUtil; - @Autowired - private CustmandocPluginInitializer custmandocPluginInitializer; + @Autowired private CustdocAutoAllotPluginInitializer custdocAutoAllotPluginInitializer; + @Test public void t00() { // shopPluginInitializer.startImplement(); +// // ShopEntity shopEntity = new ShopEntity(); -// shopEntity.setStatus(1); +//// shopEntity.setLastUpdated_start("2021-08-01 00:00:00"); +// shopEntity.setPageNo("1"); // shopEntity.setClientCode("LETS"); -// InterfaceParamDto interfaceParamDto = new InterfaceParamDto(); +// InterfaceParamByU8CApiDto interfaceParamDto = new InterfaceParamByU8CApiDto(); // interfaceParamDto.setApi("ofs.store.search"); // interfaceParamDto.setData(JSON.toJSONString(shopEntity)); +// OfsShopReturnMessageDto unified = null; // try { -// ShopReturnMessageDto unified = (ShopReturnMessageDto) ofsUnifiedService.unified(interfaceParamDto); +// unified = (OfsShopReturnMessageDto) ofsUnifiedService.unifiedByU8CApi(interfaceParamDto); +// } catch (Exception e) { +// throw new RuntimeException(e); +// } +// List data = unified.getData(); +// System.out.println("data = " + data); + +// SupplierEntity supplierEntity = new SupplierEntity(); +// supplierEntity.setPageNo("1"); +// supplierEntity.setClientCode("LETS"); +// InterfaceParamByU8CApiDto interfaceParamDto = new InterfaceParamByU8CApiDto(); +// interfaceParamDto.setApi("ofs.store.search"); +// interfaceParamDto.setData(JSON.toJSONString(supplierEntity)); + + + + custdocAutoAllotPluginInitializer.start(); + +// // System.out.println(unified); // } catch (Exception e) { // throw new RuntimeException(e); @@ -91,18 +119,18 @@ public class ShopTest { // //生成客商管理档案 - CustdocEntityDto parentvo = new CustdocEntityDto(); - parentvo.setCustname("12测试客商管理档112213z案"); - parentvo.setCustshortname("12测试客商管理档131121z案"); - parentvo.setCustcode("test1324121ac1"); - //地区名称:丽知商城客商? -// parentvo.setPk_areacl("F"); - parentvo.setPk_corp("0001"); - CustdocRequestVo custdocRequestVo = new CustdocRequestVo(); - custdocRequestVo.setParentvo(parentvo); - ArrayList list = new ArrayList<>(); - list.add(custdocRequestVo); - custmandocPluginInitializer.implement(list); +// CustdocEntityDto parentvo = new CustdocEntityDto(); +// parentvo.setCustname("12测试客商管理档112213z案"); +// parentvo.setCustshortname("12测试客商管理档131121z案"); +// parentvo.setCustcode("test1324121ac1"); +// //地区名称:丽知商城客商? +//// parentvo.setPk_areacl("F"); +// parentvo.setPk_corp("0001"); +// CustdocRequestVo custdocRequestVo = new CustdocRequestVo(); +// custdocRequestVo.setParentvo(parentvo); +// ArrayList list = new ArrayList<>(); +// list.add(custdocRequestVo); +// custmandocPluginInitializer.implement(list); // custdocAutoAllotPluginInitializer.start(); }