|
|
|
@ -84,7 +84,7 @@ public class TestClient {
|
|
|
|
|
FilterThrCorpRequest filterThrCorpRequest = new FilterThrCorpRequest();
|
|
|
|
|
|
|
|
|
|
BeanUtils.copyProperties(udiwmsUnitRequest, filterThrCorpRequest);
|
|
|
|
|
filterThrCorpRequest.setThirdSysFk(udiwmsUnitRequest.getThirdSys());
|
|
|
|
|
filterThrCorpRequest.setThirdSysFk(thirdId);
|
|
|
|
|
List<ThrCorpEntity> thrCorpEntities = testCorpDao.filterThrCorps(filterThrCorpRequest);
|
|
|
|
|
|
|
|
|
|
List<UdiwmsUnitResponse> udiwmsUnitResponses = new ArrayList<>();
|
|
|
|
@ -120,6 +120,7 @@ public class TestClient {
|
|
|
|
|
|
|
|
|
|
FilterThrProductsRequest filterThrProductsRequest = new FilterThrProductsRequest();
|
|
|
|
|
BeanUtils.copyProperties(udiwmsProductRequest, filterThrProductsRequest);
|
|
|
|
|
filterThrProductsRequest.setThirdSysFk(thirdId);
|
|
|
|
|
List<ThrProductsEntity> thrProductsEntities = testProductDao.filterThrProductsRequest(filterThrProductsRequest);
|
|
|
|
|
|
|
|
|
|
List<UdiwmsProductInfoResponse> udiwmsProductInfoResponses = new ArrayList<>();
|
|
|
|
@ -193,6 +194,7 @@ public class TestClient {
|
|
|
|
|
|
|
|
|
|
BussinessOriginTypeFilterRequest bussinessOriginTypeFilterRequest = new BussinessOriginTypeFilterRequest();
|
|
|
|
|
BeanUtils.copyProperties(udiwmsBusTypeRequest, bussinessOriginTypeFilterRequest);
|
|
|
|
|
bussinessOriginTypeFilterRequest.setThirdSys(thirdId);
|
|
|
|
|
List<BussinessOriginTypeEntity> bussinessOriginTypeEntities = testBusTypeDao.filterList(bussinessOriginTypeFilterRequest);
|
|
|
|
|
|
|
|
|
|
List<UdiwmsBusTypeResponse> udiwmsBusTypeResponses = new ArrayList<>();
|
|
|
|
@ -200,6 +202,7 @@ public class TestClient {
|
|
|
|
|
for (BussinessOriginTypeEntity bussinessOriginTypeEntity : bussinessOriginTypeEntities) {
|
|
|
|
|
UdiwmsBusTypeResponse udiwmsBusTypeResponse = new UdiwmsBusTypeResponse();
|
|
|
|
|
BeanUtils.copyProperties(bussinessOriginTypeEntity, udiwmsBusTypeResponse);
|
|
|
|
|
udiwmsBusTypeResponse.setCode(bussinessOriginTypeEntity.getAction());
|
|
|
|
|
udiwmsBusTypeResponses.add(udiwmsBusTypeResponse);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -310,8 +313,8 @@ public class TestClient {
|
|
|
|
|
uploadLog.setBillNo(orderRequest.getBillNo());
|
|
|
|
|
uploadLog.setFromType(ConstantStatus.THIRD_ORDER_UPLOAD);
|
|
|
|
|
String data = JSONUtil.toJsonStr(orderRequest);
|
|
|
|
|
FileUtils.saveFileAs(data, thirdId + "_" + stockOrderEntity.getBillNo());
|
|
|
|
|
String response = "上传成功!";
|
|
|
|
|
FileUtils.saveFileAs(data, "E:\\单据上传目录\\" + thirdId + "_" + stockOrderEntity.getBillNo() + ".json");
|
|
|
|
|
String response = JSONUtil.toJsonStr(ResultVOUtils.success("上传成功!"));
|
|
|
|
|
if (StrUtil.isNotBlank(response)) {
|
|
|
|
|
try {
|
|
|
|
|
BaseResponse baseResponse =
|
|
|
|
|