|
@@ -172,13 +172,14 @@ def get_channel_again_order_trend(channel,date,pitcher):
|
|
|
|
|
|
from dw_daily_channel where channel='{channel}' and dt='{date}'
|
|
|
"""
|
|
|
- print(sql)
|
|
|
+ # print(sql)
|
|
|
data=ck.execute(sql)
|
|
|
- print(data)
|
|
|
+ # print(data)
|
|
|
key1=['date','channel','book','pitcher','stage','cost','reg_amount','roi','new_follow','new_follow_per_cost',
|
|
|
'reg_count','reg_user','cost_per_user','avg_order_amount','avg_again_order_rate','order_count']
|
|
|
json1=get_dict_list(key1,get_round(data))[0]
|
|
|
# print(json1)
|
|
|
+ # print(json1)
|
|
|
sql2=f"""select
|
|
|
1 as ddf,count(1) c1,sum(if(count>1,1,0)) c2,sum(if(count>2,1,0)) c3,
|
|
|
sum(if(count>3,1,0)) c4,sum(if(count>4,1,0)) c5,sum(if(count>5,1,0)) c6
|
|
@@ -312,7 +313,7 @@ select
|
|
|
print(li)
|
|
|
|
|
|
json1['data']=li
|
|
|
- print([json1])
|
|
|
+ # print([json1])
|
|
|
return [json1]
|
|
|
|
|
|
|