|
|
|
@ -1,8 +1,6 @@
|
|
|
|
|
package com.manage.controller;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
|
import com.manage.dao.Power_UserMapper;
|
|
|
|
|
import com.manage.encrypt.Base64;
|
|
|
|
|
import com.manage.encrypt.MD5;
|
|
|
|
@ -13,7 +11,6 @@ import com.manage.service.cache.CacheManager;
|
|
|
|
|
import com.manage.util.*;
|
|
|
|
|
import com.manage.vo.*;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.apache.cxf.endpoint.Client;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
@ -48,7 +45,6 @@ public class LoginController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private Power_UserMapper power_userMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "login",method = RequestMethod.GET)
|
|
|
|
|
public String toLogin(Model model ,HttpServletRequest request){
|
|
|
|
|
CacheManager.addExcCount("noExc");
|
|
|
|
@ -58,13 +54,10 @@ public class LoginController {
|
|
|
|
|
return "loginDir/login";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "login",method = RequestMethod.POST)
|
|
|
|
|
public String login(Power_User powerUser,HttpServletResponse response, HttpServletRequest request,Model model){
|
|
|
|
|
public String login(Power_User powerUser,HttpServletResponse response, HttpServletRequest request,Model model) throws Exception {
|
|
|
|
|
//同一浏览器打开login,直接触发注销登录session
|
|
|
|
|
loginService.removeOldUserOnLogin(request);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
Power_UserVo user = powerUserService.findPowerUserByUserNameAndUserPwd(powerUser);
|
|
|
|
|
//添加进操作日志
|
|
|
|
@ -85,6 +78,7 @@ public class LoginController {
|
|
|
|
|
String token = UUID.randomUUID().toString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询归属医院
|
|
|
|
|
/* long start5 = System.currentTimeMillis();
|
|
|
|
|
Power_User_Dict powerUserDict = powerUserDictMapper.selectDictIdByUserId(user.getUserId());
|
|
|
|
|