|
@@ -732,11 +732,9 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
if (studentRegistration == null) {
|
|
if (studentRegistration == null) {
|
|
throw new BizException("参数校验失败");
|
|
throw new BizException("参数校验失败");
|
|
}
|
|
}
|
|
- /*if(studentAddDto.getSignClassId() == null && studentAddDto.getMixClassId() == null){
|
|
|
|
- throw new BizException("参数校验失败: 单技班或合奏班必填一项");
|
|
|
|
- }*/
|
|
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
String musicGroupId = studentRegistration.getMusicGroupId();
|
|
String musicGroupId = studentRegistration.getMusicGroupId();
|
|
|
|
+ MusicGroup musicGroup = musicGroupDao.get(musicGroupId);
|
|
|
|
|
|
studentRegistration.setCreateTime(date);
|
|
studentRegistration.setCreateTime(date);
|
|
studentRegistration.setUpdateTime(date);
|
|
studentRegistration.setUpdateTime(date);
|
|
@@ -744,6 +742,9 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
SysUser sysUser = studentRegistrationDao.getSysUserByPhone(studentRegistration.getParentsPhone());
|
|
SysUser sysUser = studentRegistrationDao.getSysUserByPhone(studentRegistration.getParentsPhone());
|
|
StudentRegistration phoneAndMusicGroupId = null;
|
|
StudentRegistration phoneAndMusicGroupId = null;
|
|
if(sysUser != null){
|
|
if(sysUser != null){
|
|
|
|
+ if(!musicGroup.getTenantId().equals(sysUser.getTenantId())){
|
|
|
|
+ throw new BizException("该手机号已注册");
|
|
|
|
+ }
|
|
phoneAndMusicGroupId = studentRegistrationDao.getByUserIdAndMusicGroupId(musicGroupId, sysUser.getId());
|
|
phoneAndMusicGroupId = studentRegistrationDao.getByUserIdAndMusicGroupId(musicGroupId, sysUser.getId());
|
|
}else {
|
|
}else {
|
|
phoneAndMusicGroupId = studentRegistrationDao.getByPhoneAndMusicGroupId(musicGroupId, studentRegistration.getParentsPhone());
|
|
phoneAndMusicGroupId = studentRegistrationDao.getByPhoneAndMusicGroupId(musicGroupId, studentRegistration.getParentsPhone());
|
|
@@ -753,7 +754,6 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
throw new BizException("该学员已存在");
|
|
throw new BizException("该学员已存在");
|
|
}
|
|
}
|
|
|
|
|
|
- MusicGroup musicGroup = musicGroupDao.get(musicGroupId);
|
|
|
|
Integer userId;
|
|
Integer userId;
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
//新增user
|
|
//新增user
|