| | |
| | | } |
| | | |
| | | //退出录 清除session |
| | | @RequestMapping(value = "khdloginout", method = RequestMethod.POST) |
| | | @RequestMapping(value = "release", method = RequestMethod.GET) |
| | | @ResponseBody |
| | | public void khdloginout(HttpServletRequest request, HttpServletResponse response) { |
| | | System.out.println("清除session"); |
| | | HttpSession session = request.getSession(); |
| | | redisTemplate.delete(UserInfoWrapper.SESSION_USER_INFO_KEY); |
| | | System.out.println(session.getAttribute("userId")); |
| | | System.out.println(session.getAttribute("classId")); |
| | | session.invalidate(); |
| | | public void release(HttpServletRequest request, HttpServletResponse response) { |
| | | // System.out.println("清除session"); |
| | | // HttpSession session = request.getSession(); |
| | | // redisTemplate.delete(UserInfoWrapper.SESSION_USER_INFO_KEY); |
| | | // System.out.println(session.getAttribute("userId")); |
| | | // System.out.println(session.getAttribute("classId")); |
| | | doRelease(request, response); |
| | | // session.invalidate(); |
| | | } |
| | | |
| | | /** |
| | |
| | | hql = "from User where deleteFlag is false and email = ?"; |
| | | params = CollectionUtils.newList(account); |
| | | }else if("zhyly".equals(logType)){ |
| | | hql = "from User where deleteFlag is false and mobilePhone = ? and creator != '管理员'"; |
| | | hql = "from User where deleteFlag is false and mobilePhone = ?"; |
| | | params = CollectionUtils.newList(account); |
| | | }else{ |
| | | if(StringUtils.isEmpty(password)) { |