| | |
| | | if(null == uid){ |
| | | return ResultUtil.success(); |
| | | } |
| | | System.err.println("11111"+entrantRank); |
| | | |
| | | entrantRank.setAppUserId(uid); |
| | | EntrantRankVo entrantRank1 = worldCupCompetitorService.getEntrantRank(entrantRank); |
| | | return ResultUtil.success(entrantRank1); |
| | |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | System.err.println("22222"+worldCupRank); |
| | | |
| | | worldCupRank.setAppUserId(uid); |
| | | List<WorldCupRankVo> worldCupRank1 = worldCupCompetitorService.getWorldCupRank(worldCupRank); |
| | | System.err.println("排名数据"+worldCupRank1); |
| | | return ResultUtil.success(worldCupRank1); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | }) |
| | | public ResultUtil<List<WorldCupListVo>> getWorldCupListFromRank(MyWorldCupList myWorldCupList){ |
| | | try { |
| | | System.err.println("33333"+myWorldCupList); |
| | | Integer uid = tokenUtil.getUserIdFormRedis(); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | |
| | | public List<WorldCupUserListVo> userDetailsOfSearch(@RequestBody UserDetailsOfSearch search){ |
| | | // 已报名的用户 |
| | | List<WorldCupPaymentParticipant> list = worldCupPaymentParticipantService.list(new LambdaQueryWrapper<WorldCupPaymentParticipant>().eq(WorldCupPaymentParticipant::getWorldCupId, search.getId()) |
| | | .eq(WorldCupPaymentParticipant::getAlreadyEntered, 0)); |
| | | ); |
| | | ArrayList<WorldCupUserListVo> worldCupUserListVos = new ArrayList<>(); |
| | | if(list.size()>0){ |
| | | List<Long> collect = list.stream().map(WorldCupPaymentParticipant::getParticipantId).collect(Collectors.toList()); |
| | |
| | | Date birthday = appUser.getBirthday(); |
| | | LocalDate now = LocalDate.now(); |
| | | if(birthday!=null){ |
| | | int age = now.getYear() - birthday.getYear(); |
| | | int age = now.getYear() - (birthday.getYear()+1900); |
| | | worldCupUserListVo.setAge(age); |
| | | } |
| | | worldCupUserListVos.add(worldCupUserListVo); |
| | |
| | | vo.setType(10); |
| | | userIntegralChangesClient.saveUserIntegralChanges(vo); |
| | | } |
| | | worldCupCompetitor.setOpponentScore(redScore); |
| | | worldCupCompetitor.setOpponentScore(blueScore); |
| | | worldCupCompetitor.setParticipationIntegral(worldCup.getParticipationIntegral()); |
| | | //增加积分明细 |
| | | SaveUserIntegralChangesVo vo = new SaveUserIntegralChangesVo(); |