try {
String hql = "from UserInfo userInfo where userInfo.email = ? and userInfo.passwd = ? ";
return (UserInfo) baseDao.findFirstOne(hql, email, md5(passwd));
} catch (Exception e) {
System.out.println(e.getMessage());
throw new UserInfoException("UserInfo按email,密码查询异常");
}
}