|  | @@ -408,7 +408,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  |      public void batchDeleteMusicGroupCourseWithStudent(String musicGroupId, Integer userId, GroupType groupType) {
 | 
	
		
			
				|  |  |          if (StringUtils.isBlank(musicGroupId)) {
 | 
	
		
			
				|  |  | -            throw new BizException("请指定乐团");
 | 
	
		
			
				|  |  | +            throw new BizException("请指定课程组");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          List<CourseSchedule> musicGroupCourseSchedules = courseScheduleDao.findMusicGroupCourseSchedulesWithStudent(musicGroupId, groupType.getCode(), CourseStatusEnum.NOT_START.getCode(), userId);
 | 
	
		
			
				|  |  |          if (!CollectionUtils.isEmpty(musicGroupCourseSchedules)) {
 | 
	
	
		
			
				|  | @@ -416,6 +416,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |                      .map(courseSchedule -> courseSchedule.getId())
 | 
	
		
			
				|  |  |                      .collect(Collectors.toList());
 | 
	
		
			
				|  |  |              courseScheduleDao.deleteMusicGroupCourseSchedulesWithStudent(courseScheduleIds, userId);
 | 
	
		
			
				|  |  | +			studentAttendanceDao.deleteByCourseAndUser(courseScheduleIds,userId)
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |