|
@@ -1149,6 +1149,9 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
public <T extends BaseStudentDto> SysUser upSetStudent(T baseStudent) {
|
|
|
// 判断用户是否存在
|
|
|
SysUser user = studentDao.getUserByPhone(baseStudent.getPhone());
|
|
|
+ if (user !=null && user.getUserType().contains("SCHOOL")) {
|
|
|
+ throw new BizException("用户已存在学校账户");
|
|
|
+ }
|
|
|
if (user == null || user.getId() == null) {
|
|
|
user = new SysUser();
|
|
|
BeanUtils.copyProperties(baseStudent,user);
|