|
@@ -452,7 +452,7 @@ select toDate(formatDateTime(reg_time,'%Y-%m-%d')) dt,
|
|
|
def get_channel_order_trend(channel,pitcher,start,end,page,page_size,order_by,order):
|
|
|
if get_channel_belong_pitcher(channel)!=pitcher:
|
|
|
return [],0
|
|
|
- sql=f"""select '{channel}' channel,toString(dt) date,book,cost,reg_order_amount,roi,new_follow_user,new_follow_per_cost,order_user,order_count,
|
|
|
+ sql=f"""select '{channel}' channel,toString(dt) date,book,round(cost,2),reg_order_amount,roi,new_follow_user,new_follow_per_cost,order_user,order_count,
|
|
|
order_user_per_cost,
|
|
|
concat(toString(r1),',',toString(r1/cost),',', toString(a1/cost),',',toString(b1)),
|
|
|
concat(toString(a2),',',toString(r2/cost),',', toString(a2/cost),',',toString(b2)),
|
|
@@ -759,8 +759,11 @@ def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state):
|
|
|
if __name__ == '__main__':
|
|
|
# a=get_channel_overview('','','',1,10,'date','desc')
|
|
|
# a=get_channel_summary('','')
|
|
|
- a=get_channel_again_order_trend('龙鳞文学','2021-01-01','宋刚')
|
|
|
+ # a=get_channel_again_order_trend('龙鳞文学','2021-01-01','宋刚')
|
|
|
# a=get_channel_active('玉龙书社','2020-09-15','2020-09-20',1,10,'date','desc')
|
|
|
# a,b =get_channel_order_trend("玉龙书社",'王俊杰','2020-12-01','2020-12-12',1,5,'date','desc')
|
|
|
- print(a)
|
|
|
+ # print(a)
|
|
|
+ a={'a':1}
|
|
|
+ print(list(a.keys()))
|
|
|
+
|
|
|
pass
|