| | |
| | | Participant participant = new Participant(); |
| | | BeanUtils.copyProperties(addParticipant, participant); |
| | | participant.setHeight(Double.valueOf(addParticipant.getHeight()).intValue()); |
| | | participant.setWeight(addParticipant.getWeight()); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | if (ToolUtil.isNotEmpty(addParticipant.getBirthday())) { |
| | | Date parse = sdf.parse(addParticipant.getBirthday()); |
| | |
| | | Date parse = dateFormat.parse(birthDateStr); |
| | | tStudent.setBirthday(parse); |
| | | } |
| | | tStudent.setHeight(Double.valueOf(addParticipant.getHeight())); |
| | | tStudent.setWeight(addParticipant.getWeight()); |
| | | tStudent.setSex(addParticipant.getGender()); |
| | | tStudent.setIdCard(addParticipant.getIdcard()); |
| | | tStudent.setState(1); |