Seven men, including six from South Wales, have been sentenced to more than 58 years in prison following an investigation into drug supply.