Commit d7c4b7dc by 徐康

优惠券使用校验

parent 2ad3fc97
...@@ -231,6 +231,11 @@ public class InterfaceAddressConstant { ...@@ -231,6 +231,11 @@ public class InterfaceAddressConstant {
public static final String UPDATE_COST_COUPONCODE = "/order/v2/mcCafe/updateCostCouponCode"; public static final String UPDATE_COST_COUPONCODE = "/order/v2/mcCafe/updateCostCouponCode";
/** /**
* 查询使用了优惠券的订单数量
*/
public static final String QUERY_USE_COUPON_ORDER = "/order/v2/mcCafe/queryUseCouponOrder";
/**
* 更新买一赠一寄件发送优惠券信息 * 更新买一赠一寄件发送优惠券信息
*/ */
public static final String UPDATE_BUYONEGIVEONE_SEND_COUPON = "order/v2/updateBuyOneGiveOneSendCoupon"; public static final String UPDATE_BUYONEGIVEONE_SEND_COUPON = "order/v2/updateBuyOneGiveOneSendCoupon";
......
package com.freemud.application.sdk.api.ordercenter.request;
import lombok.Data;
import java.util.List;
/**
* All rights Reserved, Designed By www.freemud.cn
*
* @version V1.0
* @Title: UpdateCouponCodeReq
* @Package cn.freemud.shared.order.vo.req.order
* @Description:
* @author: ping1.wu
* @date: 2020/10/8 10:33
* @Copyright: 2020 www.freemud.cn Inc. All rights reserved.
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
@Data
public class QueryUseCouponOrderReq {
private String orderCode;
private String partnerId;
private List<String> couponCodeList;
}
...@@ -900,4 +900,17 @@ public class OrderSdkService { ...@@ -900,4 +900,17 @@ public class OrderSdkService {
return responseHandle(responseDTO); return responseHandle(responseDTO);
} }
/**
* 查询使用了特定优惠券的订单数量
* @param request
* @param trackingNo
* @return
*/
public BaseResponse<Long> queryUseCouponOrder(QueryUseCouponOrderReq request, String trackingNo) {
OrderBaseResp<Long> responseDTO = RequestThirdPartyUtils.httpJsonReqComplexNew(restTemplate, QUERY_USE_COUPON_ORDER,
createBaseRequest(request, trackingNo), new ParameterizedTypeReference<OrderBaseResp>() {
});
return responseHandle(responseDTO);
}
} }
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