无关风月
2025-11-19 c16becdd1bf5197fbe9dab3a6a8f440f79b938af
cloud-server-competition/src/main/java/com/dsh/competition/service/impl/CompetitionServiceImpl.java
@@ -292,11 +292,14 @@
            Integer id = jsonObject.getInteger("id");
            TStudent tStudent = studentClient.queryById(id);
            if(tStudent==null || tStudent.getIdCard()==null || "".equals(tStudent.getIdCard())){
                return ResultUtil.error("选择人员未进行实名认证!");
            if( competition.getRealName()==1){
                if(tStudent==null || tStudent.getIdCard()==null || "".equals(tStudent.getIdCard()) ){
                    return ResultUtil.error("选择人员未进行实名认证!");
                }
            }
            if (competition.getStartAge() > (Integer.valueOf(sdf1.format(new Date())) - Integer.valueOf(sdf1.format(tStudent.getBirthday())))) {
                return ResultUtil.error("【" + tStudent.getName() + "】年龄不符合要求");
            }