public List<BidHistoryResponse> getBidHistory(int lotId, int isTender) { List<BidHistoryResponse> bidHistoryList = null; try { LotsDAO lotsDAO = new LotsDAO(); bidHistoryList = lotsDAO.getBidHistoryList(lotId, isTender == 1); } catch (SQLException s) { s.printStackTrace(); } catch (IOException s) { s.printStackTrace(); } return bidHistoryList; }