优惠券添加全部课程类型
This commit is contained in:
@@ -257,9 +257,6 @@ public class BuyOrderController {
|
||||
}
|
||||
CouponEntity coupon = couponService.getById(couponHistory.getCouponId());
|
||||
if (coupon != null){
|
||||
if (new BigDecimal(coupon.getUseLevel()).compareTo(totalPrice)>0){
|
||||
return R.error("未达到优惠券使用门槛");
|
||||
}
|
||||
couponHistory.setOrderId(buyOrder.getOrderId());
|
||||
couponService.useCouponAmount(couponHistory);
|
||||
totalPrice = totalPrice.subtract(coupon.getCouponAmount());
|
||||
|
||||
Reference in New Issue
Block a user