| | |
| | | }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 = ? and creator != '管理员'"; |
| | | 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, "该用户未加入任何班级或未激活,请联系班主任"); |
| | | }*/ |