|  | @@ -139,6 +139,8 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          //1、班级关系添加
 |  |          //1、班级关系添加
 | 
											
												
													
														|  |          List<ClassGroupStudentMapper> classGroupStudentMappers = new ArrayList<>();
 |  |          List<ClassGroupStudentMapper> classGroupStudentMappers = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +        List<ImGroupMember> imGroupMemberList = new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |          for (String userIdStr : userIdStrSet) {
 |  |          for (String userIdStr : userIdStrSet) {
 | 
											
												
													
														|  |              ClassGroupStudentMapper classGroupStudentMapper = new ClassGroupStudentMapper();
 |  |              ClassGroupStudentMapper classGroupStudentMapper = new ClassGroupStudentMapper();
 | 
											
												
													
														|  |              classGroupStudentMapper.setMusicGroupId(classGroup.getMusicGroupId());
 |  |              classGroupStudentMapper.setMusicGroupId(classGroup.getMusicGroupId());
 | 
											
										
											
												
													
														|  | @@ -152,9 +154,14 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
 | 
											
												
													
														|  |                  studentRegistration.setClassGroupId(classGroupId);
 |  |                  studentRegistration.setClassGroupId(classGroupId);
 | 
											
												
													
														|  |                  studentRegistrationService.update(studentRegistration);
 |  |                  studentRegistrationService.update(studentRegistration);
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | 
 |  | +            imGroupMemberList.add(new ImGroupMember(userIdStr));
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          classGroupStudentMapperDao.classGroupStudentsInsert(classGroupStudentMappers);
 |  |          classGroupStudentMapperDao.classGroupStudentsInsert(classGroupStudentMappers);
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +        //添加进IM群组
 | 
											
												
													
														|  | 
 |  | +        ImGroupMember[] imGroupMembers = imGroupMemberList.toArray(new ImGroupMember[imGroupMemberList.size()]);
 | 
											
												
													
														|  | 
 |  | +        imFeignService.groupJoin(new ImGroupModel(classGroup.getId().toString(), imGroupMembers, classGroup.getName()));
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |          //2、班级人数调整
 |  |          //2、班级人数调整
 | 
											
												
													
														|  |          classGroupService.updateClassStudentNum(classGroupId.longValue(), userIdStrSet.size());
 |  |          classGroupService.updateClassStudentNum(classGroupId.longValue(), userIdStrSet.size());
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -168,6 +175,9 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
 | 
											
												
													
														|  |              classGroupService.updateClassStudentNum(classGroupRelation.getClassGroupId().longValue(), userIdStrSet.size());
 |  |              classGroupService.updateClassStudentNum(classGroupRelation.getClassGroupId().longValue(), userIdStrSet.size());
 | 
											
												
													
														|  |              List<CourseSchedule> mixCourseScheduleList = courseScheduleService.findNoStartCoursesByClassGroupId(classGroupRelation.getClassGroupId());
 |  |              List<CourseSchedule> mixCourseScheduleList = courseScheduleService.findNoStartCoursesByClassGroupId(classGroupRelation.getClassGroupId());
 | 
											
												
													
														|  |              courseScheduleList.addAll(mixCourseScheduleList);
 |  |              courseScheduleList.addAll(mixCourseScheduleList);
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            //添加进合奏班IM群组
 | 
											
												
													
														|  | 
 |  | +            imFeignService.groupJoin(new ImGroupModel(classGroupRelation.getClassGroupId().toString(), imGroupMembers, null));
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          BigDecimal coursePrice = new BigDecimal("0");
 |  |          BigDecimal coursePrice = new BigDecimal("0");
 |