初始化

master
linjj 1 week ago
parent 13a0f49f6e
commit 79e494e978

@ -291,8 +291,8 @@ public class methodForEmrMedical {
user.setRemark(power_depts.toString());
//设置进缓存
CacheManager.putCache(token,new Cache(date,user,TOKEN_EXPIRE_TIME));
ActionScopeUtils.setSessionAttribute("CURRENT_USER",user,Integer.valueOf(String.valueOf(TOKEN_EXPIRE_TIME))/1000);
CacheManager.putCache(token, new Cache(date, user, TOKEN_EXPIRE_TIME));
ActionScopeUtils.setSessionAttribute("CURRENT_USER", user, Integer.valueOf(String.valueOf(TOKEN_EXPIRE_TIME)) / 1000);
//String url = "http://localhost:8080/power/gatewayPage";
//String url = "http://10.6.1.127:9001/power/gatewayPage";
String url = "http://10.6.1.127:8080/power/gatewayPage";
@ -409,7 +409,7 @@ public class methodForEmrMedical {
* */
@RequestMapping(value = "login", method = RequestMethod.GET, produces = "text/html;charset=utf-8")
@ResponseBody
public String login(String sessionID, HttpServletRequest request, HttpServletResponse response) throws Exception {
public String login(String sessionID, HttpServletRequest request, HttpServletResponse response, Model model) throws Exception {
String result = "";
String returnMessage = "";
if (sessionID != null && !"".equals(sessionID)) {
@ -474,9 +474,8 @@ public class methodForEmrMedical {
}
}
user.setRemark(power_depts.toString());
//移除缓存
CacheManager.removeCacheByObject(user);
CacheManager.putCache(token, new Cache(date, user, TOKEN_EXPIRE_TIME));
ActionScopeUtils.setSessionAttribute("CURRENT_USER", user, Integer.valueOf(String.valueOf(TOKEN_EXPIRE_TIME)) / 1000);
if (!"".equals(token) && token != null) {
//返回跳转url
result = "http://" + ip + ":" + port + "/emr_medical_record/login?token=" + token + "&userName=" + userName;

@ -1,7 +1,7 @@
# \u62E6\u622A\u83DC\u5355\u914D\u7F6E\u6587\u4EF6 ljx 2019-4-27
#interceptRequest \u672A\u767B\u5F55\u4E4B\u524D\u653E\u884C\u3002\u9ED8\u8BA4\u4E3Anone
#ajaxRequestajax\u8BF7\u6C42\u6CA1\u6709\u5BF9\u5E94\u6A21\u5757\uFF0C\u9700\u8981\u653E\u884C\u3002 \u9ED8\u8BA4\u4E3Anone
releaseRequest = /login,/logout,/services,/font,/refuse,/swagger-ui.html,/webjars,/swagger-resources,/v2,/methodForEmrMedical
releaseRequest = /login,/logout,/services,/font,/refuse,/swagger-ui.html,/webjars,/swagger-resources,/v2,/methodForEmrMedical,/gatewayPage,/*
ajaxRequest = none
#session\u8FC7\u671F\u65F6\u95F4

@ -0,0 +1,20 @@
<html>
<head>
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="${path }/static/css/layui.css" media="all" />
</head>
<body>
<!-- 代码 开始 -->
<div >
<blockquote class="layui-elem-quote">您无权访问此位置!</blockquote>
</div>
<!-- 代码 结束 -->
</body>
</html>

@ -781,7 +781,7 @@ on FIND_IN_SET(dict.deptIds,power_user.dept_id)
<!--通过用户id查询系统标识集合-->
<select id="selectSysFlagsByUserId" resultMap="BaseResultMap">
SELECT
sys_flag,sort
sys_flag
FROM
power_sys_dict
WHERE
@ -792,7 +792,7 @@ on FIND_IN_SET(dict.deptIds,power_user.dept_id)
sys_flag
UNION ALL
SELECT
sys_flag,sort
sys_flag
FROM
power_sys_dict
WHERE

Loading…
Cancel
Save