| | |
| | | entrantRankVo.setName(participant.getName()); |
| | | }else{ |
| | | //学员 |
| | | TStudent tStudent = studentClient.queryById(entrantRank.getId()); |
| | | TStudent tStudent = studentClient.queryById(entrantRank.getId().intValue()); |
| | | entrantRankVo.setName(tStudent.getName()); |
| | | } |
| | | //全国排名---直接数据库分组查询后排序 |
| | |
| | | for (int i = 0; i < lists.size(); i++) { |
| | | Map<String, Object> map = lists.get(i); |
| | | Integer participantType = Integer.valueOf(map.get("participantType").toString()); |
| | | Integer participantId = Integer.valueOf(map.get("participantId").toString()); |
| | | Long participantId = Long.valueOf(map.get("participantId").toString()); |
| | | Integer appUserId = Integer.valueOf(map.get("appUserId").toString()); |
| | | Integer totalSession = Integer.valueOf(map.get("totalSession").toString()); |
| | | Double winRate = Double.valueOf(map.get("winRate").toString()); |
| | |
| | | worldCupRankVo.setWinRate(winRate); |
| | | //学员 |
| | | if(participantType == 1){ |
| | | TStudent tStudent = studentClient.queryById(participantId); |
| | | TStudent tStudent = studentClient.queryById(participantId.intValue()); |
| | | worldCupRankVo.setAvatar(tStudent.getHeadImg()); |
| | | String name = tStudent.getName(); |
| | | if(name.length() > 2){ |
| | |
| | | worldCupRankVo.setWinRate(winRate); |
| | | //学员 |
| | | if(participantType == 1){ |
| | | TStudent tStudent = studentClient.queryById(participantId); |
| | | TStudent tStudent = studentClient.queryById(participantId.intValue()); |
| | | worldCupRankVo.setAvatar(tStudent.getHeadImg()); |
| | | String name = tStudent.getName(); |
| | | if(name.length() > 2){ |
| | |
| | | for (int i = 0; i < mapList.size(); i++) { |
| | | Map<String, Object> map = mapList.get(i); |
| | | Integer participantType = Integer.valueOf(map.get("participantType").toString()); |
| | | Integer participantId = Integer.valueOf(map.get("participantId").toString()); |
| | | Long participantId = Long.valueOf(map.get("participantId").toString()); |
| | | Integer appUserId = Integer.valueOf(map.get("appUserId").toString()); |
| | | Integer totalSession = Integer.valueOf(map.get("totalSession").toString()); |
| | | Integer win = Integer.valueOf(map.get("win").toString()); |
| | |
| | | AppUser appUser = appUserClient.getAppUser(appUserId); |
| | | map.put("province", appUser.getProvince() + appUser.getCity()); |
| | | if(1 == participantType){ |
| | | TStudent tStudent = studentClient.queryById(participantId); |
| | | TStudent tStudent = studentClient.queryById(participantId.intValue()); |
| | | map.put("name", tStudent.getName()); |
| | | map.put("phone", tStudent.getPhone()); |
| | | }else{ |
| | |
| | | for (int i = 0; i < mapList.size(); i++) { |
| | | Map<String, Object> map = mapList.get(i); |
| | | Integer participantType = Integer.valueOf(map.get("participantType").toString()); |
| | | Integer participantId = Integer.valueOf(map.get("participantId").toString()); |
| | | Long participantId = Long.valueOf(map.get("participantId").toString()); |
| | | Integer appUserId = Integer.valueOf(map.get("appUserId").toString()); |
| | | Integer totalSession = Integer.valueOf(map.get("totalSession").toString()); |
| | | Integer win = Integer.valueOf(map.get("win").toString()); |
| | |
| | | AppUser appUser = appUserClient.getAppUser(appUserId); |
| | | map.put("province", appUser.getProvince() + appUser.getCity()); |
| | | if(1 == participantType){ |
| | | TStudent tStudent = studentClient.queryById(participantId); |
| | | TStudent tStudent = studentClient.queryById(participantId.intValue()); |
| | | if(ToolUtil.isNotEmpty(name) && tStudent.getName().indexOf(name) == -1){ |
| | | continue; |
| | | } |
| | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", cupCompetitor.getId()); |
| | | Integer participantType = cupCompetitor.getParticipantType(); |
| | | Integer participantId = cupCompetitor.getParticipantId(); |
| | | Long participantId = cupCompetitor.getParticipantId(); |
| | | if(1 == participantType){ |
| | | TStudent tStudent = studentClient.queryById(participantId); |
| | | TStudent tStudent = studentClient.queryById(participantId.intValue()); |
| | | if(ToolUtil.isNotEmpty(name) && tStudent.getName().indexOf(name) == -1){ |
| | | continue; |
| | | } |
| | |
| | | List<Map<String, Object>> mapList = new ArrayList<>(); |
| | | for (Map<String, Object> map : list) { |
| | | Long participantType = Long.valueOf(map.get("participantType").toString()); |
| | | Integer participantId = Integer.valueOf(map.get("participantId").toString()); |
| | | Long participantId = Long.valueOf(map.get("participantId").toString()); |
| | | Integer ourScore = Integer.valueOf(map.get("ourScore").toString()); |
| | | Integer opponentScore = Integer.valueOf(map.get("opponentScore").toString()); |
| | | Integer matchResult = Integer.valueOf(map.get("matchResult").toString()); |
| | | if(1 == participantType){ |
| | | TStudent tStudent = studentClient.queryById(participantId); |
| | | TStudent tStudent = studentClient.queryById(participantId.intValue()); |
| | | if(ToolUtil.isNotEmpty(name) && tStudent.getName().indexOf(name) == -1){ |
| | | continue; |
| | | } |