Commit 5cd586fc authored by 魏艺敏's avatar 魏艺敏

push codes

parent 90695d7b
...@@ -71,9 +71,8 @@ FROM ...@@ -71,9 +71,8 @@ FROM
when transaction_type in ('hotspot_feed') then array('hotspot_feed','合计') when transaction_type in ('hotspot_feed') then array('hotspot_feed','合计')
when transaction_type in ('aistragegy') then array('新用户AI帖优先') when transaction_type in ('aistragegy') then array('新用户AI帖优先')
when transaction_type in ('excestragegy') then array('新用户精华帖优先') when transaction_type in ('excestragegy') then array('新用户精华帖优先')
when transaction_type in ('fixedstragegy') then array('新氧新用户策略一') when transaction_type in ('deeplink_strategy') then array('deeplink策略')
when transaction_type in ('fixedstragegy_video') then array('新氧新用户策略二') end end AS recommend_type,
AS recommend_type,
card_id, card_id,
app_session_id app_session_id
from online.ml_community_precise_exposure_detail from online.ml_community_precise_exposure_detail
...@@ -82,7 +81,7 @@ FROM ...@@ -82,7 +81,7 @@ FROM
AND is_exposure = '1' ----精准曝光 AND is_exposure = '1' ----精准曝光
AND page_name ='home' AND page_name ='home'
AND tab_name = '精选' AND tab_name = '精选'
AND (transaction_type in ('-1','smr','hotspot','pgc','newdata','hotspot_feed','aistragegy','excestragegy','fixedstragegy','fixedstragegy_video') AND (transaction_type in ('-1','smr','hotspot','pgc','newdata','hotspot_feed','aistragegy','excestragegy','deeplink_strategy')
or transaction_type like '%ctr' or transaction_type like '%cvr') or transaction_type like '%ctr' or transaction_type like '%cvr')
AND card_content_type in ('qa','diary','user_post','answer','special_pool') AND card_content_type in ('qa','diary','user_post','answer','special_pool')
group by partition_date, group by partition_date,
...@@ -98,8 +97,7 @@ FROM ...@@ -98,8 +97,7 @@ FROM
when transaction_type in ('hotspot_feed') then array('hotspot_feed','合计') when transaction_type in ('hotspot_feed') then array('hotspot_feed','合计')
when transaction_type in ('aistragegy') then array('新用户AI帖优先') when transaction_type in ('aistragegy') then array('新用户AI帖优先')
when transaction_type in ('excestragegy') then array('新用户精华帖优先') when transaction_type in ('excestragegy') then array('新用户精华帖优先')
when transaction_type in ('fixedstragegy') then array('新氧新用户策略一') when transaction_type in ('deeplink_strategy') then array('deeplink策略') end,
when transaction_type in ('fixedstragegy_video') then array('新氧新用户策略二') end,
card_id, card_id,
app_session_id app_session_id
)a )a
...@@ -130,8 +128,7 @@ FROM ...@@ -130,8 +128,7 @@ FROM
when params['transaction_type'] in ('hotspot_feed') then array('hotspot_feed','合计') when params['transaction_type'] in ('hotspot_feed') then array('hotspot_feed','合计')
when params['transaction_type'] in ('aistragegy') then array('新用户AI帖优先') when params['transaction_type'] in ('aistragegy') then array('新用户AI帖优先')
when params['transaction_type'] in ('excestragegy') then array('新用户精华帖优先') when params['transaction_type'] in ('excestragegy') then array('新用户精华帖优先')
when params['transaction_type'] in ('fixedstragegy') then array('新氧新用户策略一') when params['transaction_type'] in ('deeplink_strategy') then array('deeplink策略')
when params['transaction_type'] in ('fixedstragegy_video') then array('新氧新用户策略二')
end AS recommend_type, end AS recommend_type,
params['card_id'] as card_id, params['card_id'] as card_id,
app_session_id app_session_id
...@@ -140,7 +137,7 @@ FROM ...@@ -140,7 +137,7 @@ FROM
AND action='on_click_card' AND action='on_click_card'
AND params['page_name'] ='home' AND params['page_name'] ='home'
AND params['tab_name'] = '精选' AND params['tab_name'] = '精选'
AND (params['transaction_type'] in ('-1','smr','hotspot','pgc','newdata','hotspot_feed','aistragegy','excestragegy','fixedstragegy','fixedstragegy_video') AND (params['transaction_type'] in ('-1','smr','hotspot','pgc','newdata','hotspot_feed','aistragegy','excestragegy','deeplink_strategy')
or params['transaction_type'] like '%ctr' or params['transaction_type'] like '%cvr') or params['transaction_type'] like '%ctr' or params['transaction_type'] like '%cvr')
AND params['card_content_type'] in ('qa','diary','user_post','answer','special_pool') AND params['card_content_type'] in ('qa','diary','user_post','answer','special_pool')
GROUP BY partition_date, GROUP BY partition_date,
...@@ -156,8 +153,7 @@ FROM ...@@ -156,8 +153,7 @@ FROM
when params['transaction_type'] in ('hotspot_feed') then array('hotspot_feed','合计') when params['transaction_type'] in ('hotspot_feed') then array('hotspot_feed','合计')
when params['transaction_type'] in ('aistragegy') then array('新用户AI帖优先') when params['transaction_type'] in ('aistragegy') then array('新用户AI帖优先')
when params['transaction_type'] in ('excestragegy') then array('新用户精华帖优先') when params['transaction_type'] in ('excestragegy') then array('新用户精华帖优先')
when params['transaction_type'] in ('fixedstragegy') then array('新氧新用户策略一') when params['transaction_type'] in ('deeplink_strategy') then array('deeplink策略') end,
when params['transaction_type'] in ('fixedstragegy_video') then array('新氧新用户策略二') end,
params['card_id'], params['card_id'],
app_session_id app_session_id
)a )a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment