排序desc修改
This commit is contained in:
parent
4895d0a334
commit
e3f6ed80ac
|
@ -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
|
||||
where vi.create_time >= %s and vi.create_time <= %s
|
||||
group by u.id
|
||||
order by "观看完成视频总数" desc, "账号"
|
||||
order by "观看完成视频总数" desc, "观看总时间" desc
|
||||
limit %s
|
||||
"""
|
||||
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
|
||||
where vi.create_time >= %s and vi.create_time <= %s
|
||||
group by o.id
|
||||
order by "观看完成视频总数" desc, o.sort
|
||||
order by "观看完成视频总数" desc, "观看总时间" desc
|
||||
limit %s
|
||||
"""
|
||||
return Response(query_all_dict(sql_str, [vdata['start_time'], vdata['end_time'], vdata['limit']]))
|
Loading…
Reference in New Issue