feat: 网络对接优化

dev_drug
chenhc 1 month ago
parent aafe6c1cbb
commit 440876d529

@ -19,7 +19,7 @@ import com.glxp.api.entity.sync.SocketMsgEntity;
import com.glxp.api.entity.system.SystemParamConfigEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.basic.*;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterBasicThirdSysRequest;

@ -10,7 +10,7 @@ import com.glxp.api.entity.basic.BasicCorpEntity;
import com.glxp.api.entity.basic.BasicCorpsExportLogEntity;
import com.glxp.api.entity.basic.BasicProductsExportLogEntity;
import com.glxp.api.entity.sync.SyncDataSetEntity;
import com.glxp.api.httpClient.HttpOkClient;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.basic.BasicCorpsExportRequest;
import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest;
import com.glxp.api.res.basic.BasicCorpExportLogResponse;

@ -23,7 +23,7 @@ import com.glxp.api.entity.sync.SocketMsgEntity;
import com.glxp.api.entity.thrsys.CodeRel;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.httpClient.NmpaUdiClient;
import com.glxp.api.httpClient.serviceClient.impl.NmpaUdiClientImpl;
import com.glxp.api.req.basic.*;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterBasicThirdSysRequest;
@ -58,7 +58,7 @@ import java.util.List;
public class UdiContrastController extends BaseController{
@Resource
NmpaUdiClient udiDlHttpClient;
NmpaUdiClientImpl udiDlHttpClient;
@Resource
UdiRelevanceService udiRelevanceService;
@Resource

@ -23,7 +23,7 @@ import com.glxp.api.entity.system.SystemParamConfigEntity;
import com.glxp.api.entity.thrsys.CodeRel;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.basic.*;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterBasicThirdSysRequest;

@ -21,7 +21,7 @@ import com.glxp.api.entity.sync.SocketMsgEntity;
import com.glxp.api.entity.system.CompanyEntity;
import com.glxp.api.entity.thrsys.CodeRel;
import com.glxp.api.exception.JsonException;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.basic.*;
import com.glxp.api.req.system.CompanyRequest;
import com.glxp.api.req.system.DeleteCompanyFileRequest;

@ -2,7 +2,7 @@ package com.glxp.api.controller.collect;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.collect.PostCollectOrderRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;

@ -21,7 +21,7 @@ import com.glxp.api.entity.inv.DeviceInspectTaskEntity;
import com.glxp.api.entity.sync.SyncEditLogEntity;
import com.glxp.api.entity.sync.SyncEditTypeEntity;
import com.glxp.api.entity.thrsys.CodeRel;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.basic.*;
import com.glxp.api.req.system.DeleteCompanyFileRequest;
import com.glxp.api.req.system.DeleteRequest;

@ -10,7 +10,7 @@ import com.glxp.api.constant.BusinessType;
import com.glxp.api.entity.thrsys.ThrBusTypeOriginEntity;
import com.glxp.api.entity.thrsys.ThrSystemBusApiEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterBasicThirdSysDetailRequest;
import com.glxp.api.req.thrsys.FilterThrBusTypeOriginRequest;

@ -12,7 +12,7 @@ import com.glxp.api.constant.BusinessType;
import com.glxp.api.entity.thrsys.ThrCorpEntity;
import com.glxp.api.entity.thrsys.ThrCorpExportLogEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterThrCorpExportLogRequest;
import com.glxp.api.req.thrsys.FilterThrCorpRequest;

@ -11,7 +11,7 @@ import com.glxp.api.constant.BusinessType;
import com.glxp.api.constant.Constant;
import com.glxp.api.entity.thrsys.ThrCorpImportLogEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterThrCorpRequest;
import com.glxp.api.req.thrsys.PostThrCorpRequest;

@ -14,7 +14,7 @@ import com.glxp.api.constant.Constant;
import com.glxp.api.entity.thrsys.ThrInvProductsEntity;
import com.glxp.api.entity.thrsys.ThrInvProductsImportLogEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.httpClient.HttpOkClient;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterThrInvProductsRequest;
import com.glxp.api.req.thrsys.PostThrInvProductsRequest;

@ -10,7 +10,7 @@ import com.glxp.api.constant.BusinessType;
import com.glxp.api.entity.thrsys.ThrInvProductsEntity;
import com.glxp.api.entity.thrsys.ThrInvProductsExportLogEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpInvClient;
import com.glxp.api.httpClient.serviceClient.impl.ErpInvClientImpl;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.*;
import com.glxp.api.res.PageSimpleResponse;
@ -48,7 +48,7 @@ public class ThrInvProductsExportLogController {
@Resource
private ThrInvProductsService thrInvProductsService;
@Resource
ErpInvClient erpInvClient;
ErpInvClientImpl erpInvClientImpl;
@GetMapping("/udiwms/invProducts/exportLog/filter")
public BaseResponse filter(FilterThrCorpExportLogRequest filterThrProductsExportLogRequest,
@ -160,7 +160,7 @@ public class ThrInvProductsExportLogController {
}
if (thrSystemDetailEntity.getFromType() == 0) {
BaseResponse<PageSimpleResponse<ThrInvProductResponse>> responseBaseResponse = erpInvClient.getInvPrdoductResponse(onhandQueryRequest, onHandUrl);
BaseResponse<PageSimpleResponse<ThrInvProductResponse>> responseBaseResponse = erpInvClientImpl.getInvPrdoductResponse(onhandQueryRequest, onHandUrl);
return responseBaseResponse;
} else {
FilterThrInvProductsRequest filterThrInvProductsRequest = new FilterThrInvProductsRequest();

@ -9,7 +9,7 @@ import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.entity.thrsys.ThrManufacturerEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterBasicProducstRequest;
import com.glxp.api.req.thrsys.FilterThrCorpRequest;

@ -14,7 +14,7 @@ import com.glxp.api.constant.BusinessType;
import com.glxp.api.constant.Constant;
import com.glxp.api.entity.system.SystemParamConfigEntity;
import com.glxp.api.entity.thrsys.*;
import com.glxp.api.httpClient.HttpOkClient;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.inout.FilterOrderRequest;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.*;

@ -11,7 +11,7 @@ import com.glxp.api.entity.thrsys.ThrOrderDetailEntity;
import com.glxp.api.entity.thrsys.ThrOrderEntity;
import com.glxp.api.entity.thrsys.ThrOrderExportLogEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpOrderClient;
import com.glxp.api.httpClient.serviceClient.impl.ErpOrderClientImpl;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.*;
import com.glxp.api.res.PageSimpleResponse;
@ -50,7 +50,7 @@ public class ThrOrderExportLogController {
@Resource
private ThrOrderDetailService thrOrderDetailService;
@Resource
private ErpOrderClient erpOrderClient;
private ErpOrderClientImpl erpOrderClientImpl;
@GetMapping("/udiwms/thrOrder/exportLog/filter")
public BaseResponse filter(FilterThrCorpImportLogRequest filterUdiEpLogReques,
@ -183,7 +183,7 @@ public class ThrOrderExportLogController {
// }
ThrSystemDetailEntity thrSystemDetailEntity=new ThrSystemDetailEntity();
if (thrSystemDetailEntity.getFromType() != null && thrSystemDetailEntity.getFromType() == 0) {
return erpOrderClient.getThrOrderResponse(filterErpOrderRequest);
return erpOrderClientImpl.getThrOrderResponse(filterErpOrderRequest);
} else {
//todo 订单查询,需加日期
FilterThrOrderRequest filterThrOrderRequest = new FilterThrOrderRequest();

@ -21,7 +21,7 @@ import com.glxp.api.entity.thrsys.ThrProductsAddDiEntity;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.exception.JsonException;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.basic.SupplementRequest;
import com.glxp.api.req.basic.UdiCombineRequest;
import com.glxp.api.req.system.DeleteRequest;

@ -13,7 +13,7 @@ import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.constant.BusinessType;
import com.glxp.api.entity.basic.UdiProductEntity;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
import com.glxp.api.res.PageSimpleResponse;

@ -9,7 +9,7 @@ import com.glxp.api.constant.BasicProcessStatus;
import com.glxp.api.constant.BusinessType;
import com.glxp.api.entity.thrsys.ThrProductsExportLogEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterThrProductsExportLogRequest;
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
@ -51,6 +51,8 @@ public class ThrProductsExportLogController {
ThrSystemDetailService thrSystemDetailService;
@Resource
private CustomerService customerService;
@Resource
ErpBasicClient erpBasicHttpClient;
@GetMapping("/udiwms/thrProducts/exportLog/filter")
@ -184,7 +186,6 @@ public class ThrProductsExportLogController {
return ResultVOUtils.error(500, "ERP产品信息接口地址未定义");
if (thrSystemDetailEntity.getEnabled()) {
if (thrSystemDetailEntity.getFromType() == 0) {
ErpBasicClient erpBasicHttpClient = new ErpBasicClient();
BaseResponse<PageSimpleResponse<ThrProductsResponse>> udiDlDeviceResponse = erpBasicHttpClient.getErpProducts(filterThrProductsRequest);
if (udiDlDeviceResponse.getCode() == 20000) {
return udiDlDeviceResponse;

@ -13,7 +13,7 @@ import com.glxp.api.constant.BusinessType;
import com.glxp.api.entity.thrsys.ThrSystemBusApiEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.thrsys.FilterBasicThirdSysDetailRequest;
import com.glxp.api.req.thrsys.FilterBasicThirdSysRequest;
import com.glxp.api.res.PageSimpleResponse;

@ -1,145 +0,0 @@
package com.glxp.api.httpClient;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.constant.ConstantStatus;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.req.thrsys.FilterThrOrderRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrErpOrderResponse;
import com.glxp.api.res.thrsys.ThrOrderResponse;
import com.glxp.api.service.thrsys.ThrSystemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* ERP
*/
@Slf4j
@Service
public class ErpOrderClient {
@Autowired
private ThrSystemService thrSystemService;
@Resource
HttpOkClient httpOkClient;
public List<ThrOrderResponse> getErpOrder(String url, List<String> billCodes, String action) {
List<ThrOrderResponse> erpOrderEntities = new ArrayList<>();
if (billCodes != null && billCodes.size() > 0) {
for (int i = 0; i < billCodes.size(); i++) {
List<ThrOrderResponse> ThrErpOrderResponses = getErpOrder(url, Arrays.asList(billCodes.get(i)), action);
if (ThrErpOrderResponses != null) {
erpOrderEntities.addAll(ThrErpOrderResponses);
}
}
}
return erpOrderEntities;
}
public BaseResponse<PageSimpleResponse<ThrOrderResponse>> getThrOrderResponse(FilterThrOrderRequest filterOrderRequest) {
//查询第三方服务授权参数
ThrSystemEntity thrSystemEntity = thrSystemService.selectByThirdId("thirdId");
String url = thrSystemEntity.getThridUrl() + "/udiwms/erp/getOrders";
String response = httpOkClient.uCloudPost(url, filterOrderRequest, thrSystemEntity);
try {
BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse =
JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThrOrderResponse>>>() {
});
return responseBaseResponse;
} catch (Exception e) {
log.error("获取订单数据异常", e);
}
return null;
}
public List<ThrErpOrderResponse> getErpOrder(FilterThrOrderRequest filterOrderRequest) {
try {
BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse = getThrOrderResponse(filterOrderRequest);
List<ThrOrderResponse> purchaseinResponseList = responseBaseResponse.getData().getList();
if (purchaseinResponseList != null && purchaseinResponseList.size() > 0) {
List<ThrErpOrderResponse> erpOrderEntities = new ArrayList<>();
for (ThrOrderResponse ThrOrderResponse : purchaseinResponseList) {
for (ThrOrderResponse.SubErpOrder subPurchase : ThrOrderResponse.getSubErpOrders()) {
ThrErpOrderResponse ThrErpOrderResponse = new ThrErpOrderResponse();
ThrErpOrderResponse.setErpOrderId(ThrOrderResponse.getBillNo());
ThrErpOrderResponse.setCompanyid(ThrOrderResponse.getCorpId());
ThrErpOrderResponse.setCompanyname(ThrOrderResponse.getCorpName());
ThrErpOrderResponse.setCredate(ThrOrderResponse.getBilldate());
ThrErpOrderResponse.setGoodsid(subPurchase.getProductId());
ThrErpOrderResponse.setGoodsname(subPurchase.getProductName());
ThrErpOrderResponse.setBatchNo(subPurchase.getBatchNo());
ThrErpOrderResponse.setProductDate(subPurchase.getProductDate());
ThrErpOrderResponse.setExpireDate(subPurchase.getExpireDate());
ThrErpOrderResponse.setErpCount(subPurchase.getCount());
ThrErpOrderResponse.setReCount(subPurchase.getReCount());
ThrErpOrderResponse.setOriginType(ThrOrderResponse.getOriginType());
ThrErpOrderResponse.setGoodsunit(subPurchase.getSpec());
ThrErpOrderResponse.setOrderFromType(ConstantStatus.SORDER_FROM_ONLINE);
erpOrderEntities.add(ThrErpOrderResponse);
}
}
return erpOrderEntities;
}
} catch (
Exception e) {
e.printStackTrace();
}
return null;
}
// public BaseResponse submitOrder(UdiwmsOrderRequest udiwmsOrderRequest) {
// BasicThirdSysEntity basicThirdSysEntity = basicThirdSysService.selectByThirdId(udiwmsOrderRequest.getThirdSys());
// String url = basicThirdSysEntity.getThridUrl() + "/udiwms/erp/submitOrders";
// String response = httpOkClient.uCloudPost(url, udiwmsOrderRequest);
// try {
// BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse =
// JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThrOrderResponse>>>() {
// });
// return responseBaseResponse;
// } catch (Exception e) {
// log.error("获取订单数据异常", e);
// }
// return null;
// }
// public BaseResponse postBill(Map<String, List<ThrErpOrderResponse>> postMap, String billAction, String uploadUrl, String thirdSysFk) {
// ERPPostBillRequest erpPostBillRequest = new ERPPostBillRequest();
// erpPostBillRequest.setPostMap(postMap);
// erpPostBillRequest.setBillAction(billAction);
//
// //查询第三方服务授权参数
// BasicThirdSysEntity basicThirdSysEntity = basicThirdSysService.selectByThirdId(thirdSysFk);
// String response = httpOkClient.uCloudPost(uploadUrl, erpPostBillRequest, basicThirdSysEntity);
// BaseResponse baseResponse = JSONObject.parseObject(response, new TypeReference<BaseResponse>() {
// });
// return baseResponse;
// }
//
// public BaseResponse postBill(ERPPostBillRequest erpPostBillRequest, String uploadUrl) {
// String response = httpOkClient.uCloudPost(uploadUrl, erpPostBillRequest);
// BaseResponse baseResponse =
// JSONObject.parseObject(response, new TypeReference<BaseResponse>() {
// });
// return baseResponse;
// }
//
// public BaseResponse signBill(USignRequest signRequest, String url) {
// String response = httpOkClient.uCloudPost(url, signRequest);
// BaseResponse baseResponse =
// JSONObject.parseObject(response, new TypeReference<BaseResponse>() {
// });
// return baseResponse;
// }
}

@ -0,0 +1,84 @@
package com.glxp.api.httpClient.serviceClient;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.entity.thrsys.*;
import com.glxp.api.httpClient.req.UdiwmsBusTypeRequest;
import com.glxp.api.httpClient.req.UdiwmsUnitRequest;
import com.glxp.api.req.basic.YbDrugDetailFilterRequest;
import com.glxp.api.req.basic.YbHcflDetailFilterRequest;
import com.glxp.api.req.collect.PostCollectOrderRequest;
import com.glxp.api.req.thrsys.*;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.chs.YbHcflEntityResponse;
import com.glxp.api.res.thrsys.ThrCorpsResponse;
import com.glxp.api.res.thrsys.ThrProductsResponse;
import com.glxp.api.res.thrsys.UdiwmsWarehouseDetail;
import org.springframework.beans.BeanUtils;
import java.util.List;
public interface ErpBasicClient {
public BaseResponse<PageSimpleResponse<ThrCorpsResponse>> getErpCrop(ThrUnitMaintainFilterRequest thrUnitMaintainFilterRequest);
//获取产品信息
public BaseResponse<PageSimpleResponse<ThrProductsResponse>> getErpProducts(FilterThrProductsRequest filterThrProductsRequest);
//查询仓库货位号
public BaseResponse<PageSimpleResponse<UdiwmsWarehouseDetail>> getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest);
//测试连通性
public BaseResponse testThridConnect(ThrSystemEntity thrSystemEntity);
//下载第三方系统单据类型
public BaseResponse<PageSimpleResponse<ThrSystemBusApiEntity>> getBusTypes(FilterBasicThirdSysDetailRequest filterBasicThirdSysDetailRequest);
/**
*
*/
public BaseResponse<PageSimpleResponse<YbHcflEntityResponse>> getYbHcflDetail(YbHcflDetailFilterRequest ybHcflDetailFilterRequest);
/**
*
*/
public BaseResponse<PageSimpleResponse<ThrManufacturerEntity>> getThrManu(ThrManuFilterRequest thrManuFilterRequest);
/**
*
* @param ybHcflDetailFilterRequest
* @return
*/
public BaseResponse<PageSimpleResponse<YbDrug>> getYbDrugDetail(YbDrugDetailFilterRequest ybHcflDetailFilterRequest);
/**
*
* @param codeRel
* @return
*/
public BaseResponse<List<CodeRel>> getCodeRelDetail(CodeRel codeRel);
/**
*
* @param codeList
* @return
*/
public BaseResponse<List> checkCode(List<String> codeList);
/**
*
* @param codeRel
* @return
*/
public BaseResponse updateCodeRelDetail(CodeRel codeRel);
/**
*
* @param postCollectOrderRequest
* @return
*/
public BaseResponse collectOrderUpload(PostCollectOrderRequest postCollectOrderRequest);
}

@ -0,0 +1,10 @@
package com.glxp.api.httpClient.serviceClient;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.req.thrsys.ThrOnhandRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrInvProductResponse;
public interface ErpInvClient {
public BaseResponse<PageSimpleResponse<ThrInvProductResponse>> getInvPrdoductResponse(ThrOnhandRequest onhandRequest, String url);
}

@ -0,0 +1,10 @@
package com.glxp.api.httpClient.serviceClient;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.req.thrsys.FilterThrOrderRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrOrderResponse;
public interface ErpOrderClient {
public BaseResponse<PageSimpleResponse<ThrOrderResponse>> getThrOrderResponse(FilterThrOrderRequest filterOrderRequest);
}

@ -0,0 +1,24 @@
package com.glxp.api.httpClient.serviceClient;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
import com.glxp.api.constant.ConstantStatus;
import com.glxp.api.entity.basic.ProductInfoEntity;
import com.glxp.api.entity.basic.UdiProductEntity;
import com.glxp.api.req.basic.ProductInfoFilterRequest;
import com.glxp.api.util.UuidUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public interface NmpaUdiClient {
public List<UdiProductEntity> getUdiByUuid(String uuid);
public List<UdiProductEntity> getOrUpdateByUuid(String uuid);
public List<UdiProductEntity> getUdiByDi(String key);
}

@ -1,4 +1,4 @@
package com.glxp.api.httpClient;
package com.glxp.api.httpClient.serviceClient.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
@ -9,6 +9,8 @@ import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.entity.thrsys.*;
import com.glxp.api.httpClient.req.UdiwmsBusTypeRequest;
import com.glxp.api.httpClient.req.UdiwmsUnitRequest;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.basic.YbDrugDetailFilterRequest;
import com.glxp.api.req.basic.YbHcflDetailFilterRequest;
import com.glxp.api.req.collect.PostCollectOrderRequest;
@ -31,13 +33,14 @@ import java.util.List;
*/
@Slf4j
@Service
public class ErpBasicClient {
public class ErpBasicClientImpl implements ErpBasicClient {
@Resource
HttpOkClient httpOkClient;
@Resource
private ThrSystemService basicThirdSysService;
//获取往来单位
@Override
public BaseResponse<PageSimpleResponse<ThrCorpsResponse>> getErpCrop(ThrUnitMaintainFilterRequest thrUnitMaintainFilterRequest) {
UdiwmsUnitRequest udiwmsUnitRequest = new UdiwmsUnitRequest();
BeanUtil.copyProperties(thrUnitMaintainFilterRequest, udiwmsUnitRequest);
@ -61,8 +64,8 @@ public class ErpBasicClient {
}
//获取产品信息
@Override
public BaseResponse<PageSimpleResponse<ThrProductsResponse>> getErpProducts(FilterThrProductsRequest filterThrProductsRequest) {
ThrSystemEntity basicThirdSysEntity = basicThirdSysService.selectByThirdId(filterThrProductsRequest.getThirdSys());
String url = basicThirdSysEntity.getThridUrl() + "/udiwms/erp/getProducts";
@ -81,7 +84,8 @@ public class ErpBasicClient {
}
}
//查询仓库货位号
//查询仓库货位号
@Override
public BaseResponse<PageSimpleResponse<UdiwmsWarehouseDetail>> getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest) {
ThrSystemEntity basicThirdSysEntity = basicThirdSysService.selectByThirdId(udiwmsWarehouseRequest.getThirdSys());
String url = basicThirdSysEntity.getThridUrl() + "/udiwms/erp/getWarehouse";
@ -99,6 +103,7 @@ public class ErpBasicClient {
}
//测试连通性
@Override
public BaseResponse testThridConnect(ThrSystemEntity thrSystemEntity) {
String response = httpOkClient.uCloudPost(thrSystemEntity.getThridUrl() + "/udiwms/erp/testThirdSys", "{}");
log.info(response);
@ -111,6 +116,7 @@ public class ErpBasicClient {
}
//下载第三方系统单据类型
@Override
public BaseResponse<PageSimpleResponse<ThrSystemBusApiEntity>> getBusTypes(FilterBasicThirdSysDetailRequest filterBasicThirdSysDetailRequest) {
ThrSystemEntity thrSystemEntity = basicThirdSysService.selectByThirdId(filterBasicThirdSysDetailRequest.getThirdSysFk());
String url = thrSystemEntity.getThridUrl() + "/udiwms/erp/getOrderType";
@ -124,9 +130,9 @@ public class ErpBasicClient {
BaseResponse<PageSimpleResponse<ThrSystemBusApiEntity>> udiDlDeviceResponse =
JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThrSystemBusApiEntity>>>() {
});
if(udiDlDeviceResponse!=null){
if (udiDlDeviceResponse != null) {
return udiDlDeviceResponse;
}else{
} else {
return ResultVOUtils.error(500, "查询第三方数据失败!");
}
@ -139,8 +145,9 @@ public class ErpBasicClient {
/**
*
*/
@Override
public BaseResponse<PageSimpleResponse<YbHcflEntityResponse>> getYbHcflDetail(YbHcflDetailFilterRequest ybHcflDetailFilterRequest) {
String url = "https://www.udims.com/UDI_DL_Server_test"+"/udchs/ybHcfl/list";
String url = "https://www.udims.com/UDI_DL_Server_test" + "/udchs/ybHcfl/list";
try {
ybHcflDetailFilterRequest.setLimit(1);
ybHcflDetailFilterRequest.setPage(1);
@ -160,6 +167,7 @@ public class ErpBasicClient {
/**
*
*/
@Override
public BaseResponse<PageSimpleResponse<ThrManufacturerEntity>> getThrManu(ThrManuFilterRequest thrManuFilterRequest) {
UdiwmsUnitRequest udiwmsUnitRequest = new UdiwmsUnitRequest();
BeanUtils.copyProperties(thrManuFilterRequest, udiwmsUnitRequest);
@ -183,9 +191,11 @@ public class ErpBasicClient {
/**
*
*
* @param ybHcflDetailFilterRequest
* @return
*/
@Override
public BaseResponse<PageSimpleResponse<YbDrug>> getYbDrugDetail(YbDrugDetailFilterRequest ybHcflDetailFilterRequest) {
String url = "https://www.udims.com/UDI_DL_Server_test" + "/udchs/ybDrug/list";
try {
@ -202,9 +212,11 @@ public class ErpBasicClient {
/**
*
*
* @param codeRel
* @return
*/
@Override
public BaseResponse<List<CodeRel>> getCodeRelDetail(CodeRel codeRel) {
String url = "https://www.udims.com/UDI_DL_Server_test" + "/udchs/codeRel/list";
try {
@ -221,9 +233,11 @@ public class ErpBasicClient {
/**
*
*
* @param codeList
* @return
*/
@Override
public BaseResponse<List> checkCode(List<String> codeList) {
String url = "https://www.udims.com/UDI_DL_Server_test" + "/udiwms/relCode/checkCode";
try {
@ -240,11 +254,13 @@ public class ErpBasicClient {
/**
*
*
* @param codeRel
* @return
*/
@Override
public BaseResponse updateCodeRelDetail(CodeRel codeRel) {
String url = "https://www.udims.com/UDI_DL_Server_test"+ "/udchs/codeRel/update";
String url = "https://www.udims.com/UDI_DL_Server_test" + "/udchs/codeRel/update";
try {
String response = httpOkClient.uCloudPost(url, codeRel);
BaseResponse listBaseResponse =
@ -259,11 +275,13 @@ public class ErpBasicClient {
/**
*
*
* @param postCollectOrderRequest
* @return
*/
@Override
public BaseResponse collectOrderUpload(PostCollectOrderRequest postCollectOrderRequest) {
String url = "https://www.udims.com/UDI_DL_Server_test"+ "/collect/order/upload";
String url = "https://www.udims.com/UDI_DL_Server_test" + "/collect/order/upload";
try {
String response = httpOkClient.uCloudPost(url, postCollectOrderRequest);
BaseResponse listBaseResponse =

@ -1,8 +1,10 @@
package com.glxp.api.httpClient;
package com.glxp.api.httpClient.serviceClient.impl;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.httpClient.serviceClient.ErpInvClient;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.thrsys.ThrOnhandRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrInvProductResponse;
@ -13,12 +15,13 @@ import java.util.HashMap;
import java.util.Map;
@Service
public class ErpInvClient {
public class ErpInvClientImpl implements ErpInvClient {
@Resource
HttpOkClient httpOkClient;
@Override
public BaseResponse<PageSimpleResponse<ThrInvProductResponse>> getInvPrdoductResponse(ThrOnhandRequest onhandRequest, String url) {
Map<String, Object> paramMap = new HashMap<>(16);

@ -0,0 +1,51 @@
package com.glxp.api.httpClient.serviceClient.impl;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.httpClient.serviceClient.ErpOrderClient;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.thrsys.FilterThrOrderRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrOrderResponse;
import com.glxp.api.service.thrsys.ThrSystemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* ERP
*/
@Slf4j
@Service
public class ErpOrderClientImpl implements ErpOrderClient {
@Autowired
private ThrSystemService thrSystemService;
@Resource
HttpOkClient httpOkClient;
@Override
public BaseResponse<PageSimpleResponse<ThrOrderResponse>> getThrOrderResponse(FilterThrOrderRequest filterOrderRequest) {
//查询第三方服务授权参数
ThrSystemEntity thrSystemEntity = thrSystemService.selectByThirdId("thirdId");
String url = thrSystemEntity.getThridUrl() + "/udiwms/erp/getOrders";
String response = httpOkClient.uCloudPost(url, filterOrderRequest, thrSystemEntity);
try {
BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse =
JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThrOrderResponse>>>() {
});
return responseBaseResponse;
} catch (Exception e) {
log.error("获取订单数据异常", e);
}
return null;
}
}

@ -1,16 +1,14 @@
package com.glxp.api.httpClient;
package com.glxp.api.httpClient.serviceClient.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.glxp.api.constant.ConstantStatus;
import com.glxp.api.entity.basic.ProductInfoEntity;
import com.glxp.api.entity.basic.UdiProductEntity;
import com.glxp.api.httpClient.serviceClient.NmpaUdiClient;
import com.glxp.api.req.basic.ProductInfoFilterRequest;
import com.glxp.api.service.basic.ProductInfoService;
import com.glxp.api.service.basic.UdiProductService;
import com.glxp.api.util.UuidUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -23,12 +21,11 @@ import java.util.stream.Collectors;
* UDI(nmpa:)
*/
@Service
public class NmpaUdiClient {
public class NmpaUdiClientImpl implements NmpaUdiClient {
@Resource
ProductInfoService productInfoService;
@Resource
UdiProductService udiProductService;
@Override
public List<UdiProductEntity> getUdiByUuid(String uuid) {
ProductInfoFilterRequest productInfoFilterRequest = new ProductInfoFilterRequest();
productInfoFilterRequest.setPage(1);
@ -51,19 +48,14 @@ public class NmpaUdiClient {
return udiInfoEntities;
}
@Override
public List<UdiProductEntity> getOrUpdateByUuid(String uuid) {
List<UdiProductEntity> udiInfoEntities = getUdiByUuid(uuid);
// if (CollUtil.isNotEmpty(udiInfoEntities)) {
// UdiProductEntity udiProductEntity = udiProductService.findByNameCode(udiInfoEntities.get(0).getNameCode());
// if (udiProductEntity != null) {
// List<UdiProductEntity> exitUdis = udiProductService.findByUuids(udiProductEntity.getUuid());
// return exitUdis;
// }
// }
return udiInfoEntities;
}
@Override
public List<UdiProductEntity> getUdiByDi(String key) {
ProductInfoFilterRequest productInfoFilterRequest = new ProductInfoFilterRequest();
productInfoFilterRequest.setPage(1);

@ -1,4 +1,4 @@
package com.glxp.api.httpClient;
package com.glxp.api.httpClient.utils;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;

@ -8,7 +8,7 @@ import com.glxp.api.entity.basic.UdiRelevanceEntity;
import com.glxp.api.entity.system.SystemParamConfigEntity;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrProductsResponse;

@ -18,7 +18,7 @@ import com.glxp.api.entity.basic.UdiProductEntity;
import com.glxp.api.entity.basic.UdiRelevanceEntity;
import com.glxp.api.entity.thrsys.*;
import com.glxp.api.exception.JsonException;
import com.glxp.api.httpClient.NmpaUdiClient;
import com.glxp.api.httpClient.serviceClient.impl.NmpaUdiClientImpl;
import com.glxp.api.req.alihealth.AlihealthKytDrugrescodeReqeust;
import com.glxp.api.req.alihealth.local.AlihealthThirdAliDrugInsertReqeust;
import com.glxp.api.req.basic.UdiCombineRequest;
@ -68,7 +68,7 @@ public class UdiContrastService {
@Resource
UdiProductService udiProductService;
@Resource
NmpaUdiClient udiDlHttpClient;
NmpaUdiClientImpl udiDlHttpClient;
@Resource
BasicInsMaterialService basicInsMaterialService;

@ -14,7 +14,7 @@ import com.glxp.api.entity.basic.UdiRelevanceEntity;
import com.glxp.api.entity.system.SystemParamConfigEntity;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.httpClient.NmpaUdiClient;
import com.glxp.api.httpClient.serviceClient.impl.NmpaUdiClientImpl;
import com.glxp.api.req.basic.FilterUdiIpLogRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.basic.UdiRelevanceResponse;
@ -43,7 +43,7 @@ public class BasicProductsImportLogServiceImpl implements BasicProductsImportLog
@Resource
BasicProductsImportLogDao udiInfoImportLogDao;
@Resource
NmpaUdiClient nmpaUdiClient;
NmpaUdiClientImpl nmpaUdiClientImpl;
@Resource
BasicProductsImportDetailService basicProductsImportDetailService;
@Resource
@ -118,7 +118,7 @@ public class BasicProductsImportLogServiceImpl implements BasicProductsImportLog
udiInfoEntity = udiProductService.findByNameCode(basicProductsImportDetailEntity.getUdiCode());
List<UdiProductEntity> froms = null;
if (udiInfoEntity == null) {
froms = nmpaUdiClient.getUdiByDi(basicProductsImportDetailEntity.getUdiCode());
froms = nmpaUdiClientImpl.getUdiByDi(basicProductsImportDetailEntity.getUdiCode());
if (froms != null && !froms.isEmpty()) {
udiInfoEntity = froms.get(0);

@ -30,7 +30,7 @@ import com.glxp.api.entity.inv.*;
import com.glxp.api.entity.sync.SyncDataBustypeEntity;
import com.glxp.api.entity.thrsys.ThrSystemBusApiEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.httpClient.HttpOkClient;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.inout.FilterOrderRequest;
import com.glxp.api.req.inout.FilterUploadOrderRequest;
import com.glxp.api.req.inout.OrderEditRequest;

@ -10,8 +10,8 @@ import com.glxp.api.constant.BasicProcessStatus;
import com.glxp.api.constant.Constant;
import com.glxp.api.entity.sync.SyncDataSetEntity;
import com.glxp.api.entity.thrsys.*;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.HttpOkClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.thrsys.*;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrCorpsResponse;
@ -330,7 +330,7 @@ public class ThrCorpsDlService {
thrUnitMaintainFilterRequest.setErpId(thrCorpExportRequest.getUnitId());
thrUnitMaintainFilterRequest.setPage(page);
thrUnitMaintainFilterRequest.setLimit(limit);
BaseResponse<PageSimpleResponse<ThrCorpsResponse>> erpCrops = new ErpBasicClient().getErpCrop(thrUnitMaintainFilterRequest);
BaseResponse<PageSimpleResponse<ThrCorpsResponse>> erpCrops = erpBasicClient.getErpCrop(thrUnitMaintainFilterRequest);
if (erpCrops.getCode() != 20000) {
return null;
}

@ -4,7 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrProductsResponse;

@ -6,7 +6,7 @@ import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.constant.BasicProcessStatus;
import com.glxp.api.constant.Constant;
import com.glxp.api.entity.thrsys.*;
import com.glxp.api.httpClient.ErpInvClient;
import com.glxp.api.httpClient.serviceClient.impl.ErpInvClientImpl;
import com.glxp.api.req.thrsys.*;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrInvProductResponse;
@ -39,7 +39,7 @@ public class ThrInvProductsDlService {
@Resource
ThrInvProductsDetailService thrInvProductsDetailService;
@Resource
ErpInvClient erpInvClient;
ErpInvClientImpl erpInvClientImpl;
@Resource
CustomerService customerServicel;
@ -241,7 +241,7 @@ public class ThrInvProductsDlService {
ThrOnhandRequest.setPage(page);
ThrOnhandRequest.setLimit(limit);
BaseResponse<PageSimpleResponse<ThrInvProductResponse>> responseBaseResponse = erpInvClient.getInvPrdoductResponse(ThrOnhandRequest, productUrl);
BaseResponse<PageSimpleResponse<ThrInvProductResponse>> responseBaseResponse = erpInvClientImpl.getInvPrdoductResponse(ThrOnhandRequest, productUrl);
if (responseBaseResponse.getCode() != 20000) {
thrInvProductsImportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_FAIL);
@ -305,7 +305,7 @@ public class ThrInvProductsDlService {
ThrOnhandRequest.setPage(page);
ThrOnhandRequest.setLimit(limit);
BaseResponse<PageSimpleResponse<ThrInvProductResponse>> responseBaseResponse = erpInvClient.getInvPrdoductResponse(ThrOnhandRequest, invPiUrl);
BaseResponse<PageSimpleResponse<ThrInvProductResponse>> responseBaseResponse = erpInvClientImpl.getInvPrdoductResponse(ThrOnhandRequest, invPiUrl);
if (responseBaseResponse != null && responseBaseResponse.getCode() == 20000) {
List<ThrInvProductResponse> ThrInvProductResponses = responseBaseResponse.getData().getList();
if (ThrInvProductResponses != null && ThrInvProductResponses.size() > 0) {

@ -8,7 +8,7 @@ import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.dao.thrsys.ThrManufacturerMapper;
import com.glxp.api.entity.thrsys.ThrManufacturerEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.thrsys.FilterBasicProducstRequest;
import com.glxp.api.req.thrsys.FilterThrCorpRequest;
import com.glxp.api.req.thrsys.ThrManuFilterRequest;

@ -7,8 +7,8 @@ import com.glxp.api.constant.BasicProcessStatus;
import com.glxp.api.constant.Constant;
import com.glxp.api.entity.sync.SyncDataSetEntity;
import com.glxp.api.entity.thrsys.*;
import com.glxp.api.httpClient.ErpOrderClient;
import com.glxp.api.httpClient.HttpOkClient;
import com.glxp.api.httpClient.serviceClient.impl.ErpOrderClientImpl;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.thrsys.FilterThrOrderDetailRequest;
import com.glxp.api.req.thrsys.FilterThrOrderRequest;
import com.glxp.api.req.thrsys.PostThrOrderRequest;
@ -47,7 +47,7 @@ public class ThrOrdersDlService {
ThrOrderImportDetailService thrOrderImportDetailService;
@Resource
private ErpOrderClient erpOrderClient;
private ErpOrderClientImpl erpOrderClientImpl;
@Resource
SyncDataSetService syncDataSetService;
@ -307,7 +307,7 @@ public class ThrOrdersDlService {
filterThrOrderRequest.setBillAction(action);
FilterThrOrderRequest filterOrderRequest = new FilterThrOrderRequest();
BeanUtils.copyProperties(filterThrOrderRequest, filterOrderRequest);
BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse = erpOrderClient.getThrOrderResponse(filterOrderRequest);
BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse = erpOrderClientImpl.getThrOrderResponse(filterOrderRequest);
if (responseBaseResponse != null && responseBaseResponse.getCode() == 20000) {
List<ThrOrderResponse> erpOrderResponses = responseBaseResponse.getData().getList();
if (erpOrderResponses != null && erpOrderResponses.size() > 0) {
@ -374,7 +374,7 @@ public class ThrOrdersDlService {
BeanUtils.copyProperties(filterThrOrderRequest, filterOrderRequest);
filterOrderRequest.setPage(page);
filterOrderRequest.setLimit(limit);
BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse = erpOrderClient.getThrOrderResponse(filterOrderRequest);
BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse = erpOrderClientImpl.getThrOrderResponse(filterOrderRequest);
if (responseBaseResponse != null && responseBaseResponse.getCode() == 20000) {
List<ThrOrderResponse> erpOrderResponses = responseBaseResponse.getData().getList();
if (erpOrderResponses != null && erpOrderResponses.size() > 0) {

@ -10,8 +10,8 @@ import com.glxp.api.entity.sync.SyncDataSetEntity;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.entity.thrsys.ThrProductsExportLogEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.HttpOkClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.httpClient.utils.HttpOkClient;
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
import com.glxp.api.req.thrsys.PostThrProductsRequest;
import com.glxp.api.req.thrsys.ThrProductsExportRequest;

@ -4,7 +4,7 @@ import cn.hutool.extra.pinyin.PinyinUtil;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.constant.ConstantStatus;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.thrsys.FilterThrCorpRequest;
import com.glxp.api.req.thrsys.ThrUnitMaintainFilterRequest;
import com.glxp.api.res.PageSimpleResponse;

@ -4,7 +4,7 @@ import cn.hutool.core.collection.CollUtil;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.dao.thrsys.YbDrugMapper;
import com.glxp.api.entity.thrsys.YbDrug;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.basic.YbDrugDetailFilterRequest;
import com.glxp.api.res.PageSimpleResponse;
import org.springframework.stereotype.Service;

@ -10,7 +10,7 @@ import com.glxp.api.dao.thrsys.ThrDeptDao;
import com.glxp.api.dao.thrsys.ThrInvWarehouseDao;
import com.glxp.api.entity.thrsys.ThrDeptEntity;
import com.glxp.api.entity.thrsys.ThrInvWarehouseEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.thrsys.FilterThrDeptRequest;
import com.glxp.api.req.thrsys.UdiwmsWarehouseRequest;
import com.glxp.api.res.PageSimpleResponse;

@ -5,7 +5,7 @@ import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.dao.thrsys.ThrSystemDetailDao;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.httpClient.ErpBasicClient;
import com.glxp.api.httpClient.serviceClient.ErpBasicClient;
import com.glxp.api.req.thrsys.FilterBasicThirdSysDetailRequest;
import com.glxp.api.service.thrsys.ThrSystemDetailService;
import lombok.extern.slf4j.Slf4j;

Loading…
Cancel
Save