fix: 移除促销活动,活动起始时间小于现在时间限制
This commit is contained in:
parent
061d924d46
commit
3c5609545b
@ -55,9 +55,9 @@ public class PromotionTools {
|
|||||||
DateTime now = DateUtil.date();
|
DateTime now = DateUtil.date();
|
||||||
|
|
||||||
//如果活动起始时间小于现在时间
|
//如果活动起始时间小于现在时间
|
||||||
if (now.after(startTime)) {
|
// if (now.after(startTime)) {
|
||||||
throw new ServiceException(ResultCode.PROMOTION_START_TIME_ERROR);
|
// throw new ServiceException(ResultCode.PROMOTION_START_TIME_ERROR);
|
||||||
}
|
// }
|
||||||
//如果活动结束时间小于现在时间
|
//如果活动结束时间小于现在时间
|
||||||
if (endTime != null && now.after(endTime)) {
|
if (endTime != null && now.after(endTime)) {
|
||||||
throw new ServiceException(ResultCode.PROMOTION_END_TIME_ERROR);
|
throw new ServiceException(ResultCode.PROMOTION_END_TIME_ERROR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user