There is no connection between these two concepts (except the word black).
Black bodies are theoretical objects that emit radiation with a distribution depending only on the temperature of the body, i.e. not effected by the material of the object.
Black holes are massive astronomical objects, which are so small in volume that gravity prevents anything from escaping.