Jelajahi Sumber

家长注册判断手机号是否是学生手机号

大数据与最优化研究所 7 bulan lalu
induk
melakukan
cc9baca975

+ 1 - 1
src/main/java/com/xjrsoft/module/organization/controller/UserController.java

@@ -766,7 +766,7 @@ public class UserController {
         ;
         BaseNewStudent baseNewStudent =  baseNewStudentService.getOne(baseNewStudentLambdaQueryWrapper);
         if(ObjectUtils.isNotEmpty(baseNewStudent)){
-            throw new MyException("当前手机号为学生" + user.getName() + "填写的学生手机号,请更换手机号注册!");
+            throw new MyException("当前手机号为学生" + baseNewStudent.getName() + "填写的学生手机号,请更换手机号注册!");
         }
 
         // 验证验证码