| | |
| | | Integer winIntegral = Integer.valueOf(null == map.get("winIntegral") ? "0" : map.get("winIntegral").toString()); |
| | | Integer drawIntegral = Integer.valueOf(null == map.get("drawIntegral") ? "0" : map.get("drawIntegral").toString()); |
| | | Integer loseIntegral = Integer.valueOf(null == map.get("loseIntegral") ? "0" : map.get("loseIntegral").toString()); |
| | | Integer participationIntegral = Integer.valueOf(null == map.get("participationIntegral") ? "0" : map.get("participationIntegral").toString()); |
| | | //学员 |
| | | if(participantType == 1){ |
| | | TStudent tStudent = studentClient.queryById(participantId.intValue()); |
| | |
| | | } |
| | | } |
| | | map.put("totalSession", num); |
| | | map.put("totalIntegral", winIntegral+drawIntegral+loseIntegral); |
| | | map.put("totalIntegral", winIntegral+drawIntegral+loseIntegral+participationIntegral); |
| | | map.put("winRate", "0"); |
| | | for (Map<String, Object> objectMap : lists1) { |
| | | Integer participantType1 = Integer.valueOf(objectMap.get("participantType").toString()); |
| | |
| | | ArrayList<UserVo> objects = new ArrayList<>(); |
| | | for (WorldCupCompetitor competitor : collect1) { |
| | | UserVo userVo = new UserVo(); |
| | | AppUser appUser = appUserClient.getAppUser(competitor.getAppUserId()); |
| | | userVo.setUserName(appUser.getName()); |
| | | userVo.setAvatar(appUser.getHeadImg()); |
| | | TStudent tStudent = studentClient.queryById(competitor.getParticipantId().intValue()); |
| | | userVo.setUserName(tStudent.getName()); |
| | | userVo.setAvatar(tStudent.getHeadImg()); |
| | | // 当前日期和生日计算年龄 |
| | | Date birthday = appUser.getBirthday(); |
| | | Date birthday = tStudent.getBirthday(); |
| | | |
| | | if(birthday!=null){ |
| | | int age = now.getYear() - birthday.getYear(); |
| | |
| | | ArrayList<UserVo> objects1 = new ArrayList<>(); |
| | | for (WorldCupCompetitor competitor : collect2) { |
| | | UserVo userVo = new UserVo(); |
| | | AppUser appUser = appUserClient.getAppUser(competitor.getAppUserId()); |
| | | userVo.setUserName(appUser.getName()); |
| | | userVo.setAvatar(appUser.getHeadImg()); |
| | | TStudent tStudent = studentClient.queryById(competitor.getParticipantId().intValue()); |
| | | userVo.setUserName(tStudent.getName()); |
| | | userVo.setAvatar(tStudent.getHeadImg()); |
| | | // 当前日期和生日计算年龄 |
| | | Date birthday = appUser.getBirthday(); |
| | | Date birthday = tStudent.getBirthday(); |
| | | |
| | | if(birthday!=null){ |
| | | int age = now.getYear() - birthday.getYear(); |