do all right by (one)
To treat one favorably and respectfully. I need to put aside my work stress and remember that my true goal in life is to do all right by you and the kids.
do badly by (one)
To treat one poorly. I've been so absorbed in my job that I've done badly by my wife and kids.
do somehow by someone
to treat someone in a particular manner. (Do not confuse this with a passive construction. The someone is not the actor but the object.) Tom did all right by Ann when he brought her red roses. I did badly by Tom. I fired him without good reason.