满减活动
优惠券 取消时间检验
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
AND is_del = 0
|
||||
AND status = 2
|
||||
AND NOW() BETWEEN valid_start_time AND valid_end_time
|
||||
AND (use_time_type = 'all' OR
|
||||
(use_time_type = 'custom' AND TIME(NOW()) BETWEEN use_start_time AND use_end_time))
|
||||
AND use_days LIKE CONCAT('%', #{useDay}, '%')
|
||||
# AND (use_time_type = 'all' OR
|
||||
# (use_time_type = 'custom' AND TIME(NOW()) BETWEEN use_start_time AND use_end_time))
|
||||
# AND use_days LIKE CONCAT('%', #{useDay}, '%')
|
||||
ORDER BY sort DESC,
|
||||
update_time DESC,
|
||||
create_time DESC
|
||||
|
||||
@@ -639,7 +639,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
||||
throw new ValidateException("生成支付订单失败,券:" + coupon.getTitle() + "与会员价不共享");
|
||||
}
|
||||
isUseLimit(coupon, record);
|
||||
isUseTime(coupon);
|
||||
// isUseTime(coupon);
|
||||
return coupon;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user