Wiaan Mulder took seven wickets as South Africa beat Bangladesh by an innings and 219 runs on the third day of the second Test at SuperSport Park on Wednesday.