| | |
| | | }else if("portal".equals(logType)){ |
| | | 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 = ?"; |
| | | params = CollectionUtils.newList(account); |
| | | }else{ |
| | | if(StringUtils.isEmpty(password)) { |
| | | return new Result(false, "用户密码不能为空"); |
| | |
| | | // 存到redis |
| | | redisTemplate.opsForValue().set(UserInfoWrapper.SESSION_USER_INFO_KEY, wrapper); |
| | | request.getSession().setAttribute(UserInfoWrapper.SESSION_USER_INFO_KEY, wrapper); |
| | | if ("study".equals(logType) || "portal".equals(logType)) { |
| | | if ("study".equals(logType) || "portal".equals(logType) || "zhyly".equals(logType)) { |
| | | /*if (StringUtils.isEmpty(ClientUtils.getClassId()) && user.getRoles() == null) { |
| | | return new Result(false, "该用户未加入任何班级或未激活,请联系班主任"); |
| | | }*/ |
| | |
| | | @RequestMapping(value = "release", method = RequestMethod.GET) |
| | | public String release(HttpServletRequest httpRequest, HttpServletResponse response) { |
| | | doRelease(httpRequest, response); |
| | | return "redirect:/web/admin/index.html#login"; |
| | | return "退出成功"; |
| | | } |
| | | |
| | | /** |