|
|
@@ -27,7 +27,7 @@
|
|
|
from user_distribute_rank_statistics_record udsr
|
|
|
left join user u on u.id = udsr.user_id
|
|
|
where statistics_start_time = #{statisticsTime}) s
|
|
|
- where udsr.user_id = #{userId}
|
|
|
+ where s.user_id = #{userId}
|
|
|
</select>
|
|
|
|
|
|
<select id="getPreviousWinners" resultType="com.cyksj.model.views.DistributeUserRankView">
|
|
|
@@ -85,10 +85,11 @@
|
|
|
udsr.user_id,
|
|
|
udsr.statistics_start_time,
|
|
|
udsr.money,
|
|
|
- udsr.orders
|
|
|
+ udsr.orders,
|
|
|
+ robot_id
|
|
|
from user_distribute_rank_statistics_record udsr
|
|
|
left join user u on u.id = udsr.user_id
|
|
|
where statistics_start_time = #{statisticsTime}) s
|
|
|
- where udsr.robot_id = #{robotId}
|
|
|
+ where s.robot_id = #{robotId}
|
|
|
</select>
|
|
|
</mapper>
|