|  | @@ -471,12 +471,13 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
											
												
													
														|  |  		if(Objects.isNull(vipGroup)){
 |  |  		if(Objects.isNull(vipGroup)){
 | 
											
												
													
														|  |  			throw new BizException("课程组不存在");
 |  |  			throw new BizException("课程组不存在");
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  | -		int totalCourseNum = courseScheduleDao.countTotalCourseScheduleNumWithGroup(vipGroupId.toString(), GroupType.VIP.getCode());
 |  | 
 | 
											
												
													
														|  | -		if(totalCourseNum>0){
 |  | 
 | 
											
												
													
														|  | 
 |  | +		Integer courseEndNum = courseScheduleDao.findCourseEndNum(vipGroupId);
 | 
											
												
													
														|  | 
 |  | +		if(courseEndNum>0){
 | 
											
												
													
														|  |  			throw new BizException("此状态课程组不支持删除");
 |  |  			throw new BizException("此状态课程组不支持删除");
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  		vipGroup.setStatus(VipGroupStatusEnum.DELETE);
 |  |  		vipGroup.setStatus(VipGroupStatusEnum.DELETE);
 | 
											
												
													
														|  |  		vipGroupDao.update(vipGroup);
 |  |  		vipGroupDao.update(vipGroup);
 | 
											
												
													
														|  | 
 |  | +		groupClassService.hideGroupInfo(vipGroupId.toString(), GroupType.VIP);
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  	@Override
 |  |  	@Override
 | 
											
										
											
												
													
														|  | @@ -694,7 +695,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
											
												
													
														|  |  						allStudentNum=Long.valueOf(0);
 |  |  						allStudentNum=Long.valueOf(0);
 | 
											
												
													
														|  |  					}
 |  |  					}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -					if((Objects.isNull(aLong)||aLong<=0)
 |  | 
 | 
											
												
													
														|  | 
 |  | +					if((Objects.isNull(aLong1)||aLong1<=0)
 | 
											
												
													
														|  |  							&&(classGroup.getStudentNum()<=0)){
 |  |  							&&(classGroup.getStudentNum()<=0)){
 | 
											
												
													
														|  |  						vipGroup.setEnableDelete(1);
 |  |  						vipGroup.setEnableDelete(1);
 | 
											
												
													
														|  |  					}
 |  |  					}
 |