Assuming that you're talking about the employees , there are a couple ways to deal with them, such as :
- Listen to them.
Listen whether their complain is valid or not
- Guide them
Help them to realize that complaining will do less good than actually doing the job
- Report to the HR
If you feel that the complainer constantly bring negative environment in the workplace, file a complain to the human Resources