|  | @@ -360,19 +360,6 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
	
		
			
				|  |  |  			List<MusicGroupPaymentCalenderCourseSettings> currentMusicGroupPaymentCalenderCourseSettings = musicGroupPaymentCalender
 | 
	
		
			
				|  |  |  					.getMusicGroupPaymentCalenderCourseSettingsList();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -			if (musicGroupPaymentCalender.getStatus() != AUDITING) {
 | 
	
		
			
				|  |  | -				// 如果是进行中加学生
 | 
	
		
			
				|  |  | -				if (musicGroupPaymentCalender.getPaymentType() == PaymentType.ADD_STUDENT) {
 | 
	
		
			
				|  |  | -					addStudent(musicGroupPaymentCalender, currentMusicGroupPaymentCalenderCourseSettings);
 | 
	
		
			
				|  |  | -				}
 | 
	
		
			
				|  |  | -				if(StringUtils.isEmpty(musicGroupPaymentCalenderDto.getBatchNo())){
 | 
	
		
			
				|  |  | -					//缴费项目添加学员
 | 
	
		
			
				|  |  | -					int[] ints = Arrays.stream(musicGroupPaymentCalenderDto.getStudentIds().split(",")).mapToInt(Integer::parseInt).toArray();
 | 
	
		
			
				|  |  | -					List<Integer> list2 = Arrays.stream(ints).boxed().collect(Collectors.toList());
 | 
	
		
			
				|  |  | -					musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender.getId(),list2);
 | 
	
		
			
				|  |  | -				}
 | 
	
		
			
				|  |  | -			}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  			if (currentMusicGroupPaymentCalenderCourseSettings.size() > 0) {
 | 
	
		
			
				|  |  |  				MusicGroupOrganizationCourseSettings courseSettings = musicGroupOrganizationCourseSettingsDao.get(musicGroupPaymentCalender
 | 
	
		
			
				|  |  |  						.getMusicGroupOrganizationCourseSettingId());
 | 
	
	
		
			
				|  | @@ -384,6 +371,19 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  				musicGroupPaymentCalenderCourseSettingsDao.batchInsert(currentMusicGroupPaymentCalenderCourseSettings);
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +			if (musicGroupPaymentCalender.getStatus() != AUDITING) {
 | 
	
		
			
				|  |  | +				// 如果是进行中加学生
 | 
	
		
			
				|  |  | +				if (musicGroupPaymentCalender.getPaymentType() == PaymentType.ADD_STUDENT) {
 | 
	
		
			
				|  |  | +					addStudent(musicGroupPaymentCalender, currentMusicGroupPaymentCalenderCourseSettings);
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  | +				if(StringUtils.isNotEmpty(musicGroupPaymentCalenderDto.getBatchNo())){
 | 
	
		
			
				|  |  | +					//缴费项目添加学员
 | 
	
		
			
				|  |  | +					int[] ints = Arrays.stream(musicGroupPaymentCalenderDto.getStudentIds().split(",")).mapToInt(Integer::parseInt).toArray();
 | 
	
		
			
				|  |  | +					List<Integer> list2 = Arrays.stream(ints).boxed().collect(Collectors.toList());
 | 
	
		
			
				|  |  | +					musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender.getId(),list2);
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		// 如果是报名,需要修改乐团状态
 | 
	
	
		
			
				|  | @@ -919,11 +919,8 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
	
		
			
				|  |  |  		musicGroupStudentClassAdjust.setCourseFlag(true);
 | 
	
		
			
				|  |  |  		//排课完成后删除所选课程
 | 
	
		
			
				|  |  |  		List<Long> courseIds = JSON.parseArray(musicGroupStudentClassAdjust.getSubLockCourseIds(), Long.class);
 | 
	
		
			
				|  |  | -//		courseScheduleDao.batchDeleteByCourseSchedules(courseIds);
 | 
	
		
			
				|  |  | -		courseScheduleDao.batchDeleteCourseSchedules(courseIds);
 | 
	
		
			
				|  |  | -		courseScheduleTeacherSalaryDao.batchDeleteByCourseScheduleIds(courseIds);
 | 
	
		
			
				|  |  | -		teacherAttendanceDao.batchDeleteByCourseSchedules(courseIds);
 | 
	
		
			
				|  |  | -		courseScheduleStudentPaymentDao.deleteByCourseSchedule(courseIds);
 | 
	
		
			
				|  |  | +		List<Integer> studentIds = JSON.parseArray(musicGroupStudentClassAdjust.getStudentIds(), Integer.class);
 | 
	
		
			
				|  |  | +		courseScheduleDao.deleteMusicGroupCourseSchedulesWithStudents(courseIds,studentIds);
 | 
	
		
			
				|  |  |  		//解冻课程
 | 
	
		
			
				|  |  |  		List<Long> allCourseIds = JSON.parseArray(musicGroupStudentClassAdjust.getAllLockCourseIds(), Long.class);
 | 
	
		
			
				|  |  |  		courseScheduleDao.batchUpdateLockByCourseIds(allCourseIds,0);
 |