!133 修复秒杀活动

Merge pull request !133 from OceansDeep/feature/pg
This commit is contained in:
OceansDeep 2022-02-22 14:46:15 +00:00 committed by Gitee
commit d1a112d3a3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -59,7 +59,7 @@ public class Seckill extends BasePromotions {
public Seckill(int day, String hours, String seckillRule) {
//默认创建*天后的秒杀活动
DateTime dateTime = DateUtil.beginOfDay(DateUtil.offsetDay(new Date(), day));
this.applyEndTime = DateUtil.offsetHour(new Date(), Integer.parseInt(hours) - 1);
this.applyEndTime = dateTime;
this.hours = hours;
this.seckillRule = seckillRule;
this.goodsNum = 0;