select u_name,
报修 = (select count(*) from tb_equip where u_name = a.u_name and status = '已报修'),
正常 = (select count(*) from tb_equip where u_name = a.u_name and status = '正常'),
正在处理 = (select count(*) from tb_equip where u_name = a.u_name and status = '正在处理')
from tb_equip a group by u_name