|
|
@ -84,6 +84,18 @@ public class dbWarehouseHandler extends dbHandlerBase { |
|
|
|
return transactionsList; |
|
|
|
return transactionsList; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void DELETE_WAREHOUSE(Warehouse warehouse) { |
|
|
|
|
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
|
|
|
|
|
PreparedStatement preparedStatement = connection.prepareStatement("DELETE FROM ``dyn_warehouse` WHERE `cityUUID` = ?;")) { |
|
|
|
|
|
|
|
preparedStatement.setInt(1, warehouse.city.getObjectUUID()); |
|
|
|
|
|
|
|
preparedStatement.executeUpdate(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (SQLException e) { |
|
|
|
|
|
|
|
Logger.error(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean UPDATE_WAREHOUSE(Warehouse warehouse) { |
|
|
|
public boolean UPDATE_WAREHOUSE(Warehouse warehouse) { |
|
|
|
|
|
|
|
|
|
|
|
JSONObject warehouseJSON = new JSONObject(); |
|
|
|
JSONObject warehouseJSON = new JSONObject(); |
|
|
|