Commit 7fa83bef by giaogiao

修改排名bug

parent b84fff36
...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
FROM FROM
( SELECT fk_user_id, sum( money ) AS drTotal FROM donation_record WHERE donation_record.pay_status = 1 GROUP BY fk_user_id ORDER BY drTotal DESC ) AS tb, ( SELECT fk_user_id, sum( money ) AS drTotal FROM donation_record WHERE donation_record.pay_status = 1 GROUP BY fk_user_id ORDER BY drTotal DESC ) AS tb,
( SELECT @curRank := 0 ) r ( SELECT @curRank := 0 ) r
) AS abc ) AS giao
WHERE WHERE
abc.fk_user_id = #{userId} giao.fk_user_id = #{userId}
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment