|
@@ -700,6 +700,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
studentRegistrationDao.deleteClassGroup(classGroupId);
|
|
studentRegistrationDao.deleteClassGroup(classGroupId);
|
|
//删除班级跟合奏班关系
|
|
//删除班级跟合奏班关系
|
|
classGroupRelationDao.deleteBySubClassId(classGroupId);
|
|
classGroupRelationDao.deleteBySubClassId(classGroupId);
|
|
|
|
+ //删除班级未开始课程
|
|
|
|
+
|
|
//删除班级
|
|
//删除班级
|
|
classGroupDao.delete(classGroupId);
|
|
classGroupDao.delete(classGroupId);
|
|
//删除im群组
|
|
//删除im群组
|
|
@@ -1328,22 +1330,6 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
classGroupRelation.setCreateTime(date);
|
|
classGroupRelation.setCreateTime(date);
|
|
classGroupRelationService.insert(classGroupRelation);
|
|
classGroupRelationService.insert(classGroupRelation);
|
|
|
|
|
|
- //6、添加学生未上合奏课课程
|
|
|
|
- List<CourseSchedule> noStartCourses = courseScheduleDao.findNoStartCoursesByClassGroupId(classGroup4MixDto.getClassGroupId());
|
|
|
|
- for (CourseSchedule noStartCourse : noStartCourses) {
|
|
|
|
- for (StudentRegistration studentRegistration : studentList) {
|
|
|
|
- CourseScheduleStudentPayment courseScheduleStudentPayment = new CourseScheduleStudentPayment();
|
|
|
|
- courseScheduleStudentPayment.setGroupType(classGroup.getGroupType());
|
|
|
|
- courseScheduleStudentPayment.setMusicGroupId(classGroup.getMusicGroupId());
|
|
|
|
- courseScheduleStudentPayment.setCourseScheduleId(noStartCourse.getId());
|
|
|
|
- courseScheduleStudentPayment.setUserId(studentRegistration.getUserId());
|
|
|
|
- courseScheduleStudentPayment.setExpectPrice(expectPrice);
|
|
|
|
- courseScheduleStudentPayment.setCreateTime(date);
|
|
|
|
- courseScheduleStudentPayment.setUpdateTime(date);
|
|
|
|
- courseScheduleStudentPayment.setClassGroupId(noStartCourse.getClassGroupId());
|
|
|
|
- courseScheduleStudentPaymentList.add(courseScheduleStudentPayment);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
//学生结算表
|
|
//学生结算表
|
|
courseScheduleStudentPaymentDao.batchInsert(courseScheduleStudentPaymentList);
|
|
courseScheduleStudentPaymentDao.batchInsert(courseScheduleStudentPaymentList);
|
|
return classGroup;
|
|
return classGroup;
|
|
@@ -1529,12 +1515,6 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
|
|
|
now = now.plusDays(1);
|
|
now = now.plusDays(1);
|
|
}
|
|
}
|
|
- //加入合奏班
|
|
|
|
- ClassGroupRelation classGroupRelation = new ClassGroupRelation();
|
|
|
|
- classGroupRelation.setClassGroupId(classGroup4MixDto.getMixClassGroupId());
|
|
|
|
- classGroupRelation.setSubClassGroupId(classGroup.getId());
|
|
|
|
- classGroupRelation.setCreateTime(date);
|
|
|
|
- classGroupRelationService.insert(classGroupRelation);
|
|
|
|
|
|
|
|
//老师结算表
|
|
//老师结算表
|
|
courseScheduleTeacherSalaryService.batchInsert(courseScheduleTeacherSalaryList);
|
|
courseScheduleTeacherSalaryService.batchInsert(courseScheduleTeacherSalaryList);
|