Package com.freewebsys.sns.service

Examples of com.freewebsys.sns.service.UserInfoException


      // System.out.println(content);

      mailService.systemSendMail(userInfo.getEmail(), content, "code");// 发送邮件
      return userInfo;
    } catch (Exception e) {
      throw new UserInfoException("UserInfo保存异常");
    }
  }
View Full Code Here


  @Transactional
  public UserInfo findUserInfoById(Integer id) throws UserInfoException {
    try {
      return (UserInfo) baseDao.findById(UserInfo.class, id);
    } catch (Exception e) {
      throw new UserInfoException("UserInfo按ID查询异常");
    }
  }
View Full Code Here

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

    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,密码查询异常");
    }
  }
View Full Code Here

TOP

Related Classes of com.freewebsys.sns.service.UserInfoException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.