记一次大坑:mybatis查询结果和接收的不一样,折腾我好几个小时. 先上代码:代码是要查询排名,sql执行的结果 SELECT b.operator_id, b.class_count, b.class_study, b.student_count, b.rownum AS rank, b.rownum AS praiseSum FROM ( SELECT concat((@rownum :=@rownum + 1) + 0, '') AS rownum, operator_id, class…