public UserList userListP(Pagination pagination) throws SQLException { UserMapper userMapper = sqlSession.getMapper(UserMapper.class); UserList userList; if (userMapper != null) { List<UserInfo> userListP = userMapper.getUserListP(pagination); if (userListP == null) { userList = new UserList(); userList.setErrorCode(Configuration.ErrorCodes.ER1001.getCodeName()); userList.setSubscribe_kor(Configuration.ErrorCodes.ER1001.getSubtitleKor()); return userList; } else { userList = new UserList(); userList.setReqList(userListP); userList.setErrorCode(Configuration.ErrorCodes.Success.getCodeName()); userList.setSubscribe_kor(Configuration.ErrorCodes.Success.getSubtitleKor()); return userList; } } else { userList = new UserList(); userList.setErrorCode(Configuration.ErrorCodes.ER0000.getCodeName()); userList.setSubscribe_kor(Configuration.ErrorCodes.ER0000.getSubtitleKor()); return userList; } }