|
|
|
@ -786,23 +786,11 @@ public class FontController {
|
|
|
|
|
public Msg qRCodeLogin(Power_User powerUser, HttpServletResponse response, HttpServletRequest request, Model model){
|
|
|
|
|
try {
|
|
|
|
|
Power_UserVo user = power_userService.findUserName(powerUser);
|
|
|
|
|
System.out.println("user:::::"+user);
|
|
|
|
|
//添加进操作日志
|
|
|
|
|
Power_Log log = new Power_Log();
|
|
|
|
|
if(user != null){
|
|
|
|
|
// //存session密码置空
|
|
|
|
|
//// //是否记住密码功能
|
|
|
|
|
//// MyCookieUtil.remember(request, response);
|
|
|
|
|
//设置token缓存
|
|
|
|
|
String token = UUID.randomUUID().toString();
|
|
|
|
|
//查询归属医院
|
|
|
|
|
/*long start5 = System.currentTimeMillis();
|
|
|
|
|
Power_User_Dict powerUserDict = powerUserDictMapper.selectDictIdByUserId(user.getUserId());
|
|
|
|
|
long end5 = System.currentTimeMillis();
|
|
|
|
|
System.out.println("查询医院时间="+(end5-start5)/1000.0+"s");
|
|
|
|
|
user.setDictId(powerUserDict.getDictId());*/
|
|
|
|
|
//设置用户登录次数缓存
|
|
|
|
|
//CacheManager.addloginUserCount(fmt.format(new Date()),user.getUserName());
|
|
|
|
|
CacheManager.addExcCount("noExc");
|
|
|
|
|
List<Power_Menu> list = null;
|
|
|
|
|
List<User_Dept_Menu> menuList = new ArrayList<>();
|
|
|
|
@ -856,10 +844,6 @@ public class FontController {
|
|
|
|
|
url = "http://"+ip+":"+POWER_PORT+"/power/gatewayPage";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//request.getRequestDispatcher(url).forward(request, response);
|
|
|
|
|
|
|
|
|
|
//response.sendRedirect(url);
|
|
|
|
|
//return "redirect:gatewayPage";
|
|
|
|
|
return Msg.success().add("url",url);
|
|
|
|
|
}else{
|
|
|
|
|
//登录失败
|
|
|
|
|