test更新

This commit is contained in:
sx 2024-08-19 10:31:05 +08:00
parent d37e3d4b6f
commit 7729f13895
1 changed files with 45 additions and 17 deletions

View File

@ -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<OfsShopDto> 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<CustdocRequestVo> 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<CustdocRequestVo> list = new ArrayList<>();
// list.add(custdocRequestVo);
// custmandocPluginInitializer.implement(list);
// custdocAutoAllotPluginInitializer.start();
}