|
@@ -68,7 +68,7 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
|
|
|
|
|
|
//3、删除学生对应班级的课程
|
|
//3、删除学生对应班级的课程
|
|
List<CourseSchedule> courseScheduleList = courseScheduleService.findNoStartCoursesByClassGroupId(classGroupId);
|
|
List<CourseSchedule> courseScheduleList = courseScheduleService.findNoStartCoursesByClassGroupId(classGroupId);
|
|
- if(courseScheduleList.size() > 0 ) {
|
|
|
|
|
|
+ if (courseScheduleList.size() > 0) {
|
|
courseScheduleStudentPaymentService.deleteStudentCourseSchedule(userId, courseScheduleList);
|
|
courseScheduleStudentPaymentService.deleteStudentCourseSchedule(userId, courseScheduleList);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -122,7 +122,7 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
|
|
courseScheduleStudentPayment.setUpdateTime(date);
|
|
courseScheduleStudentPayment.setUpdateTime(date);
|
|
courseScheduleStudentPayments.add(courseScheduleStudentPayment);
|
|
courseScheduleStudentPayments.add(courseScheduleStudentPayment);
|
|
}
|
|
}
|
|
- if(courseScheduleStudentPayments.size() ==0){
|
|
|
|
|
|
+ if (courseScheduleStudentPayments.size() == 0) {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -147,6 +147,12 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
|
|
ClassGroupRelation classGroupRelation = classGroupRelationService.findClassGroupRelation(classGroupId);
|
|
ClassGroupRelation classGroupRelation = classGroupRelationService.findClassGroupRelation(classGroupId);
|
|
|
|
|
|
for (String userIdStr : userIdStrSet) {
|
|
for (String userIdStr : userIdStrSet) {
|
|
|
|
+ List<ClassGroupStudentMapper> highClassGroupHasUser = classGroupStudentMapperDao.findHighClassGroupHasUser(classGroup.getMusicGroupId(), Integer.parseInt(userIdStr), classGroup.getType());
|
|
|
|
+ if (highClassGroupHasUser != null && highClassGroupHasUser.size() >= 0) {
|
|
|
|
+ userIdStrSet.remove(userIdStr);
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+
|
|
ClassGroupStudentMapper classGroupStudentMapper = new ClassGroupStudentMapper();
|
|
ClassGroupStudentMapper classGroupStudentMapper = new ClassGroupStudentMapper();
|
|
classGroupStudentMapper.setMusicGroupId(classGroup.getMusicGroupId());
|
|
classGroupStudentMapper.setMusicGroupId(classGroup.getMusicGroupId());
|
|
classGroupStudentMapper.setClassGroupId(classGroupId);
|
|
classGroupStudentMapper.setClassGroupId(classGroupId);
|
|
@@ -161,7 +167,7 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
|
|
studentRegistrationService.update(studentRegistration);
|
|
studentRegistrationService.update(studentRegistration);
|
|
}
|
|
}
|
|
//班级在合奏班中
|
|
//班级在合奏班中
|
|
- if(classGroupRelation != null){
|
|
|
|
|
|
+ if (classGroupRelation != null) {
|
|
classGroupStudentMapper = new ClassGroupStudentMapper();
|
|
classGroupStudentMapper = new ClassGroupStudentMapper();
|
|
classGroupStudentMapper.setMusicGroupId(classGroup.getMusicGroupId());
|
|
classGroupStudentMapper.setMusicGroupId(classGroup.getMusicGroupId());
|
|
classGroupStudentMapper.setClassGroupId(classGroupRelation.getClassGroupId());
|
|
classGroupStudentMapper.setClassGroupId(classGroupRelation.getClassGroupId());
|