Commit b833140f authored by 王志伟's avatar 王志伟

去除机构和黑名单

parent 06deb7d1
...@@ -323,7 +323,7 @@ object coincidence_xinyang { ...@@ -323,7 +323,7 @@ object coincidence_xinyang {
s""" s"""
|select count(cl_id) as zixun_num_all |select count(cl_id) as zixun_num_all
|from online.tl_hdfs_maidian_view |from online.tl_hdfs_maidian_view
|where partition_date > '20180101' |where partition_date > '20180501'
|and action = 'welfare_detail_click_message' |and action = 'welfare_detail_click_message'
|and cl_id not in (select device_id from bl_device_list) |and cl_id not in (select device_id from bl_device_list)
|and cl_id not in (select device_id from blacklist) |and cl_id not in (select device_id from blacklist)
...@@ -335,7 +335,7 @@ object coincidence_xinyang { ...@@ -335,7 +335,7 @@ object coincidence_xinyang {
s""" s"""
|select count(distinct(cl_id)) zixun_device_all |select count(distinct(cl_id)) zixun_device_all
|from online.tl_hdfs_maidian_view |from online.tl_hdfs_maidian_view
|where partition_date > '20180101' |where partition_date > '20180501'
|and action = 'welfare_detail_click_message' |and action = 'welfare_detail_click_message'
|and cl_id not in (select device_id from bl_device_list) |and cl_id not in (select device_id from bl_device_list)
|and cl_id not in (select device_id from blacklist) |and cl_id not in (select device_id from blacklist)
...@@ -347,7 +347,7 @@ object coincidence_xinyang { ...@@ -347,7 +347,7 @@ object coincidence_xinyang {
s""" s"""
|select count(cl_id) as zixun_num_co |select count(cl_id) as zixun_num_co
|from online.tl_hdfs_maidian_view |from online.tl_hdfs_maidian_view
|where partition_date > '20180101' |where partition_date > '20180501'
|and action = 'welfare_detail_click_message' |and action = 'welfare_detail_click_message'
|and cl_id in (select distinct(device_id) from device_id_coincidence) |and cl_id in (select distinct(device_id) from device_id_coincidence)
""".stripMargin """.stripMargin
...@@ -358,7 +358,7 @@ object coincidence_xinyang { ...@@ -358,7 +358,7 @@ object coincidence_xinyang {
s""" s"""
|select count(distinct(cl_id)) as zixun_num_co_dis |select count(distinct(cl_id)) as zixun_num_co_dis
|from online.tl_hdfs_maidian_view |from online.tl_hdfs_maidian_view
|where partition_date > '20180101' |where partition_date > '20180501'
|and action = 'welfare_detail_click_message' |and action = 'welfare_detail_click_message'
|and cl_id in (select distinct(device_id) from device_id_coincidence) |and cl_id in (select distinct(device_id) from device_id_coincidence)
""".stripMargin """.stripMargin
......
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