| | |
| | | // 查询用户信息 |
| | | String uuNumber=null; |
| | | String uuReNumber=null; |
| | | String hql = "from User where deleteFlag is false and account = ?"; |
| | | List<Object> params = CollectionUtils.newList(account); |
| | | String hql = "from User where deleteFlag is false and account = ? and password= ?"; |
| | | List<Object> params = CollectionUtils.newList(account,password); |
| | | User user = commonDAO.findUnique(hql,params, User.class); |
| | | if (user == null ) { |
| | | return new Result(false, "用户账户、密码错误"); |
| | |
| | | hql = "from User where deleteFlag is false and account = ?"; |
| | | params = CollectionUtils.newList(account); |
| | | }else if("portal".equals(logType)){ |
| | | hql = "from User where deleteFlag is false and mobilePhone = ?"; |
| | | hql = "from User where deleteFlag is false and email = ?"; |
| | | params = CollectionUtils.newList(account); |
| | | }else{ |
| | | if(StringUtils.isEmpty(password)) { |