Sentence writing:
select * from coca_user a where a.integral>(select b.integral from coca_user b where b.bsid=? and b.integral!=0) and a.integral!=0
explain:
Query the data that is larger than the integral field value of a, so as to know the ranking.