|
|
|
@ -101,7 +101,7 @@ public class YxzyyClient extends CommonHttpClient {
|
|
|
|
|
public BaseResponse getUnit(UdiwmsUnitRequest udiwmsUnitRequest) {
|
|
|
|
|
YxUnitRequest yxUnitRequest = new YxUnitRequest();
|
|
|
|
|
BeanUtil.copyProperties(udiwmsUnitRequest, yxUnitRequest);
|
|
|
|
|
String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_CORP_URL), yxUnitRequest);
|
|
|
|
|
String response = httpClient.postJson2(thrSystemDetailService.getUrl(Constants.URL_NAME_CORP_URL), yxUnitRequest);
|
|
|
|
|
BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class);
|
|
|
|
|
return baseResponse;
|
|
|
|
|
}
|
|
|
|
@ -110,7 +110,7 @@ public class YxzyyClient extends CommonHttpClient {
|
|
|
|
|
public BaseResponse getProducts(UdiwmsProductRequest udiwmsProductRequest) {
|
|
|
|
|
YxProductRequest yxProductRequest = new YxProductRequest();
|
|
|
|
|
BeanUtil.copyProperties(udiwmsProductRequest, yxProductRequest);
|
|
|
|
|
String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_PI_QUERY_URL), yxProductRequest);
|
|
|
|
|
String response = httpClient.postJson2(thrSystemDetailService.getUrl(Constants.URL_NAME_PI_QUERY_URL), yxProductRequest);
|
|
|
|
|
BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class);
|
|
|
|
|
return baseResponse;
|
|
|
|
|
}
|
|
|
|
@ -119,7 +119,7 @@ public class YxzyyClient extends CommonHttpClient {
|
|
|
|
|
public BaseResponse getOrderTypes(UdiwmsBusTypeRequest udiwmsBusTypeRequest) {
|
|
|
|
|
YxBusTypeRequest yxBusTypeRequest = new YxBusTypeRequest();
|
|
|
|
|
BeanUtil.copyProperties(udiwmsBusTypeRequest, yxBusTypeRequest);
|
|
|
|
|
String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_BUS_TYPE_QUERY_URL), yxBusTypeRequest);
|
|
|
|
|
String response = httpClient.postJson2(thrSystemDetailService.getUrl(Constants.URL_NAME_BUS_TYPE_QUERY_URL), yxBusTypeRequest);
|
|
|
|
|
BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class);
|
|
|
|
|
return baseResponse;
|
|
|
|
|
}
|
|
|
|
@ -132,7 +132,7 @@ public class YxzyyClient extends CommonHttpClient {
|
|
|
|
|
//查询绑定的第三方单据类型
|
|
|
|
|
String thirdAction = thrBustypeOriginDao.findThirdActionByBillType(udiwmsOrderQueryRequest.getBillType(), DictUtl.CURRENT_HOSP_CODE);
|
|
|
|
|
udiwmsOrderQueryRequest.setBillType(thirdAction);
|
|
|
|
|
String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_ORDER_QUERY_URL), udiwmsOrderQueryRequest);
|
|
|
|
|
String response = httpClient.postJson2(thrSystemDetailService.getUrl(Constants.URL_NAME_ORDER_QUERY_URL), udiwmsOrderQueryRequest);
|
|
|
|
|
BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class);
|
|
|
|
|
return baseResponse;
|
|
|
|
|
}
|
|
|
|
|