Commit 4e04e30c authored by liming's avatar liming

运动日历只查询大于0的数据

parent bb4102bb
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
from ( from (
select DAYOFMONTH(create_time) as day,distance,climb_distance,duration select DAYOFMONTH(create_time) as day,distance,climb_distance,duration
from sport_user_training_log from sport_user_training_log
where player_id = #{playerId} and sport_type = 1 where player_id = #{playerId} and sport_type = 1 and distance>0
and create_date >= #{beginDate} and create_date < #{endDate} and create_date < #{today} and create_date >= #{beginDate} and create_date < #{endDate} and create_date < #{today}
) t1 ) t1
group by day group by day
......
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