|
@@ -42,6 +42,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
private TeacherDefaultMusicGroupSalaryService teacherDefaultMusicGroupSalaryService;
|
|
private TeacherDefaultMusicGroupSalaryService teacherDefaultMusicGroupSalaryService;
|
|
@Autowired
|
|
@Autowired
|
|
private CourseScheduleService courseScheduleService;
|
|
private CourseScheduleService courseScheduleService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private StudentRegistrationService studentRegistrationService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public BaseDAO<Integer, ClassGroup> getDAO() {
|
|
public BaseDAO<Integer, ClassGroup> getDAO() {
|
|
@@ -99,7 +101,13 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
classGroupStudentMapper.setCreateTime(date);
|
|
classGroupStudentMapper.setCreateTime(date);
|
|
classGroupStudentMapper.setStatus(ClassGroupStudentStatusEnum.NORMAL);
|
|
classGroupStudentMapper.setStatus(ClassGroupStudentStatusEnum.NORMAL);
|
|
classGroupStudentList.add(classGroupStudentMapper);
|
|
classGroupStudentList.add(classGroupStudentMapper);
|
|
|
|
+ StudentRegistration studentRegistration = new StudentRegistration();
|
|
|
|
+ studentRegistration.setClassGroupId(classGroupId.intValue());
|
|
|
|
+ studentRegistration.setUserId(Integer.getInteger(userId));
|
|
|
|
+ studentRegistration.setMusicGroupId(classGroup.getMusicGroupId());
|
|
|
|
+ studentRegistrationService.updateByUserIdAndMusicGroupId(studentRegistration);
|
|
}
|
|
}
|
|
|
|
+
|
|
classGroupStudentMapperService.classGroupStudentsInsert(classGroupStudentList);
|
|
classGroupStudentMapperService.classGroupStudentsInsert(classGroupStudentList);
|
|
|
|
|
|
return classGroup;
|
|
return classGroup;
|