Commit 7f87a412 authored by liming's avatar liming

个人排名查询修改

parent 249d4ca0
......@@ -6,10 +6,10 @@
from sport_user_month_rank
where year = #{year}
and month = #{month}
<if test="type = 1">
<if test="type == 1">
and (score &gt; #{score} or (score = #{score} and update_time &lt; #{updateTime} ))
</if>
<if test="type = 2">
<if test="type == 2">
and (total_calorie &gt; #{totalCalorie} or (total_calorie = #{totalCalorie} and update_time &lt; #{updateTime} ))
</if>
</select>
......
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