ck 4 lat temu
rodzic
commit
5defe40944
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      data_manage/pitcher_panel.py

+ 2 - 1
data_manage/pitcher_panel.py

@@ -456,7 +456,7 @@ def get_channel_order_trend(channel,pitcher,start,end,page,page_size,order_by,or
         reg_order_amount-cost profit,
         reg_order_amount-cost profit,
         follow_user new_follow_user,
         follow_user new_follow_user,
         round(reg_order_amount/cost,4) roi,
         round(reg_order_amount/cost,4) roi,
-        round(first_order_amount/cost) first_roi,
+        round(first_order_amount/cost,4) first_roi,
         round(cost/follow_user,2) new_follow_per_cost,
         round(cost/follow_user,2) new_follow_per_cost,
         reg_order_user order_user,
         reg_order_user order_user,
        reg_order_count order_count,
        reg_order_count order_count,
@@ -680,6 +680,7 @@ def get_pitcher_trend(pitcher,start=None,end=None,page=None,page_size=None,order
     round(sum(first_amount)/sum(cost),4) first_roi,
     round(sum(first_amount)/sum(cost),4) first_roi,
     round(sum(reg_amount)/sum(cost),4) roi,
     round(sum(reg_amount)/sum(cost),4) roi,
     sum(profit) profit,
     sum(profit) profit,
+    sum(first_amount) first_amount,
     round(sum(reg_amount7)/sum(cost),4) roi7,
     round(sum(reg_amount7)/sum(cost),4) roi7,
     sum(reg_amount30) reg_amount30, 
     sum(reg_amount30) reg_amount30, 
     round(sum(reg_amount30)/sum(cost),4) roi30,
     round(sum(reg_amount30)/sum(cost),4) roi30,