| 
					
				 | 
			
			
				@@ -330,6 +330,11 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Transactional(rollbackFor = Exception.class) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public HttpResponseResult<Boolean> submit(TeacherSubmitReq teacherSubmitReq) throws BizException { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Long tenantId = teacherSubmitReq.getTenantId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Boolean customerService = teacherSubmitReq.getCustomerService(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (tenantId != null && tenantId > 0 && Boolean.TRUE.equals(customerService)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            throw new BizException("客服不能有机构老师身份"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // todo 暂时不上客服相关 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //        teacherSubmitReq.setCustomerService(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (null == teacherSubmitReq.getUserId()) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1668,9 +1673,13 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (teacher == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             throw new BizException("无效的老师账号"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Long tenantId = teacher.getTenantId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Boolean customerService = teacher.getCustomerService(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (tenantId != null && tenantId > 0 && Boolean.TRUE.equals(customerService)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            throw new BizException("客服不能有机构老师身份"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 冻结客服,移交好友给其他客服 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Boolean customerService = teacher.getCustomerService(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (UserLockFlag.NORMAL.equals(teacher.getLockFlag()) && Boolean.TRUE.equals(customerService)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             List<TeacherWrapper.CustomerServiceSendMsg2User> customerServiceSendMsg2User = transferFriendV2(teacherId, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             clearUserCustomerRelation(teacherId); 
			 |