| | |
| | | Double bim = weight/squareHeight; |
| | | |
| | | TStudent tStudent = new TStudent(); |
| | | |
| | | |
| | | |
| | | |
| | | tStudent.setId(stu.getStuId()); |
| | | tStudent.setBirthday(format.parse(stu.getBirthday())); |
| | | tStudent.setHeadImg(stu.getHeadImg()); |
| | |
| | | tStudent.setName(stu.getName()); |
| | | tStudent.setIdCard(stu.getIdCard()); |
| | | tStudent.setBmi(bim); |
| | | |
| | | if(ToolUtil.isNotEmpty(tStudent.getName()) && ToolUtil.isNotEmpty(tStudent.getIdCard())){ |
| | | Boolean aBoolean = JuHeUtil.idcardAuthentication(tStudent.getIdCard(), tStudent.getName()); |
| | | if(!aBoolean){ |
| | | return ResultUtil.error("身份证和姓名不匹配"); |
| | | } |
| | | } |
| | | |
| | | return ResultUtil.success(istuService.updateById(tStudent)); |
| | | |
| | | // return ResultUtil.success(istuService.commitEditStudentInfo(stu,userIdFormRedis)); |