Commit 1cfaa051 by 徐康

修复批量查询优惠券入参问题

parent 24806fc5
...@@ -484,14 +484,14 @@ public class CheckMCCafeOrder { ...@@ -484,14 +484,14 @@ public class CheckMCCafeOrder {
if (StringUtils.isNotBlank(createOrderVo.getCouponCode())) { if (StringUtils.isNotBlank(createOrderVo.getCouponCode())) {
couponCodeList.add(new MCCafeCouponVo(createOrderVo.getCouponCode())); couponCodeList.add(new MCCafeCouponVo(createOrderVo.getCouponCode()));
} }
if (StringUtils.isNotBlank(createOrderVo.getCouponCode())) { if (StringUtils.isNotBlank(createOrderVo.getFreightCouponCode())) {
couponCodeList.add(new MCCafeCouponVo(createOrderVo.getFreightCouponCode())); couponCodeList.add(new MCCafeCouponVo(createOrderVo.getFreightCouponCode()));
} }
if (CollectionUtils.isNotEmpty(couponCodeList)) { if (CollectionUtils.isNotEmpty(couponCodeList)) {
// 校验couponCode // 校验couponCode
MCCafeCouponRequest mcCafeCouponRequest = MCCafeCouponRequest.builder() MCCafeCouponRequest mcCafeCouponRequest = MCCafeCouponRequest.builder()
.ver(Integer.valueOf(Version.VERSION_1)) .ver(88)
.reqtype(CouponReqTypeEnum.QUERY.getCode()) .reqtype(CouponReqTypeEnum.BATCH_QUERY.getCode())
.partnerId(Integer.parseInt(createOrderVo.getPartnerId())) .partnerId(Integer.parseInt(createOrderVo.getPartnerId()))
.store_id(createOrderVo.getShopId()) .store_id(createOrderVo.getShopId())
.station_id("1") .station_id("1")
...@@ -549,7 +549,7 @@ public class CheckMCCafeOrder { ...@@ -549,7 +549,7 @@ public class CheckMCCafeOrder {
} }
if(CollectionUtils.isNotEmpty(mcCafeCouponVos)) { if(CollectionUtils.isNotEmpty(mcCafeCouponVos)) {
MCCafeCouponRequest mcCafeCouponRequest = MCCafeCouponRequest.builder() MCCafeCouponRequest mcCafeCouponRequest = MCCafeCouponRequest.builder()
.ver(Integer.valueOf(Version.VERSION_1)) .ver(88)
.reqtype(CouponReqTypeEnum.BATCH_QUERY.getCode()) .reqtype(CouponReqTypeEnum.BATCH_QUERY.getCode())
.partnerId(Integer.parseInt(createOrderVo.getPartnerId())) .partnerId(Integer.parseInt(createOrderVo.getPartnerId()))
.store_id(createOrderVo.getShopId()) .store_id(createOrderVo.getShopId())
......
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