select user_id ,sum(floor(timestampdiff(minute,visit_time,leave_time)/10)) point from visit_tb group by 1 order by 2 desc