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; }
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; }