Get the raw end of the deal

To do badly in a negotiation or a similar situation.

I got the raw end of the deal when I received my new work schedule.