A switching valve includes a valve body, a diaphragm, and a driving assembly. The valve body includes a valve cavity, a water inlet, a first water outlet, and a second water outlet in communication with the valve cavity. The diaphragm includes two unsealing parts connected with the driving assembly and respectively arranged opposite to the first water outlet and the second water outlet. Each unsealing part can control opening or closing of the first water outlet or the second water outlet. The driving assembly can individually drive each of the unsealing parts to switch between opening and closing such that at least one of the first water outlet and the second water outlet is in an open state.