test更新
This commit is contained in:
parent
d37e3d4b6f
commit
7729f13895
|
@ -2,13 +2,19 @@ package com.hzya.frame.plugin.lets.plugin.base;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.hzya.frame.WebappApplication;
|
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.entity.BdCubasdocEntity;
|
||||||
import com.hzya.frame.plugin.lets.ofs.entity.ShopEntity;
|
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.queryvo.CustdocRequestVo;
|
||||||
import com.hzya.frame.plugin.lets.resultvo.ShopReturnMessageDto;
|
import com.hzya.frame.plugin.lets.resultvo.ShopReturnMessageDto;
|
||||||
import com.hzya.frame.plugin.lets.u8cdto.CustdocEntityDto;
|
import com.hzya.frame.plugin.lets.u8cdto.CustdocEntityDto;
|
||||||
import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil;
|
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.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 com.hzya.frame.ttxofs.service.OfsUnifiedService;
|
||||||
import org.checkerframework.checker.units.qual.C;
|
import org.checkerframework.checker.units.qual.C;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -18,6 +24,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.test.context.junit4.SpringRunner;
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author
|
* @Author
|
||||||
|
@ -37,22 +44,43 @@ public class ShopTest {
|
||||||
private OfsUnifiedService ofsUnifiedService;
|
private OfsUnifiedService ofsUnifiedService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private PushDataByU8cUtil pushDataByU8cUtil;
|
private PushDataByU8cUtil pushDataByU8cUtil;
|
||||||
@Autowired
|
|
||||||
private CustmandocPluginInitializer custmandocPluginInitializer;
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CustdocAutoAllotPluginInitializer custdocAutoAllotPluginInitializer;
|
private CustdocAutoAllotPluginInitializer custdocAutoAllotPluginInitializer;
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void t00() {
|
public void t00() {
|
||||||
// shopPluginInitializer.startImplement();
|
// shopPluginInitializer.startImplement();
|
||||||
|
//
|
||||||
// ShopEntity shopEntity = new ShopEntity();
|
// ShopEntity shopEntity = new ShopEntity();
|
||||||
// shopEntity.setStatus(1);
|
//// shopEntity.setLastUpdated_start("2021-08-01 00:00:00");
|
||||||
|
// shopEntity.setPageNo("1");
|
||||||
// shopEntity.setClientCode("LETS");
|
// shopEntity.setClientCode("LETS");
|
||||||
// InterfaceParamDto interfaceParamDto = new InterfaceParamDto();
|
// InterfaceParamByU8CApiDto interfaceParamDto = new InterfaceParamByU8CApiDto();
|
||||||
// interfaceParamDto.setApi("ofs.store.search");
|
// interfaceParamDto.setApi("ofs.store.search");
|
||||||
// interfaceParamDto.setData(JSON.toJSONString(shopEntity));
|
// interfaceParamDto.setData(JSON.toJSONString(shopEntity));
|
||||||
|
// OfsShopReturnMessageDto unified = null;
|
||||||
// try {
|
// 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);
|
// System.out.println(unified);
|
||||||
// } catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
// throw new RuntimeException(e);
|
// throw new RuntimeException(e);
|
||||||
|
@ -91,18 +119,18 @@ public class ShopTest {
|
||||||
|
|
||||||
|
|
||||||
// //生成客商管理档案
|
// //生成客商管理档案
|
||||||
CustdocEntityDto parentvo = new CustdocEntityDto();
|
// CustdocEntityDto parentvo = new CustdocEntityDto();
|
||||||
parentvo.setCustname("12测试客商管理档112213z案");
|
// parentvo.setCustname("12测试客商管理档112213z案");
|
||||||
parentvo.setCustshortname("12测试客商管理档131121z案");
|
// parentvo.setCustshortname("12测试客商管理档131121z案");
|
||||||
parentvo.setCustcode("test1324121ac1");
|
// parentvo.setCustcode("test1324121ac1");
|
||||||
//地区名称:丽知商城客商?
|
// //地区名称:丽知商城客商?
|
||||||
// parentvo.setPk_areacl("F");
|
//// parentvo.setPk_areacl("F");
|
||||||
parentvo.setPk_corp("0001");
|
// parentvo.setPk_corp("0001");
|
||||||
CustdocRequestVo custdocRequestVo = new CustdocRequestVo();
|
// CustdocRequestVo custdocRequestVo = new CustdocRequestVo();
|
||||||
custdocRequestVo.setParentvo(parentvo);
|
// custdocRequestVo.setParentvo(parentvo);
|
||||||
ArrayList<CustdocRequestVo> list = new ArrayList<>();
|
// ArrayList<CustdocRequestVo> list = new ArrayList<>();
|
||||||
list.add(custdocRequestVo);
|
// list.add(custdocRequestVo);
|
||||||
custmandocPluginInitializer.implement(list);
|
// custmandocPluginInitializer.implement(list);
|
||||||
|
|
||||||
// custdocAutoAllotPluginInitializer.start();
|
// custdocAutoAllotPluginInitializer.start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue