观看统计bug
This commit is contained in:
parent
949fd2c3a6
commit
b26f2b75f8
|
|
@ -60,7 +60,7 @@ class AnalyseViewSet(GenericViewSet):
|
||||||
left join vod_view2 v2 on v2.create_by_id = vi.create_by_id and v2.video_id = vi.video_id
|
left join vod_view2 v2 on v2.create_by_id = vi.create_by_id and v2.video_id = vi.video_id
|
||||||
where vi.create_time >= %s and vi.create_time <= %s
|
where vi.create_time >= %s and vi.create_time <= %s
|
||||||
group by u.id
|
group by u.id
|
||||||
order by "观看完成视频总数" desc, "观看总时间" desc
|
order by "观看总时间" desc, "观看完成视频总数" desc
|
||||||
limit %s
|
limit %s
|
||||||
"""
|
"""
|
||||||
return Response(query_all_dict(sql_str, [vdata['start_time'], vdata['end_time'], vdata['limit']]))
|
return Response(query_all_dict(sql_str, [vdata['start_time'], vdata['end_time'], vdata['limit']]))
|
||||||
|
|
@ -87,7 +87,7 @@ class AnalyseViewSet(GenericViewSet):
|
||||||
left join vod_view2 v2 on v2.create_by_id = vi.create_by_id and v2.video_id = vi.video_id
|
left join vod_view2 v2 on v2.create_by_id = vi.create_by_id and v2.video_id = vi.video_id
|
||||||
where vi.create_time >= %s and vi.create_time <= %s
|
where vi.create_time >= %s and vi.create_time <= %s
|
||||||
group by o.id
|
group by o.id
|
||||||
order by "观看完成视频总数" desc, "观看总时间" desc
|
order by "观看总时间" desc, "观看完成视频总数" desc
|
||||||
limit %s
|
limit %s
|
||||||
"""
|
"""
|
||||||
return Response(query_all_dict(sql_str, [vdata['start_time'], vdata['end_time'], vdata['limit']]))
|
return Response(query_all_dict(sql_str, [vdata['start_time'], vdata['end_time'], vdata['limit']]))
|
||||||
Loading…
Reference in New Issue