| 
					
				 | 
			
			
				@@ -886,12 +886,7 @@ public class YiZhuLuRuServer { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 如果名字重复了,那么就修改原来的模板 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         YzOrderPattern yzOrderPattern = dao.yuanLaiDeMuBanBianMa(param.getPatternName(), TokenUtil.getTokenUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         UserInfo userInfo = redisLikeService.getUserInfoByCode(TokenUtil.getTokenUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        List<Integer> role = userInfo.getRoles(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if ("1".equals(param.getInputType()) && publicServer.noNeedRule(role, 38)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "您没有权限创建科室模板。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } else if ("2".equals(param.getInputType()) && publicServer.noNeedRule(role, 38, 11)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "您没有权限创建科室模板。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (null == yzOrderPattern) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             yzOrderPattern = new YzOrderPattern(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |