| | |
| | | participant.add(participantVo); |
| | | } |
| | | |
| | | |
| | | for (Integer i : collect) { |
| | | TStudent tStudent = studentClient.queryById(i); |
| | | ParticipantVo participantVo = new ParticipantVo(); |
| | | participantVo.setId(tStudent.getId()); |
| | | participantVo.setName(tStudent.getName()); |
| | | participantVo.setIdcard(tStudent.getIdCard()); |
| | | Integer age = Integer.valueOf(sdf_year.format(new Date())) - Integer.valueOf(sdf_year.format(tStudent.getBirthday())); |
| | | participantVo.setAge(age); |
| | | participantVo.setPhone(tStudent.getPhone()); |
| | | participant.add(participantVo); |
| | | |
| | | if (tStudent!=null) { |
| | | ParticipantVo participantVo = new ParticipantVo(); |
| | | participantVo.setId(tStudent.getId()); |
| | | participantVo.setName(tStudent.getName()); |
| | | participantVo.setIdcard(tStudent.getIdCard()); |
| | | Integer age = Integer.valueOf(sdf_year.format(new Date())) - Integer.valueOf(sdf_year.format(tStudent.getBirthday())); |
| | | participantVo.setAge(age); |
| | | participantVo.setPhone(tStudent.getPhone()); |
| | | participant.add(participantVo); |
| | | } |
| | | |
| | | } |
| | | |