| | |
| | | */ |
| | | @Override |
| | | public Map<String, Object> worldCupGameStatisticsListInfo(WorldCupGameStatisticsListInfo worldCupGameStatisticsListInfo) { |
| | | Long id = worldCupGameStatisticsListInfo.getId(); |
| | | Long participantId = worldCupGameStatisticsListInfo.getParticipantId(); |
| | | Integer participantType = worldCupGameStatisticsListInfo.getParticipantType(); |
| | | String name = worldCupGameStatisticsListInfo.getName(); |
| | | WorldCupCompetitor worldCupCompetitor = this.getById(id); |
| | | List<WorldCupCompetitor> list = this.list(new QueryWrapper<WorldCupCompetitor>().eq("code", worldCupCompetitor.getCode())); |
| | | List<WorldCupCompetitor> list = this.list(new QueryWrapper<WorldCupCompetitor>() |
| | | .eq("participantType", participantType).eq("participantId", participantId) |
| | | .isNotNull("matchResult").orderByDesc("startTime")); |
| | | List<Map<String, Object>> mapList = new ArrayList<>(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy.HH.dd HH:mm"); |
| | | for (WorldCupCompetitor cupCompetitor : list) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", cupCompetitor.getId()); |
| | | Integer participantType = cupCompetitor.getParticipantType(); |
| | | Long participantId = cupCompetitor.getParticipantId(); |
| | | if(1 == participantType){ |
| | | TStudent tStudent = studentClient.queryById(participantId.intValue()); |
| | | if(ToolUtil.isNotEmpty(name) && tStudent.getName().indexOf(name) == -1){ |