|  |  | 
 |  |  |        if("study".equals(logType)){ | 
 |  |  |             hql = "from User where deleteFlag is false and account = ? and password = ? "; | 
 |  |  |             params =  CollectionUtils.newList(account,password); | 
 |  |  |       }else if("portal".equals(logType)){ | 
 |  |  |          hql = "from User where deleteFlag is false and mobilePhone = ? and password = ? "; | 
 |  |  |          params = CollectionUtils.newList(account, password); | 
 |  |  |         }else{ | 
 |  |  |             if(StringUtils.isEmpty(password)) { | 
 |  |  |             return new Result(false, "用户密码不能为空"); | 
 |  |  |          } | 
 |  |  |             hql = "from User where deleteFlag is false and account = ? and password = ? "; | 
 |  |  |             hql = "from User where deleteFlag is false and mobilePhone = ? and password = ? "; | 
 |  |  |             params =  CollectionUtils.newList(account,password); | 
 |  |  |         } | 
 |  |  |  |