feat: 删除测试代码

dev_20240306
chenhc 1 year ago
parent 4db974d0df
commit 63958a1963

@ -79,28 +79,15 @@ public class ErpInvClient {
} }
public BaseResponse<PageSimpleResponse<ThrInvResultResponse>> getInvResult(FilterInvProductRequest invProductRequest) { public BaseResponse<PageSimpleResponse<ThrInvResultResponse>> getInvResult(FilterInvProductRequest invProductRequest) {
// ThrSystemEntity basicThirdSysEntity = basicThirdSysService.selectByThirdId(invProductRequest.getThirdSys()); ThrSystemEntity basicThirdSysEntity = basicThirdSysService.selectByThirdId(invProductRequest.getThirdSys());
// String url = basicThirdSysEntity.getThridUrl() + "/udiwms/erp/inv/getInvResult"; String url = basicThirdSysEntity.getThridUrl() + invProductRequest.getThirdSysUrlValue();
// String url = basicThirdSysEntity.getThridUrl() + invProductRequest.getThirdSysUrlValue();
try { try {
// String response = httpOkClient.uCloudPost(url, invProductRequest); String response = httpOkClient.uCloudPost(url, invProductRequest);
ThrInvResultResponse thrInvResultResponse = new ThrInvResultResponse(); BaseResponse<PageSimpleResponse<ThrInvResultResponse>> listBaseResponse =
thrInvResultResponse.setThrCode("70151"); JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThrInvResultResponse>>>() {
thrInvResultResponse.setOutCount("2"); });
thrInvResultResponse.setBillType(ConstantType.TYPE_OUT);
ArrayList<ThrInvResultResponse> objects = new ArrayList<>(); return listBaseResponse;
objects.add(thrInvResultResponse);
PageSimpleResponse<ThrInvResultResponse> thrInvResultResponsePageSimpleResponse = new PageSimpleResponse<>();
thrInvResultResponsePageSimpleResponse.setList(objects);
BaseResponse<PageSimpleResponse<ThrInvResultResponse>> pageSimpleResponseBaseResponse = new BaseResponse<>();
pageSimpleResponseBaseResponse.setCode(20000);
pageSimpleResponseBaseResponse.setData(thrInvResultResponsePageSimpleResponse);
return pageSimpleResponseBaseResponse;
// BaseResponse<PageSimpleResponse<ThrInvResultResponse>> listBaseResponse =
// JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThrInvResultResponse>>>() {
// });
//
// return listBaseResponse;
} catch (Exception e) { } catch (Exception e) {
log.error("获取第三方库存明细异常", e); log.error("获取第三方库存明细异常", e);
return ResultVOUtils.error(500, "连接第三方系统接口服务出错"); return ResultVOUtils.error(500, "连接第三方系统接口服务出错");

Loading…
Cancel
Save