Commit 55a19b2a authored by liming's avatar liming

过滤掉玩家排行榜被删除的用户信息

parent 8ae07af1
...@@ -3,9 +3,11 @@ ...@@ -3,9 +3,11 @@
<mapper namespace="com.antai.sport.http.server.server.api.business.user.mapper.SportUserMonthRankBusinessMapper"> <mapper namespace="com.antai.sport.http.server.server.api.business.user.mapper.SportUserMonthRankBusinessMapper">
<select id="getMyRank" resultType="java.lang.Integer"> <select id="getMyRank" resultType="java.lang.Integer">
select count(1) + 1 select count(1) + 1
from sport_user_month_rank from sport_user_month_rank t1
left join sport_user t2 on t1.player_id = t2.id
where year = #{year} where year = #{year}
and month = #{month} and month = #{month}
and t2.deleted = 0
<if test="type == 1"> <if test="type == 1">
and (score &gt; #{score} or (score = #{score} and update_time &lt; #{updateTime} )) and (score &gt; #{score} or (score = #{score} and update_time &lt; #{updateTime} ))
</if> </if>
......
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