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