diff --git a/luoo_user/src/main/java/com/luoo/user/Scheduler/DrawLotteryScheduler.java b/luoo_user/src/main/java/com/luoo/user/Scheduler/DrawLotteryScheduler.java index cf489e8..c596084 100644 --- a/luoo_user/src/main/java/com/luoo/user/Scheduler/DrawLotteryScheduler.java +++ b/luoo_user/src/main/java/com/luoo/user/Scheduler/DrawLotteryScheduler.java @@ -48,7 +48,7 @@ public class DrawLotteryScheduler { taskScheduler.initialize(); List signingList = drawLotteryService.findSigningList(); signingList.forEach(item -> { - scheduleDraw(item.getDrawTime(), item.getId()); + scheduleDraw(item.getApplyEndTime(), item.getId()); }); } diff --git a/luoo_user/src/main/java/com/luoo/user/service/LotteryService.java b/luoo_user/src/main/java/com/luoo/user/service/LotteryService.java index 760090b..19bc45c 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/LotteryService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/LotteryService.java @@ -301,7 +301,7 @@ public class LotteryService { lotteryDao.save(lottery); - String result = drawLotteryScheduler.scheduleDraw(lottery.getDrawTime(), id); + String result = drawLotteryScheduler.scheduleDraw(lottery.getApplyEndTime(), id); if (StringUtils.isNotBlank(result)) { throw new BizException(result); }