Heat get scoring and front court versatility - float Bam between the 4 and 5 with a high-level PF and C net to him while also getting a scorer on a better contract that Herro.
Lakers get a 3rd star next to Lebron and AD, and get needed, affordable depth at key positions (PG, 3&D Wing) in vets who can contribute now.
Bulls get pieces they don't fit their needs now, but can be traded at some point, plus a young center for their young team.