|  | @@ -106,6 +106,8 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  	private StudentPaymentOrderService studentPaymentOrderService;
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  |  	private ContractService contractService;
 | 
	
		
			
				|  |  | +	@Autowired
 | 
	
		
			
				|  |  | +    private TeacherService teacherService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	public BaseDAO<Long, VipGroup> getDAO() {
 | 
	
	
		
			
				|  | @@ -240,7 +242,11 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  		}else{
 | 
	
		
			
				|  |  |  			vipGroupApplyBaseInfoDto.setStatus(VipGroupStatusEnum.APPLYING);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		vipGroupApplyBaseInfoDto.setOrganId(Integer.parseInt(sysUser.getOrganId()));
 | 
	
		
			
				|  |  | +        Teacher teacher = teacherService.get(sysUser.getId());
 | 
	
		
			
				|  |  | +		if(teacher.getOrganId().indexOf(",")!=-1){
 | 
	
		
			
				|  |  | +		    throw new BizException("教师部门异常");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        vipGroupApplyBaseInfoDto.setOrganId(Integer.parseInt(teacher.getOrganId()));
 | 
	
		
			
				|  |  |  		//开课时间为排课的第一节课的开始时间
 | 
	
		
			
				|  |  |  		vipGroupApplyBaseInfoDto.setCourseStartDate(firstCourseSchedule.getStartClassTime());
 | 
	
		
			
				|  |  |  		//课程结束时间为排课的最后一节课的结束时间
 |