| | |
| | | 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(); |
| | |
| | | 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); |