|
|
@@ -322,7 +322,9 @@ public class TournamentsTemplateServiceImpl implements ITournamentsTemplateServi
|
|
|
bindBlindStructure(tournamentId, bo.getBlindStructureId());
|
|
|
|
|
|
// 添加报名条件
|
|
|
- addEntryCondition(tournamentId, bo.getItemsId(), bo.getItemsNum());
|
|
|
+ if(bo.getItemsId()!=null){
|
|
|
+ addEntryCondition(tournamentId, bo.getItemsId(), bo.getItemsNum());
|
|
|
+ }
|
|
|
|
|
|
// 处理奖励分布
|
|
|
processPrizeDistributions(tournamentId, prizeList);
|
|
|
@@ -493,13 +495,17 @@ public class TournamentsTemplateServiceImpl implements ITournamentsTemplateServi
|
|
|
|
|
|
// 绑定盲注结构
|
|
|
bindBlindStructure(tournamentId, bo.getBlindStructureId());
|
|
|
-
|
|
|
- // 修改报名条件
|
|
|
- TournamentEntryConditionsTemplate tournamentEntryConditions=new TournamentEntryConditionsTemplate();
|
|
|
- tournamentEntryConditions.setItemId(bo.getItemsId());
|
|
|
- tournamentEntryConditions.setRequiredQuantity(bo.getItemsNum());
|
|
|
- tournamentEntryConditions.setTournamentId(tournamentId);
|
|
|
- tournamentEntryConditionsMapper.updateByTournamentIdTemplate(tournamentEntryConditions);
|
|
|
+ tournamentEntryConditionsMapper.deleteByTournamentId(tournamentId);
|
|
|
+ if(bo.getItemsId()!=null){
|
|
|
+ // 修改报名条件
|
|
|
+ /* TournamentEntryConditionsTemplate tournamentEntryConditions=new TournamentEntryConditionsTemplate();
|
|
|
+ tournamentEntryConditions.setItemId(bo.getItemsId());
|
|
|
+ tournamentEntryConditions.setRequiredQuantity(bo.getItemsNum());
|
|
|
+ tournamentEntryConditions.setTournamentId(tournamentId);
|
|
|
+ tournamentEntryConditionsMapper.updateByTournamentIdTemplate(tournamentEntryConditions);
|
|
|
+ */
|
|
|
+ addEntryCondition(tournamentId, bo.getItemsId(), bo.getItemsNum());
|
|
|
+ }
|
|
|
|
|
|
//删除奖励排名 同时删除奖励对应信息
|
|
|
List<PrizeDistributionsVo> prizeDistributionsVos = prizeDistributionsMapper.selectByTournamentIdTemplate(tournamentId);
|