count(distinct t_id)或者再包一层同样语句
试试