|
|
@ -247,7 +247,10 @@ public class LotteryService {
|
|
|
|
|
|
|
|
|
|
|
|
lotteryDao.save(lottery);
|
|
|
|
lotteryDao.save(lottery);
|
|
|
|
|
|
|
|
|
|
|
|
drawLotteryScheduler.scheduleDraw(lottery.getDrawTime(), id);
|
|
|
|
String result = drawLotteryScheduler.scheduleDraw(lottery.getDrawTime(), id);
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(result)) {
|
|
|
|
|
|
|
|
throw new BizException(result);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -267,7 +270,6 @@ public class LotteryService {
|
|
|
|
lottery.setUpdateUser(userLoginDto.getUserId());
|
|
|
|
lottery.setUpdateUser(userLoginDto.getUserId());
|
|
|
|
lottery.setUpdateUserName(userLoginDto.getNickName());
|
|
|
|
lottery.setUpdateUserName(userLoginDto.getNickName());
|
|
|
|
lottery.setStopReason(stopReason);
|
|
|
|
lottery.setStopReason(stopReason);
|
|
|
|
lottery.setStatus(PointEnums.LOTTERY_STATUS_SIGN.getCode());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lotteryDao.save(lottery);
|
|
|
|
lotteryDao.save(lottery);
|
|
|
|
|
|
|
|
|
|
|
|