|
|
@ -321,12 +321,12 @@ public class dbItemHandler extends dbHandlerBase { |
|
|
|
return worked; |
|
|
|
return worked; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public HashSet<Integer> GET_ITEMS_FOR_VENDOR(final int vendorID) { |
|
|
|
public HashSet<Integer> GET_VENDOR_CAN_ROLL_LIST(final int vendorID) { |
|
|
|
|
|
|
|
|
|
|
|
HashSet<Integer> itemSet = new HashSet<>(); |
|
|
|
HashSet<Integer> itemSet = new HashSet<>(); |
|
|
|
|
|
|
|
|
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
|
PreparedStatement preparedStatement = connection.prepareStatement("SELECT ID FROM static_itembase WHERE vendorType = ?")) { |
|
|
|
PreparedStatement preparedStatement = connection.prepareStatement("SELECT ID FROM static_vendor_items WHERE vendorType = ?")) { |
|
|
|
|
|
|
|
|
|
|
|
preparedStatement.setInt(1, vendorID); |
|
|
|
preparedStatement.setInt(1, vendorID); |
|
|
|
|
|
|
|
|
|
|
|