Commit 469f7742 authored by 赵建伟's avatar 赵建伟

Merge branch 'yindanlei' into 'master'

add fangan_day report codes

See merge request !31
parents 833d416c 5976d8a2
......@@ -46,9 +46,10 @@ FROM
or (partition_date >= '20200728' AND substr(convup(sha1(device_id),16,10),-1) in ('0','1','2','3','4')) THEN '测试组A(方案库)'
else '测试组B(无方案库)' END as grey_type
,CASE WHEN (partition_date>='20190601' and tmp.col2 = 'AI')
or (partition_date < '20200301' AND partition_date>='20190601' and first_channel_source_type like 'promotion_toutiao_jy%')
or (partition_date>='20200601' and ((first_channel_source_type like 'promotion_toutiao_jy%') or (first_channel_source_type like 'dyand%') or (first_channel_source_type like 'douyin%')))
THEN 'AI' ELSE '医美' END as channel_type
or (partition_date < '20200301' AND partition_date>='20190601' and first_channel_source_type like 'promotion_toutiao_jy%')
or (partition_date>='20200601' and ((first_channel_source_type like 'promotion_toutiao%') or (first_channel_source_type like 'dyand%') or (first_channel_source_type like 'douyin%') or (first_channel_source_type like 'aiqiyiand%')
or (first_channel_source_type like 'bilibili%') or (first_channel_source_type like 'kuaishou%')))
THEN 'AI' ELSE '医美' END as channel_type
FROM online.ml_device_day_active_status
LEFT JOIN
(SELECT col1,col2 --col1:子渠道,col2:是否属于AI,col3:标识
......
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