|
@@ -146,11 +146,11 @@
|
|
<!-- 查看 快手 有效 计划 组-->
|
|
<!-- 查看 快手 有效 计划 组-->
|
|
<select id="getKuaiShouAccountBaseByUserId" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="getKuaiShouAccountBaseByUserId" resultType="com.alibaba.fastjson.JSONObject">
|
|
SELECT abi.account_id ,
|
|
SELECT abi.account_id ,
|
|
- SUM(abi.new_effect_num) as newEffectNum,
|
|
|
|
- SUM(abi.new_campaign_num) as newCampaignNum,
|
|
|
|
- SUM(abi.new_unit_num) as newUnitNum,
|
|
|
|
- SUM( abi.new_video_num ) AS newVideoNum,
|
|
|
|
- SUM( abi.new_hot_num ) AS newHotNum
|
|
|
|
|
|
+ IFNULL(SUM(abi.new_effect_num),0) as newEffectNum,
|
|
|
|
+ IFNULL(SUM(abi.new_campaign_num),0) as newCampaignNum,
|
|
|
|
+ IFNULL(SUM(abi.new_unit_num),0) as newUnitNum,
|
|
|
|
+ IFNULL(SUM( abi.new_video_num ),0) AS newVideoNum,
|
|
|
|
+ IFNULL(SUM( abi.new_hot_num ),0) AS newHotNum
|
|
from application.app_kuaishou_account_base_info_d abi,
|
|
from application.app_kuaishou_account_base_info_d abi,
|
|
`jeecg-boot`.ctop_user_allocation u
|
|
`jeecg-boot`.ctop_user_allocation u
|
|
WHERE abi.account_id = u.account_id
|
|
WHERE abi.account_id = u.account_id
|
|
@@ -216,7 +216,7 @@
|
|
COUNT( DISTINCT d.user_id ) AS userNum,
|
|
COUNT( DISTINCT d.user_id ) AS userNum,
|
|
IFNULL(SUM( d.activation ),0) AS activation,
|
|
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.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)AS 'leave',
|
|
IFNULL(SUM( d.event_pay ),0) AS eventPay,
|
|
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.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) AS eventPayRate,
|
|
@@ -1159,6 +1159,13 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
+ <select id="getColumnInfo" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
+
|
|
|
|
+ select json from ctop_column_load where user_id = #{userId} and column_type = #{columnType}
|
|
|
|
+
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|