|
@@ -607,7 +607,7 @@ 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} {op6} {op7} GROUP BY channel,type,pitcher,stage) a having 1=1 {op4} {op5} ORDER BY {order_by} {order}
|
|
|
+ from dw_channel 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,
|