To make a sad Sim happy open up the cheat bar and type in "testingcheats true". Then hold shift and click on the Sim you’d like to change the needs for, and select "Make Happy". You can also lock in their current needs state by selecting "cheat need" then "disable need decay".