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) {
// ThrSystemEntity basicThirdSysEntity = basicThirdSysService.selectByThirdId(invProductRequest.getThirdSys());
// String url = basicThirdSysEntity.getThridUrl() + "/udiwms/erp/inv/getInvResult";
// String url = basicThirdSysEntity.getThridUrl() + invProductRequest.getThirdSysUrlValue();
ThrSystemEntity basicThirdSysEntity = basicThirdSysService.selectByThirdId(invProductRequest.getThirdSys());
String url = basicThirdSysEntity.getThridUrl() + invProductRequest.getThirdSysUrlValue();
try {
// String response = httpOkClient.uCloudPost(url, invProductRequest);
ThrInvResultResponse thrInvResultResponse = new ThrInvResultResponse();
thrInvResultResponse.setThrCode("70151");
thrInvResultResponse.setOutCount("2");
thrInvResultResponse.setBillType(ConstantType.TYPE_OUT);
ArrayList<ThrInvResultResponse> objects = new ArrayList<>();
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;
String response = httpOkClient.uCloudPost(url, invProductRequest);
BaseResponse<PageSimpleResponse<ThrInvResultResponse>> listBaseResponse =
JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThrInvResultResponse>>>() {
});
return listBaseResponse;
} catch (Exception e) {
log.error("获取第三方库存明细异常", e);
return ResultVOUtils.error(500, "连接第三方系统接口服务出错");

Loading…
Cancel
Save