| 
					
				 | 
			
			
				@@ -506,6 +506,20 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         classGroupService.updateClassStudentNum(classGroupId.intValue(), allStudentIds.size()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(musicGroup.getStatus() == MusicGroupStatusEnum.PROGRESS){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!CollectionUtils.isEmpty(removeStudentIds)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //5、学生退出班级群组 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                imGroupMemberService.quit(classGroup.getId().toString(), new ArrayList<Integer>(removeStudentIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!CollectionUtils.isEmpty(addStudentIds)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Map<Integer,String> userRoleMap = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (Integer addStudentId : addStudentIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    userRoleMap.put(addStudentId, ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //5、添加进IM群组 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                imGroupMemberService.join(classGroup.getId().toString(), userRoleMap); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (CollectionUtils.isEmpty(classGroupNotStartCourse)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (!CollectionUtils.isEmpty(addStudentIds)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(musicGroup.getStatus() == MusicGroupStatusEnum.PROGRESS){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -534,23 +548,11 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (!CollectionUtils.isEmpty(removeStudentIds)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseScheduleDao.deleteMusicGroupCourseSchedulesWithStudents(courseIds, new ArrayList<>(removeStudentIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(musicGroup.getStatus() == MusicGroupStatusEnum.PROGRESS){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //5、学生退出班级群组 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                imGroupMemberService.quit(classGroup.getId().toString(), new ArrayList<Integer>(addStudentIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (!CollectionUtils.isEmpty(addStudentIds)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseScheduleStudentPaymentService.createForMusicGroup(classGroup.getMusicGroupId(), classGroupNotStartCourse, new ArrayList<>(addStudentIds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             studentDao.updateStudentServiceTag(null, new ArrayList<>(addStudentIds), YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(musicGroup.getStatus() == MusicGroupStatusEnum.PROGRESS){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                Map<Integer,String> userRoleMap = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                for (Integer addStudentId : addStudentIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    userRoleMap.put(addStudentId, ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //5、添加进IM群组 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                imGroupMemberService.join(classGroup.getId().toString(), userRoleMap); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //4、调整未上课课酬 
			 |