Selaa lähdekoodia

MOD:素材库文本修复

cxyu 3 vuotta sitten
vanhempi
commit
812682d5cf
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5 5
      data_manage/public_analysis.py

+ 5 - 5
data_manage/public_analysis.py

@@ -829,15 +829,15 @@ def content_rank(user_id, start, end, page, page_size, order, order_by, book, ch
     op_or1 = f' or (dt<date_add(now(),interval -5 day) or cost>5000) ' if data_type == 'all' else ''
     # clicktimes,view_times,consume_amount,click_rate---------数据进行一一对应
     if order_by == 'click_times':
-        order_by = 'click_count'
+        order_by = 'clickTimes'
     if order_by == 'view_times':
-        order_by = 'view_count'
+        order_by = 'viewTimes'
     if order_by == 'consume_amount':
-        order_by = 'cost'
+        order_by = 'consumeAmount'
     if order_by == 'click_rate':
-        order_by = 'if(click_count=0 or view_count =0 or view_count is null or click_count is null,0,click_count / view_count) '
+        order_by = 'if(clickTimes=0 or viewTimes =0 or viewTimes is null or clickTimes is null,0,clickTimes / viewTimes) '
     if order_by == 'create_time' or order_by == 'start_date':
-        order_by = 'cost'
+        order_by = 'consumeAmount'
 
     op_order = f" order by {order_by}  {order}" if order_by and order else ''