Commit 9b80756d authored by liming's avatar liming

系列赛预选赛初始化增加机会次数限制

parent 5bec6e95
......@@ -173,6 +173,13 @@ public class SeriesService {
throw new BusinessException("您没有报名当前赛区比赛,不能进入比赛!");
}
SeriesRound round = seriesRoundMapper.selectById(seriesMatch.getRoundId());
Integer leftChance = seriesBusinessMapper.getSeriesQualifyingMatchLeftChance(seriesMatch.getRoundId(),
dto.getSportUserId());
if(leftChance.compareTo(round.getChance())>=0){
throw new BusinessException("您的预选赛参与机会已经用完!");
}
SeriesMatchRecordInitVO result = new SeriesMatchRecordInitVO();
result.setSportType(SportType.BICYCLE);
result.setGameMode(GameMode.SERIES_MATCH);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment