添加秒杀活动设置

This commit is contained in:
lifenlong
2021-06-02 17:30:32 +08:00
parent b2d149c714
commit 07b9e413d6
8 changed files with 11 additions and 13 deletions

View File

@@ -110,7 +110,7 @@ public class SeckillServiceImpl extends ServiceImpl<SeckillMapper, Seckill> impl
// 保存到MYSQL中
boolean result = this.save(seckill);
// 保存到MONGO中
this.mongoTemplate.save(seckill);
this.mongoTemplate.save(seckillVO);
//添加秒杀延时任务
this.addSeckillStartTask(seckillVO);
return result;