|
@@ -574,23 +574,25 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
List<CourseListDto> vipCourses = classGroupDao.queryStudentVipCourses(StringUtils.join(musicGroupIds, ","), userId);
|
|
|
//获取vip课的学生列表
|
|
|
Set<String> vipIds = vipCourses.stream().map(CourseListDto::getVipId).collect(Collectors.toSet());
|
|
|
- Map<String, String> vipStuNames = MapUtil.convertIntegerMap(classGroupDao.findVipStuNames(StringUtils.join(vipIds, ",")));
|
|
|
+ Map<String, String> vipStuNames = MapUtil.convertIntegerMap(classGroupDao.findVipStuNames(StringUtils.join(vipIds, ","),"VIP"));
|
|
|
//获取学员的乐团列表详情
|
|
|
List<CourseListDto> musicCourse = classGroupDao.queryStudentMusicGroupCourses(StringUtils.join(musicGroupIds, ","), userId);
|
|
|
//获取学员购买的陪练课列表
|
|
|
List<CourseListDto> practiceCourse = classGroupDao.queryStudentPracticeCourses(StringUtils.join(musicGroupIds, ","));
|
|
|
+ Set<String> practiceGroupId = practiceCourse.stream().map(e -> e.getPracticeId()).collect(Collectors.toSet());
|
|
|
+ //获取陪练课学生名字
|
|
|
+ Map<String, String> practiceStuNames = MapUtil.convertIntegerMap(classGroupDao.findVipStuNames(StringUtils.join(practiceGroupId, ","),"PRACTICE"));
|
|
|
|
|
|
Set<String> musicGroupId = musicCourse.stream().map(e -> e.getMusicId()).collect(Collectors.toSet());
|
|
|
- Set<String> vipGroupId = vipCourses.stream().map(e -> e.getVipId()).collect(Collectors.toSet());
|
|
|
- Set<String> practiceGroupId = practiceCourse.stream().map(e -> e.getPracticeId()).collect(Collectors.toSet());
|
|
|
+// Set<String> vipGroupId = vipCourses.stream().map(e -> e.getVipId()).collect(Collectors.toSet());
|
|
|
|
|
|
Map<String,Long> musicCourseNumMap = new HashMap<>();
|
|
|
if(musicGroupId != null && musicGroupId.size() > 0){
|
|
|
musicCourseNumMap = MapUtil.convertIntegerMap(courseScheduleStudentPaymentDao.findStudentCourseNum(musicGroupId,userId,"MUSIC"));
|
|
|
}
|
|
|
Map<String,Long> vipCourseNumMap = new HashMap<>();
|
|
|
- if(vipGroupId != null && vipGroupId.size() > 0){
|
|
|
- vipCourseNumMap = MapUtil.convertIntegerMap(courseScheduleStudentPaymentDao.findStudentCourseNum(vipGroupId,userId,"VIP"));
|
|
|
+ if(vipIds != null && vipIds.size() > 0){
|
|
|
+ vipCourseNumMap = MapUtil.convertIntegerMap(courseScheduleStudentPaymentDao.findStudentCourseNum(vipIds,userId,"VIP"));
|
|
|
}
|
|
|
Map<String,Long> practiceCourseNumMap = new HashMap<>();
|
|
|
if(practiceGroupId != null && practiceGroupId.size() > 0){
|
|
@@ -624,6 +626,9 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
|
|
|
e.setAddress(schoolNames.get(e.getTeacherSchoolId()));
|
|
|
e.setIsApply(isApplyMap.get(e.getMusicId()));
|
|
|
+ if(ClassGroupTypeEnum.PRACTICE == e.getType()){
|
|
|
+ e.setStudentNames(practiceStuNames.get(e.getPracticeId()));
|
|
|
+ }
|
|
|
if (ClassGroupTypeEnum.VIP == e.getType()) {
|
|
|
e.setStudentNames(vipStuNames.get(e.getVipId()));
|
|
|
if (e.getOffLineClassesNum() > 0 && e.getOffLineClassesNum() <= 0) {
|