|
@@ -879,6 +879,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
break;
|
|
break;
|
|
case "PRACTICE":
|
|
case "PRACTICE":
|
|
teacherMusicClassGroup = classGroupDao.findTeacherPracticeClassGroup(user.getId().longValue());
|
|
teacherMusicClassGroup = classGroupDao.findTeacherPracticeClassGroup(user.getId().longValue());
|
|
|
|
+ //获取陪练课学生名称
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
throw new BizException("课程类型错误");
|
|
throw new BizException("课程类型错误");
|
|
@@ -909,7 +910,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
Map<Integer, Long> classGroupStudentNumMap = MapUtil.convertIntegerMap(classGroupStudentNumMaps);
|
|
Map<Integer, Long> classGroupStudentNumMap = MapUtil.convertIntegerMap(classGroupStudentNumMaps);
|
|
Map<Integer, Long> currentClassTimes = MapUtil.convertIntegerMap(courseScheduleDao.countCurrentNumByClassGroupId(classGroupIds,user.getId()));
|
|
Map<Integer, Long> currentClassTimes = MapUtil.convertIntegerMap(courseScheduleDao.countCurrentNumByClassGroupId(classGroupIds,user.getId()));
|
|
teacherMusicClassGroup.forEach(teacherClassGroupDto -> {
|
|
teacherMusicClassGroup.forEach(teacherClassGroupDto -> {
|
|
-
|
|
|
|
|
|
+ if(teacherClassGroupDto.getType() == ClassGroupTypeEnum.PRACTICE){
|
|
|
|
+ String[] studentNums = classGroupStudentMapperDao.findStudentNumByClassGroupId(teacherClassGroupDto.getClassGroupId());
|
|
|
|
+ teacherClassGroupDto.setStudentNames(StringUtils.join(studentNums, ","));
|
|
|
|
+ }
|
|
if (teacherClassGroupDto.getType() == ClassGroupTypeEnum.VIP) {
|
|
if (teacherClassGroupDto.getType() == ClassGroupTypeEnum.VIP) {
|
|
String[] studentNums = classGroupStudentMapperDao.findStudentNumByClassGroupId(teacherClassGroupDto.getClassGroupId());
|
|
String[] studentNums = classGroupStudentMapperDao.findStudentNumByClassGroupId(teacherClassGroupDto.getClassGroupId());
|
|
teacherClassGroupDto.setStudentNames(StringUtils.join(studentNums, ","));
|
|
teacherClassGroupDto.setStudentNames(StringUtils.join(studentNums, ","));
|