|
@@ -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,
|
|
|
round(if(sum(cost)=0,0,sum(first_order_amount)/sum(cost)),4) first_roi,
|
|
|
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 """
|
|
|
|
|
|
print(sumSql)
|