ck vor 4 Jahren
Ursprung
Commit
cc7bbc03a7
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      data_manage/pitcher_panel.py

+ 3 - 2
data_manage/pitcher_panel.py

@@ -838,7 +838,7 @@ def get_pitcher_trend(pitcher,start=None,end=None,page=None,page_size=None,order
             d30 reg_amount30,
             round(d30/cost,4) roi30,
             reg_amount-cost profit,
-            inva_cost,
+            inva_cost expect_profit,
             CONCAT(d1,",",0,',',round(d1/cost,4)) d1,
             CONCAT(d2-d1,",",round((d2-d1)/cost,4),',',round(d2/cost,4)) d2,
             CONCAT(d3-d2,",",round((d3-d2)/cost,4),',',round(d3/cost,4)) d3,
@@ -879,7 +879,8 @@ def get_pitcher_trend(pitcher,start=None,end=None,page=None,page_size=None,order
     sum(profit) profit,
     round(sum(reg_amount7)/sum(cost),4) roi7,
     sum(reg_amount30) reg_amount30, 
-    round(sum(reg_amount30)/sum(cost),4) roi30 
+    round(sum(reg_amount30)/sum(cost),4) roi30,
+    sum(expect_profit) expect_profit
     from ({sql}) a
     """