|  | @@ -1782,7 +1782,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
											
												
													
														|  |              params.put("offset", pageInfo.getOffset());
 |  |              params.put("offset", pageInfo.getOffset());
 | 
											
												
													
														|  |              dataList = classGroupDao.queryMusicGroupClassGroup(params);
 |  |              dataList = classGroupDao.queryMusicGroupClassGroup(params);
 | 
											
												
													
														|  |              Set<Integer> classGroups = dataList.stream().map(e -> e.getClassGroupId()).collect(Collectors.toSet());
 |  |              Set<Integer> classGroups = dataList.stream().map(e -> e.getClassGroupId()).collect(Collectors.toSet());
 | 
											
												
													
														|  | -//            courseScheduleDao.countTotalCourseNum(classGroups,"MUSIC");
 |  | 
 | 
											
												
													
														|  | 
 |  | +            Map<Integer, Long> totalNumMap = MapUtil.convertIntegerMap(courseScheduleDao.countTotalNumByClassGroupId(classGroups, null));
 | 
											
												
													
														|  | 
 |  | +            Map<Integer, Long> currentNumMap = MapUtil.convertIntegerMap(courseScheduleDao.countCurrentNumByClassGroupId(classGroups, null));
 | 
											
												
													
														|  |              String join = StringUtils.join(classGroups, ",");
 |  |              String join = StringUtils.join(classGroups, ",");
 | 
											
												
													
														|  |              //获取主教老师
 |  |              //获取主教老师
 | 
											
												
													
														|  |              Map<Integer, String> masterTeachers = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertMybatisMap(classGroupDao.countStudentNum(join, "BISHOP"))), HashMap.class);
 |  |              Map<Integer, String> masterTeachers = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertMybatisMap(classGroupDao.countStudentNum(join, "BISHOP"))), HashMap.class);
 | 
											
										
											
												
													
														|  | @@ -1793,6 +1794,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
											
												
													
														|  |              //获取退班人数
 |  |              //获取退班人数
 | 
											
												
													
														|  |              Map<Integer, Integer> quitNums = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertIntegerMap(classGroupDao.countQuitNum(join))), HashMap.class);
 |  |              Map<Integer, Integer> quitNums = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertIntegerMap(classGroupDao.countQuitNum(join))), HashMap.class);
 | 
											
												
													
														|  |              dataList.forEach(e -> {
 |  |              dataList.forEach(e -> {
 | 
											
												
													
														|  | 
 |  | +                Long aLong = totalNumMap.get(e.getClassGroupId());
 | 
											
												
													
														|  | 
 |  | +                e.setTotalClassTimes(aLong==null?0:aLong.intValue());
 | 
											
												
													
														|  | 
 |  | +                Long aLong1 = currentNumMap.get(e.getClassGroupId());
 | 
											
												
													
														|  | 
 |  | +                e.setCurrentClassTimes(aLong1==null?0:aLong1.intValue());
 | 
											
												
													
														|  |                  e.setMasterTeacher(masterTeachers.get(e.getClassGroupId()));
 |  |                  e.setMasterTeacher(masterTeachers.get(e.getClassGroupId()));
 | 
											
												
													
														|  |                  e.setSubTeacher(subTeachers.get(e.getClassGroupId()));
 |  |                  e.setSubTeacher(subTeachers.get(e.getClassGroupId()));
 | 
											
												
													
														|  |                  e.setStudyNum(studyNums.get(e.getClassGroupId()));
 |  |                  e.setStudyNum(studyNums.get(e.getClassGroupId()));
 |