|
@@ -799,9 +799,9 @@ def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state,loca
|
|
|
sum(reg_order_amount) total_amount,
|
|
|
sum(follow_user) follow_user,
|
|
|
sum(reg_order_user) order_user
|
|
|
- from dw_channel_daily where 1=1 {op1} {op2} {op3} {op4} {op6} {op7} GROUP BY channel,type,pitcher,stage) a where 1=1 {op5} ORDER BY {order_by} {order}
|
|
|
+ from dw_channel_daily where 1=1 {op1} {op2} {op3} {op6} {op7} GROUP BY channel,type,pitcher,stage) a having 1=1 {op4} {op5} ORDER BY {order_by} {order}
|
|
|
"""
|
|
|
-
|
|
|
+ print(sql)
|
|
|
sumsql=f"""select '总计' channel,
|
|
|
sum(total_cost) total_cost,
|
|
|
sum(total_amount) total_amount,sum(profit) profit,
|