|
@@ -205,7 +205,7 @@
|
|
|
ORDER BY SUM( d.charge ) DESC
|
|
|
</select>
|
|
|
|
|
|
- <!-- 快手 -查询项目数据信息 test-->
|
|
|
+ <!-- 快手 -查询项目数据信息 master-->
|
|
|
<select id="getKuaiShouOperateProjectInfo" resultType="org.jeecg.ctop.material.entity.vo.KuaiShouOperateProjectVo">
|
|
|
SELECT
|
|
|
SUM( d.charge ) AS totalCost,
|
|
@@ -216,20 +216,20 @@
|
|
|
COUNT( DISTINCT d.user_id ) AS userNum,
|
|
|
IFNULL(SUM( d.activation ),0) AS activation,
|
|
|
IF(SUM( d.charge ) / SUM( d.activation ) > 0.0001,ROUND( SUM( d.charge ) / SUM( d.activation ), 2 ),0) AS activationPrice,
|
|
|
- IF(SUM( d.event_next_day_stay ) / SUM( d.activation ) > 0.0001,CONCAT(ROUND(SUM( d.event_next_day_stay ) / SUM( d.activation ) * 100, 2 ),'%'),0)AS leave,
|
|
|
+ IF(SUM( d.event_next_day_stay ) / SUM( d.activation ) > 0.0001,CONCAT(ROUND(SUM( d.event_next_day_stay ) / SUM( d.activation ) * 100, 2 ),'%'),0.00)AS leave,
|
|
|
IFNULL(SUM( d.event_pay ),0) AS eventPay,
|
|
|
IF(SUM( d.charge ) / SUM( d.event_pay ) > 0.0001,ROUND( SUM( d.charge ) / SUM( d.event_pay ), 2 ),0) AS eventPayCost,
|
|
|
- IF(SUM( d.event_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) > 0.0001,CONCAT(ROUND( SUM( d.event_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) * 100, 2 ),'%'),0) AS eventPayRate,
|
|
|
+ IF(SUM( d.event_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) > 0.0001,CONCAT(ROUND( SUM( d.event_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) * 100, 2 ),'%'),0.00) AS eventPayRate,
|
|
|
IFNULL(SUM( d.event_new_user_pay ),0) AS eventNewUserPay,
|
|
|
IF(SUM( d.charge ) / SUM( d.event_new_user_pay) > 0.0001,ROUND( SUM( d.charge ) / SUM( d.event_new_user_pay ), 2 ),0)AS eventNewUserPayCost,
|
|
|
- IF(SUM( d.event_new_user_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) > 0.0001 ,CONCAT(ROUND( SUM( d.event_new_user_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) * 100, 2 ),'%'),0 ) AS eventNewUserPayRate,
|
|
|
+ IF(SUM( d.event_new_user_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) > 0.0001 ,CONCAT(ROUND( SUM( d.event_new_user_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) * 100, 2 ),'%'),0.00 ) AS eventNewUserPayRate,
|
|
|
IFNULL(SUM( d.event_app_invoked ),0) AS eventAppInvoked,
|
|
|
IFNULL(ROUND( SUM( d.charge ) / SUM( d.event_app_invoked ), 2 ),0) AS eventAppInvokedCost,
|
|
|
IFNULL(SUM( d.event_register ),0) AS eventRegister,
|
|
|
IFNULL(ROUND( SUM( d.charge ) / SUM( d.event_register ), 2 ),0) AS eventRegisterCost,
|
|
|
IFNULL(SUM( d.key_action ),0) AS keyAction,
|
|
|
IFNULL(ROUND( SUM( d.charge ) / SUM( d.key_action ), 2 ),0) AS keyActionCost,
|
|
|
- IF(SUM( d.key_action )/ SUM( d.activation ) > 0.0001,CONCAT( ROUND(SUM( d.key_action )/ SUM( d.activation ) * 100 , 2 ), '%' ),0) AS keyActionRate,
|
|
|
+ IF(SUM( d.key_action )/ SUM( d.activation ) > 0.0001,CONCAT( ROUND(SUM( d.key_action )/ SUM( d.activation ) * 100 , 2 ), '%' ),0.00) AS keyActionRate,
|
|
|
IFNULL(SUM( d.event_pay_purchase_amount_first_day ),0) AS eventPayPurchaseAmountFirstDay,
|
|
|
IFNULL(SUM( d.event_pay_first_day_roi ),0) AS eventPayFirstDayRoi,
|
|
|
IFNULL(SUM( d.form_count ),0) AS formCount,
|
|
@@ -277,10 +277,10 @@
|
|
|
(SELECT u.balance FROM media_api.kuaishou_advertiser_fund_get u where u.advertiser_id = d.account_id ORDER BY stat_date DESC limit 1 ) as balance,
|
|
|
IFNULL(SUM( d.activation ),0) AS activation,
|
|
|
IFNULL(ROUND( SUM( d.charge ) / SUM( d.activation ), 2 ),0) AS activationPrice,
|
|
|
- IF(SUM( d.event_next_day_stay ) / SUM( d.activation ) > 0.0001,CONCAT(ROUND(SUM( d.event_next_day_stay ) / SUM( d.activation ) * 100, 2 ),'%'),0) AS leave,
|
|
|
+ IF(SUM( d.event_next_day_stay ) / SUM( d.activation ) > 0.0001,CONCAT(ROUND(SUM( d.event_next_day_stay ) / SUM( d.activation ) * 100, 2 ),'%'),0.00) AS leave,
|
|
|
IFNULL(SUM( d.event_pay ),0) AS eventPay,
|
|
|
IFNULL(ROUND( SUM( d.charge ) / SUM( d.event_pay ), 2 ),0) AS eventPayCost,
|
|
|
- IF(SUM( d.event_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) > 0.0001,CONCAT(ROUND( SUM( d.event_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) * 100, 2 ),'%'),0) AS eventPayRate,
|
|
|
+ IF(SUM( d.event_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) > 0.0001,CONCAT(ROUND( SUM( d.event_pay ) / ( SUM( d.activation ) + SUM( d.form_count )) * 100, 2 ),'%'),0.00) AS eventPayRate,
|
|
|
IFNULL(SUM( d.event_new_user_pay ),0) AS eventNewUserPay,
|
|
|
IFNULL(ROUND( SUM( d.charge ) / SUM( d.event_new_user_pay ), 2 ),0) AS eventNewUserPayCost,
|
|
|
IFNULL(ROUND( SUM( d.event_new_user_pay ) / ( SUM( d.activation ) + SUM( d.form_count )), 2 ),0) AS eventNewUserPayRate,
|
|
@@ -290,7 +290,7 @@
|
|
|
IFNULL(ROUND( SUM( d.charge ) / SUM( d.event_register ), 2 ),0) AS eventRegisterCost,
|
|
|
IFNULL(SUM( d.key_action ),0) AS keyAction,
|
|
|
IFNULL(ROUND( SUM( d.charge ) / SUM( d.key_action ), 2 ),0) AS keyActionCost,
|
|
|
- IF(SUM( d.key_action )/ SUM( d.activation ) > 0.0001,CONCAT( ROUND(SUM( d.key_action )/ SUM( d.activation ) * 100 , 2 ), '%' ),0) AS keyActionRate,
|
|
|
+ IF(SUM( d.key_action )/ SUM( d.activation ) > 0.0001,CONCAT( ROUND(SUM( d.key_action )/ SUM( d.activation ) * 100 , 2 ), '%' ),0.00) AS keyActionRate,
|
|
|
IFNULL(SUM( d.event_pay_purchase_amount_first_day ),0) AS eventPayPurchaseAmountFirstDay,
|
|
|
IFNULL(SUM( d.event_pay_first_day_roi ),0) AS eventPayFirstDayRoi,
|
|
|
IFNULL(SUM( d.form_count ),0) AS formCount,
|