|
@@ -2,7 +2,6 @@ package com.ym.mec.web.service.impl;
|
|
|
|
|
|
import com.ym.mec.web.dal.entity.ClassGroupStudentMapper;
|
|
import com.ym.mec.web.dal.entity.ClassGroupStudentMapper;
|
|
import com.ym.mec.web.dal.enums.ClassGroupStudentStatusEnum;
|
|
import com.ym.mec.web.dal.enums.ClassGroupStudentStatusEnum;
|
|
-import com.ym.mec.web.dal.enums.ClassGroupTypeEnum;
|
|
|
|
import com.ym.mec.web.service.ClassGroupStudentMapperService;
|
|
import com.ym.mec.web.service.ClassGroupStudentMapperService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -14,7 +13,6 @@ import com.ym.mec.web.dal.entity.ClassGroup;
|
|
import com.ym.mec.web.service.ClassGroupService;
|
|
import com.ym.mec.web.service.ClassGroupService;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
-import java.lang.reflect.Array;
|
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
@Service
|
|
@Service
|
|
@@ -46,11 +44,20 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public List<ClassGroup> findAllClassGroupByMusicGroupIdAndType(int musicGroupId, ClassGroupTypeEnum type) {
|
|
|
|
- return classGroupDao.findAllClassGroupByMusicGroupIdAndType(musicGroupId,type);
|
|
|
|
|
|
+ public List<ClassGroup> findAllNormalClassGroupByMusicGroupId(int musicGroupId) {
|
|
|
|
+ return classGroupDao.findAllNormalClassGroupByMusicGroupId(musicGroupId);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
|
+ public List<ClassGroup> findAllMixClassGroupByMusicGroupId(int musicGroupId) {
|
|
|
|
+ List<ClassGroup> allMixClassGroup = classGroupDao.findAllMixClassGroup(musicGroupId);
|
|
|
|
+ for (ClassGroup mixClassGroup:allMixClassGroup){
|
|
|
|
+ mixClassGroup.setClassNames(classGroupDao.findMixClassChildClassGroupNames(mixClassGroup.getId()).getName());
|
|
|
|
+ }
|
|
|
|
+ return allMixClassGroup;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public ClassGroup addClassGroup(ClassGroup classGroup) throws Exception {
|
|
public ClassGroup addClassGroup(ClassGroup classGroup) throws Exception {
|
|
Date date;
|
|
Date date;
|