Commit 6470cac9 by ping.wu

下单实时校验券的可用时间段

parent ed58e00f
...@@ -770,6 +770,8 @@ public class CheckOrder { ...@@ -770,6 +770,8 @@ public class CheckOrder {
} }
int i = 1; int i = 1;
for (GetCouponDetailResponseDto.Details details : getCouponDetailResponseDto.getDetails()){ for (GetCouponDetailResponseDto.Details details : getCouponDetailResponseDto.getDetails()){
//券的可用时间段校验,点餐和结算页虽然有校验,但无法确定会立马下单,避免在创建订单成功后锁定优惠券失败,创建无效订单
checkCouonRedeemTime(details.getActiveRedeemTimeIntervalList());
ShoppingCartInfoRequestVo.couponCode coupon = new ShoppingCartInfoRequestVo.couponCode(); ShoppingCartInfoRequestVo.couponCode coupon = new ShoppingCartInfoRequestVo.couponCode();
coupon.setCouponCode(details.getCode()); coupon.setCouponCode(details.getCode());
coupon.setActivityCode(details.getActive().getActiveCode()); coupon.setActivityCode(details.getActive().getActiveCode());
......
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