示例#1
0
 public boolean deleteReq(int uidx) {
   UserMapper userMapper = sqlSession.getMapper(UserMapper.class);
   if (userMapper != null) {
     try {
       userMapper.deleteRequest(uidx);
       sqlSession.commit();
       return true;
     } catch (Exception e) {
       return false;
     }
   }
   return false;
 }
示例#2
0
  public boolean createAccount(UserInfo userInfo) {

    UserMapper userMapper = sqlSession.getMapper(UserMapper.class);
    if (userMapper != null) {
      try {
        userMapper.createAccount(userInfo);
        sqlSession.commit();
        return true;
      } catch (Exception e) {
        return false;
      }
    }
    return false;
  }