release- 报名结束即时开奖

release-2024-04-25
huangyawei 1 month ago
parent be37284df7
commit 5ec145c6ea

@ -48,7 +48,7 @@ public class DrawLotteryScheduler {
taskScheduler.initialize(); taskScheduler.initialize();
List<Lottery> signingList = drawLotteryService.findSigningList(); List<Lottery> signingList = drawLotteryService.findSigningList();
signingList.forEach(item -> { signingList.forEach(item -> {
scheduleDraw(item.getDrawTime(), item.getId()); scheduleDraw(item.getApplyEndTime(), item.getId());
}); });
} }

@ -301,7 +301,7 @@ public class LotteryService {
lotteryDao.save(lottery); lotteryDao.save(lottery);
String result = drawLotteryScheduler.scheduleDraw(lottery.getDrawTime(), id); String result = drawLotteryScheduler.scheduleDraw(lottery.getApplyEndTime(), id);
if (StringUtils.isNotBlank(result)) { if (StringUtils.isNotBlank(result)) {
throw new BizException(result); throw new BizException(result);
} }

Loading…
Cancel
Save