| | |
| | | if(tStudent==null || tStudent.getIdCard()==null || "".equals(tStudent.getIdCard())){ |
| | | return ResultUtil.error("选择人员未进行实名认证!"); |
| | | } |
| | | |
| | | if (competition.getStartAge() > (Integer.valueOf(sdf.format(new Date())) - Integer.valueOf(sdf.format(tStudent.getBirthday())))) { |
| | | return ResultUtil.error("【" + tStudent.getName() + "】年龄不符合要求"); |
| | | } |
| | | if (competition.getEndAge() < (Integer.valueOf(sdf.format(new Date())) - Integer.valueOf(sdf.format(tStudent.getBirthday())))) { |
| | | return ResultUtil.error("【" + tStudent.getName() + "】年龄不符合要求"); |
| | | } |
| | | Integer isStudent = jsonObject.getInteger("isStudent"); |
| | | UserCompetition userCompetition = new UserCompetition(); |
| | | userCompetition.setAppUserId(uid); |