初始化秒杀活动

This commit is contained in:
lifenlong
2021-06-13 16:27:40 +08:00
parent a159c0d0db
commit 10dbed04b6
6 changed files with 32 additions and 35 deletions

View File

@@ -98,7 +98,7 @@ public class PromotionEverydayExecute implements EveryDayExecute {
private void addSeckill() {
Setting setting = settingService.get(SettingEnum.SECKILL_SETTING.name());
SeckillSetting seckillSetting = new Gson().fromJson(setting.getSettingValue(), SeckillSetting.class);
Seckill seckill = new Seckill(seckillSetting.getHours(), seckillSetting.getSeckillRule());
Seckill seckill = new Seckill(30,seckillSetting.getHours(), seckillSetting.getSeckillRule());
seckillService.saveSeckill(seckill);
}