|
@@ -811,6 +811,8 @@ def get_pitcher_trend(pitcher,start=None,end=None,page=None,page_size=None,order
|
|
|
sql=f"""select dt,pitcher,
|
|
|
cost,
|
|
|
reg_amount,
|
|
|
+ d1 first_amount,
|
|
|
+ round(d1/cost,4) first_roi,
|
|
|
round(reg_amount/cost,4) roi,
|
|
|
round(d7/cost,4) roi7,
|
|
|
d30 reg_amount30,
|
|
@@ -851,6 +853,7 @@ def get_pitcher_trend(pitcher,start=None,end=None,page=None,page_size=None,order
|
|
|
|
|
|
sumSql=f"""select '总计' dt,sum(cost) cost,
|
|
|
sum(reg_amount) reg_amount,
|
|
|
+ round(sum(first_amount)/sum(cost),4) first_roi
|
|
|
round(sum(reg_amount)/sum(cost),4) roi,
|
|
|
sum(profit) profit,
|
|
|
round(sum(d7)/sum(cost),4) roi7,
|