Commit 95479fce authored by 魏艺敏's avatar 魏艺敏

push codes

parent 2b68baec
...@@ -36,14 +36,6 @@ JOIN ...@@ -36,14 +36,6 @@ JOIN
)t2 )t2
on t1.answer_id=t2.id on t1.answer_id=t2.id
join join
(
SELECT id,title
FROM tl.tl_zx_api_ai_qa_question
where partition_day= regexp_replace(DATE_SUB(current_date,1) ,'-','')
and is_online='true'
)t3
on t1.question_id=t3.id
join
( (
SELECT distinct device_id SELECT distinct device_id
FROM online.ml_device_day_active_status FROM online.ml_device_day_active_status
...@@ -119,4 +111,4 @@ left join ...@@ -119,4 +111,4 @@ left join
on t1.cl_id=dev.device_id on t1.cl_id=dev.device_id
WHERE spam_pv.device_id IS NULL WHERE spam_pv.device_id IS NULL
and dev.device_id is NULL and dev.device_id is NULL
group by t2.title group by t2.title;
\ No newline at end of file \ No newline at end of file
...@@ -109,7 +109,7 @@ left join ...@@ -109,7 +109,7 @@ left join
( (
select user_id,case when length(phone)=11 then '1' else 0 end as type select user_id,case when length(phone)=11 then '1' else 0 end as type
from online.tl_hdfs_userextra_view from online.tl_hdfs_userextra_view
where partition_date='${partition_date}' where partition_date=regexp_replace(DATE_SUB(current_date,1) ,'-','')
)b )b
on a.user_id=b.user_id on a.user_id=b.user_id
group by partition_date,cl_id group by partition_date,cl_id
...@@ -413,7 +413,7 @@ left join ...@@ -413,7 +413,7 @@ left join
,count(case when params['button_name']='apple' then 1 end) as apple_pv ,count(case when params['button_name']='apple' then 1 end) as apple_pv
,count(case when params['button_name']='change_account' then 1 end) as change_account_pv ,count(case when params['button_name']='change_account' then 1 end) as change_account_pv
FROM online.bl_hdfs_maidian_updates FROM online.bl_hdfs_maidian_updates
where partition_date>='20200801' AND partition_date<'${end_date}' where partition_date>='20200801' AND partition_date<= regexp_replace(DATE_SUB(current_date,1) ,'-','')
and page_name='one_click_login' and page_name='one_click_login'
and action='on_click_button' and action='on_click_button'
and int(split(app_version,'\\.')[1]) >= 31 and int(split(app_version,'\\.')[1]) >= 31
...@@ -516,6 +516,6 @@ on mas.partition_date=dev.partition_date and mas.device_id=dev.device_id ...@@ -516,6 +516,6 @@ on mas.partition_date=dev.partition_date and mas.device_id=dev.device_id
WHERE spam_pv.device_id IS NULL WHERE spam_pv.device_id IS NULL
and dev.device_id is NULL and dev.device_id is NULL
group by mas.partition_date,mas.device_os_type,mas.active_type,case when binding.type>=1 then '是' else '否' end group by mas.partition_date,mas.device_os_type,mas.active_type,case when binding.type>=1 then '是' else '否' end
order by `日期`,`设备类型`,`活跃类型`,`是否授权电话` order by `日期`,`设备类型`,`活跃类型`,`是否授权电话`;
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