|
@@ -129,7 +129,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
List<ClassGroup> allMixClassGroup = classGroupDao.findAllMixClassGroup(musicGroupId);
|
|
|
for (ClassGroup mixClassGroup : allMixClassGroup) {
|
|
|
ClassGroup mixClassChildClassGroup = classGroupDao.findMixClassChildClassGroupNames(mixClassGroup.getId());
|
|
|
- if(mixClassChildClassGroup != null){
|
|
|
+ if (mixClassChildClassGroup != null) {
|
|
|
mixClassGroup.setClassNames(mixClassChildClassGroup.getName());
|
|
|
}
|
|
|
}
|
|
@@ -653,10 +653,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
classGroupStudentMapperDao.deleteByClassId(classGroupId);
|
|
|
studentRegistrationDao.deleteClassGroup(classGroupId);
|
|
|
//删除班级跟合奏班关系
|
|
|
- ClassGroupRelation classGroupRelation = classGroupRelationDao.findClassGroupRelation(classGroupId);
|
|
|
- if(classGroupRelation != null){
|
|
|
- classGroupRelationDao.delete(classGroupRelation.getId());
|
|
|
- }
|
|
|
+ classGroupRelationDao.deleteBySubClassId(classGroupId);
|
|
|
//删除班级
|
|
|
classGroupDao.delete(classGroupId);
|
|
|
}
|