|  | @@ -1768,8 +1768,6 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |              //如果已生成课表,那么修改未上课时教学点
 | 
	
		
			
				|  |  |              courseScheduleDao.updateCourseScheduleSchool("MUSIC",musicGroupId,musicGroup.getSchoolId());
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        Date date = new Date();
 | 
	
		
			
				|  |  |          List<Integer> months = subFeeSettingDto.getMonths();
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  |          //判断缴费日历是否修改
 | 
	
	
		
			
				|  | @@ -1788,7 +1786,6 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		if (isModifiedOfCalender) {
 | 
	
		
			
				|  |  | -			
 | 
	
		
			
				|  |  |  			Integer num = musicGroupStudentFeeDao.countStudentNoPayNum(musicGroupId);
 | 
	
		
			
				|  |  |  			if (num > 0) {
 | 
	
		
			
				|  |  |  				throw new BizException("缴费周期更新失败,当前乐团有未缴费的学员");
 | 
	
	
		
			
				|  | @@ -1796,17 +1793,23 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
 | 
	
		
			
				|  |  |  			
 | 
	
		
			
				|  |  |  			// 删除乐团相关付费周期
 | 
	
		
			
				|  |  |  			musicGroupPaymentCalenderDao.delByGroupId(musicGroupId);
 | 
	
		
			
				|  |  | -			musicGroupStudentFeeDao.deleteByMusicGroupId(musicGroupId,0);
 | 
	
		
			
				|  |  | +//			musicGroupStudentFeeDao.deleteByMusicGroupId(musicGroupId,0);
 | 
	
		
			
				|  |  |  			if (months != null && months.size() > 0) {
 | 
	
		
			
				|  |  |  				// 批量插入
 | 
	
		
			
				|  |  |  				musicGroupPaymentCalenderDao.batchAdd(months, musicGroupId);
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  			if(musicGroup.getStatus() == MusicGroupStatusEnum.PROGRESS){
 | 
	
		
			
				|  |  | -                //生成学员费用表
 | 
	
		
			
				|  |  | +			    //修改未锁定学员缴费周期
 | 
	
		
			
				|  |  | +                String join = null;
 | 
	
		
			
				|  |  | +                if (months != null && months.size() > 0)  {
 | 
	
		
			
				|  |  | +                    join = StringUtils.join(months,",");
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                musicGroupStudentFeeDao.batchUpdateCalender(join,musicGroupId);
 | 
	
		
			
				|  |  | +                /*//生成学员费用表
 | 
	
		
			
				|  |  |                  List<MusicGroupStudentFee> musicGroupStudentFees = musicGroupStudentFeeDao.initMusicGroupStudentFee(musicGroupId);
 | 
	
		
			
				|  |  |                  if(musicGroupStudentFees != null && musicGroupStudentFees.size() > 0){
 | 
	
		
			
				|  |  |                      musicGroupStudentFeeDao.batchInsert(musicGroupStudentFees,musicGroupPaymentCalenderService.getNextPaymentDate(musicGroupId, null,null),"PAID_COMPLETED");
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +                }*/
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |          musicGroupDao.update(musicGroup);
 |