|
@@ -14,7 +14,9 @@
|
|
|
((sum(charge) / (sum(photo_show)) * 1000)) cpm,
|
|
|
sum(bclick) bClick,-- 行为数
|
|
|
sum(form_count) formCount, -- 表单提交数
|
|
|
- (sum(charge) / sum(form_count)) formPrice -- 表单提交单价
|
|
|
+ (sum(charge) / sum(form_count)) formPrice, -- 表单提交单价
|
|
|
+ sum(activation) activationCount, -- 激活数
|
|
|
+ (sum(charge) / sum(activation)) activationPrice -- 激活单价
|
|
|
from
|
|
|
ctop_kuaishou_report_hourly_account
|
|
|
where stat_date = #{date}
|
|
@@ -39,8 +41,8 @@
|
|
|
sum(bclick) bClick,-- 行为数
|
|
|
sum(form_count) formCount,
|
|
|
(sum(charge) / sum(form_count)) formPrice, -- 表单提交单价
|
|
|
- account_id accountId
|
|
|
-
|
|
|
+ account_id accountId,
|
|
|
+ (select auth_name from ctop_user_allocation where account_id = accountId limit 1) accountName
|
|
|
from
|
|
|
ctop_kuaishou_report_daily_account
|
|
|
where account_id in
|
|
@@ -64,10 +66,10 @@
|
|
|
sum(bclick) bClick,-- 行为数
|
|
|
sum(form_count) formCount,
|
|
|
(sum(charge) / sum(form_count)) formPrice, -- 表单提交单价
|
|
|
- account_id accountId
|
|
|
+ account_id accountId,
|
|
|
+ (select auth_name from ctop_user_allocation where account_id = accountId limit 1) accountName
|
|
|
from
|
|
|
ctop_kuaishou_report_daily_account
|
|
|
-
|
|
|
where stat_date <= #{startDate}
|
|
|
and stat_date >= #{endDate}
|
|
|
and account_id in
|
|
@@ -91,8 +93,10 @@
|
|
|
sum(bclick) bClick,-- 行为数
|
|
|
sum(form_count) formCount,
|
|
|
(sum(charge) / sum(form_count)) formPrice, -- 表单提交单价
|
|
|
- account_id accountId
|
|
|
-
|
|
|
+ sum(activation) activationCount, -- 激活数
|
|
|
+ (sum(charge) / sum(activation)) activationPrice, -- 激活单价
|
|
|
+ account_id accountId,
|
|
|
+ (select auth_name from ctop_user_allocation where account_id = accountId limit 1) accountName
|
|
|
from
|
|
|
ctop_kuaishou_report_hourly_account
|
|
|
where stat_date = #{date}
|
|
@@ -256,7 +260,8 @@
|
|
|
sum(bclick) bClick,-- 行为数
|
|
|
sum(form_count) formCount,
|
|
|
(sum(charge) / sum(form_count)) formPrice, -- 表单提交单价
|
|
|
- account_id accountId
|
|
|
+ account_id accountId,
|
|
|
+ (select auth_name from ctop_user_allocation where account_id = accountId limit 1) accountName
|
|
|
from
|
|
|
ctop_kuaishou_report_hourly_account
|
|
|
where account_id in
|