|
@@ -83,6 +83,9 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private CourseScheduleDao courseScheduleDao;
|
|
private CourseScheduleDao courseScheduleDao;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private CourseScheduleService courseScheduleService;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private ClassGroupDao classGroupDao;
|
|
private ClassGroupDao classGroupDao;
|
|
@@ -602,6 +605,9 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
if (studentRegistration == null) {
|
|
if (studentRegistration == null) {
|
|
throw new BizException("用户注册信息不存在");
|
|
throw new BizException("用户注册信息不存在");
|
|
}
|
|
}
|
|
|
|
+ // 删除未上课
|
|
|
|
+ courseScheduleService.batchDeleteMusicGroupCourseWithStudent(musicGroupId, userId, GroupType.MUSIC);
|
|
|
|
+
|
|
// 退团
|
|
// 退团
|
|
studentRegistration.setMusicGroupStatus(ClassGroupStudentStatusEnum.QUIT);
|
|
studentRegistration.setMusicGroupStatus(ClassGroupStudentStatusEnum.QUIT);
|
|
studentRegistration.setUpdateTime(date);
|
|
studentRegistration.setUpdateTime(date);
|
|
@@ -682,6 +688,9 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
if (studentRegistration == null) {
|
|
if (studentRegistration == null) {
|
|
throw new BizException("用户注册信息不存在");
|
|
throw new BizException("用户注册信息不存在");
|
|
}
|
|
}
|
|
|
|
+ // 删除未上课
|
|
|
|
+ courseScheduleService.batchDeleteMusicGroupCourseWithStudent(musicGroupId, userId, GroupType.MUSIC);
|
|
|
|
+
|
|
// 退团
|
|
// 退团
|
|
studentRegistration.setMusicGroupStatus(ClassGroupStudentStatusEnum.QUIT);
|
|
studentRegistration.setMusicGroupStatus(ClassGroupStudentStatusEnum.QUIT);
|
|
studentRegistration.setUpdateTime(date);
|
|
studentRegistration.setUpdateTime(date);
|