ck 4 tahun lalu
induk
melakukan
26f6845d31
1 mengubah file dengan 2 tambahan dan 5 penghapusan
  1. 2 5
      data_manage/pitcher_panel.py

+ 2 - 5
data_manage/pitcher_panel.py

@@ -71,11 +71,8 @@ def get_pitcher_panel_daily(pitcher, start, end, page, page_size, order_by, orde
            sum(first_order_amount) first_order_amount,sum(reg_amount)  reg_amount, 
            sum(first_order_amount) first_order_amount,sum(reg_amount)  reg_amount, 
            round(if(sum(cost)=0,0,sum(first_order_amount)/sum(cost)),4) first_roi,
            round(if(sum(cost)=0,0,sum(first_order_amount)/sum(cost)),4) first_roi,
            sum(order_amount) order_amount,
            sum(order_amount) order_amount,
-           round(if(sum(cost)=0,0,sum(reg_amount)/sum(cost)),4)  today_roi, 
-           sum(total_amount) total_amount,
-           sum(total_cost) total_cost,
-           sum(total_profit) total_profit,
-           if(sum(total_cost)=0,0,sum(total_amount)/sum(total_cost)) total_roi 
+           round(if(sum(cost)=0,0,sum(reg_amount)/sum(cost)),4)  today_roi 
+    
             from ({sql}) b  """
             from ({sql}) b  """
 
 
     print(sumSql)
     print(sumSql)