| | |
| | | return ResultUtil.error("无效二维码"); |
| | | } |
| | | WorldCupPeopleVo worldCupPeopleVo = new WorldCupPeopleVo(); |
| | | worldCupPeopleVo.setId(worldCupPaymentParticipant.getId()); |
| | | worldCupPeopleVo.setId(worldCupPaymentParticipant.getParticipantId()); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy"); |
| | | if(worldCupPaymentParticipant.getParticipantType() == 1){ |
| | | //学员 |
| | | TStudent tStudent = studentClient.queryById(worldCupPaymentParticipant.getParticipantId()); |
| | | TStudent tStudent = studentClient.queryById(worldCupPaymentParticipant.getParticipantId().intValue()); |
| | | worldCupPeopleVo.setName(tStudent.getName()); |
| | | worldCupPeopleVo.setAge(null == tStudent.getBirthday() ? 0 : Integer.valueOf(sdf.format(new Date())) -Integer.valueOf(sdf.format(tStudent.getBirthday()))); |
| | | worldCupPeopleVo.setAvatar(tStudent.getHeadImg()); |