|
|
@ -131,7 +131,8 @@ |
|
|
<select id="selectUserPointsRanking" resultType="com.elink.esua.epdc.dto.result.EpdcAppPointsRankingUserDTO"> |
|
|
<select id="selectUserPointsRanking" resultType="com.elink.esua.epdc.dto.result.EpdcAppPointsRankingUserDTO"> |
|
|
SELECT |
|
|
SELECT |
|
|
userRanking.rank, |
|
|
userRanking.rank, |
|
|
userRanking.points |
|
|
userRanking.points, |
|
|
|
|
|
userRanking.pdtj |
|
|
FROM( |
|
|
FROM( |
|
|
SELECT |
|
|
SELECT |
|
|
(@i:=@i+1) rank, |
|
|
(@i:=@i+1) rank, |
|
|
@ -155,7 +156,7 @@ |
|
|
GROUP BY tab.points |
|
|
GROUP BY tab.points |
|
|
ORDER BY tab.points DESC |
|
|
ORDER BY tab.points DESC |
|
|
) userRanking |
|
|
) userRanking |
|
|
WHERE userRanking.userId = #{userId} |
|
|
WHERE instr(userRanking.pdtj , #{userId} ) > 0 |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectCountPointsRanking" resultType="int"> |
|
|
<select id="selectCountPointsRanking" resultType="int"> |
|
|
|