无关风月
2025-12-10 efd48fe10bde8a50106aedf60ea6dc7f1e74e264
cloud-server-competition/src/main/java/com/dsh/competition/service/impl/ParticipantServiceImpl.java
@@ -85,6 +85,7 @@
        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());
@@ -110,6 +111,8 @@
            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);