Commit 87b38f4a by shuhu.hou@freemud.cn

新增根据订单号查询售后单

parent fd61cca6
......@@ -100,6 +100,10 @@ public class InterfaceAddressConstant {
*/
public static final String BATCH_QUERY_AFTER_SALES = "afterSales/v2/batchQuery";
/**
* 根据订单号查询售后单
*/
public static final String QUERY_AFTER_SALES_BY_ORDERCODE = "afterSales/v2/queryByOrder";
/**
* 查询关联订单
*/
public static final String QUERY_RELATED_ORDER_BY_CODE = "order/v2/queryRelatedOrderByCode";
......
package com.freemud.application.sdk.api.ordercenter.request;
import lombok.Data;
/**
* All rights Reserved, Designed By www.freemud.cn
*
* @version V1.0
* @Title: QueryAfterSalesByOrderCodeReq
* @Package com.freemud.application.sdk.api.ordercenter.request
* @Description:
* @author: shuhu.hou
* @date: 2020/5/18 15:26
* @Copyright: 2020 www.freemud.cn Inc. All rights reserved.
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
@Data
public class QueryAfterSalesByOrderCodeReq {
/**
* 商户号
*/
private String partnerId;
/**
* 售后单号
*/
private String orderCode;
}
......@@ -9,6 +9,7 @@ import com.freemud.application.sdk.api.ordercenter.request.create.BatchQueryByCo
import com.freemud.application.sdk.api.ordercenter.request.create.CreateFatherSonOrderReq;
import com.freemud.application.sdk.api.ordercenter.request.create.CreateOrderRequest;
import com.freemud.application.sdk.api.ordercenter.response.*;
import com.freemud.application.sdk.api.ordercenter.response.orderInfo.AfterSalesOrderResp;
import com.freemud.application.sdk.api.ordercenter.response.orderInfo.OrderInfoReqs;
import com.freemud.application.sdk.api.ordercenter.response.orderInfo.QueryByCodeResponse;
import com.freemud.application.sdk.api.ordercenter.util.ResponseUtil;
......@@ -461,6 +462,23 @@ public class OrderSdkService {
return createBaseResponse(responseDTO);
}
/**
* 根据订单号查询售后单
* @param partnerId
* @param orderCode
* @return
*/
public BaseResponse<List<AfterSalesOrderResp>> queryAfterSaleByOrderCode(String partnerId,String orderCode){
QueryAfterSalesByOrderCodeReq queryAfterSalesByOrderCodeReq = new QueryAfterSalesByOrderCodeReq();
queryAfterSalesByOrderCodeReq.setOrderCode(orderCode);
queryAfterSalesByOrderCodeReq.setPartnerId(partnerId);
OrderBaseResp<List<AfterSalesOrderResp>> responseDTO = RequestThirdPartyUtils.httpJsonReqComplexNew(restTemplate, InterfaceAddressConstant.BATCH_QUERY_AFTER_SALES,
createBaseRequest(queryAfterSalesByOrderCodeReq, ""), new ParameterizedTypeReference<OrderBaseResp<List<AfterSalesOrderResp>>>() {
});
return responseHandle(responseDTO);
}
private BaseResponse<BatchQueryAfterSalesResp> createBaseResponse(BatchQueryAfterSalesBaseResponse<AfterSalesPageResp> responseDTO) {
if (responseDTO == null) {
return responseHandle(null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment