| 
					
				 | 
			
			
				@@ -1,24 +1,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.rtrh.projects.web.controller.passport; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.ArrayList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.Objects; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.rtrh.projects.modules.problem.vo.QuestionQueryVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.rtrh.projects.modules.rolemeun.dao.SecRoleDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.rtrh.projects.modules.rolemeun.mapper.SecRoleMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.rtrh.projects.modules.rolemeun.po.MeunInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.rtrh.projects.modules.rolemeun.po.SecRole; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.rtrh.projects.modules.system.enums.UserKindUnitEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.rtrh.projects.modules.task.service.TaskRecordsService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.stereotype.Controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.ui.ModelMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.GetMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.RequestMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.RequestMethod; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.servlet.ModelAndView; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hutool.core.collection.CollectionUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.common.util.StringUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.core.repository.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.projects.modules.policy.po.PolicyDocumentColumn; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -27,14 +9,28 @@ import com.rtrh.projects.modules.policy.service.PolicyDocumentService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.projects.modules.policy.vo.IndexShowColumnVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.projects.modules.policy.vo.PolicyDocumentVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.projects.modules.policy.vo.PolicyDocumetQueryVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.rtrh.projects.modules.problem.vo.QuestionQueryVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.projects.modules.rolemeun.enums.MenuType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.rtrh.projects.modules.rolemeun.po.MeunInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.rtrh.projects.modules.rolemeun.po.SecRole; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.projects.modules.rolemeun.servicel.SecRoleservice; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.rtrh.projects.modules.system.enums.UserKindUnitEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.projects.modules.system.po.JUnit; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.projects.modules.system.service.JUnitService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.rtrh.projects.modules.task.service.TaskRecordsService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.rtrh.projects.web.controller.BaseController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.team.security.TeamShiroUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import net.rubyeye.xmemcached.XMemcachedClient; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.stereotype.Controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.ui.ModelMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.web.servlet.ModelAndView; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import cn.hutool.core.collection.CollectionUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.ArrayList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Collection; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Objects; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 登录 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,8 +50,9 @@ public class LoginController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	private PolicyDocumentService policyDocumentService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	private TaskRecordsService taskRecordsService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private SecRoleDao secRoleDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	@Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	private XMemcachedClient memcachedClient; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 * 最外层 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -181,4 +178,20 @@ public class LoginController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return new ModelAndView("/vmodules/index.jsp"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	@GetMapping("jumpPage/{cookieId}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	public ModelAndView jump(@PathVariable(value = "cookieId") String cookieId, @RequestParam("toUrl") String toUrl, ModelMap model) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		Object o = memcachedClient.get(cookieId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		if(o == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			model.put("back", true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			model.put("back", false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		for (String s : (Collection<String>) o) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			response.addHeader("Set-Cookie", s); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		model.put("toUrl", toUrl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		memcachedClient.delete(cookieId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		return new ModelAndView("/vmodules/jump.jsp"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |