Commit 3777922e authored by 王志伟's avatar 王志伟

修改统计参数

parent bce3237b
...@@ -319,8 +319,6 @@ object coincidence_xinyang { ...@@ -319,8 +319,6 @@ object coincidence_xinyang {
) )
all_id.createOrReplaceTempView("all_id") all_id.createOrReplaceTempView("all_id")
//* 所有获得用户列表的用户id //* 所有获得用户列表的用户id
//1.重合用户的美购数 //1.重合用户的美购数
val meigou_coincidence_num = sc.sql( val meigou_coincidence_num = sc.sql(
...@@ -379,7 +377,7 @@ object coincidence_xinyang { ...@@ -379,7 +377,7 @@ object coincidence_xinyang {
meigou_pay_device_all.show() meigou_pay_device_all.show()
//截止目前获得的与新氧重合的用户数咨询统计 //截止目前获得的与新氧重合的用户数咨询统计
val zixun_num_all = sc.sql( /* val zixun_num_all = sc.sql(
s""" s"""
|select count(ov.cl_id) as zixun_num_all |select count(ov.cl_id) as zixun_num_all
|from online.tl_hdfs_maidian_view ov left join coincidence_id |from online.tl_hdfs_maidian_view ov left join coincidence_id
...@@ -402,12 +400,12 @@ object coincidence_xinyang { ...@@ -402,12 +400,12 @@ object coincidence_xinyang {
""".stripMargin """.stripMargin
) )
zixun_device_all.show() zixun_device_all.show()
*/
val zixun_num_co = sc.sql( val zixun_num_co = sc.sql(
s""" s"""
|select count(ov.cl_id) as zixun_num_all |select count(ov.cl_id) as zixun_num_all
|from online.tl_hdfs_maidian_view ov left join all_id |from online.tl_hdfs_maidian_view ov left join all_id
|on ov.cl_id = coincidence_id.device_id |on ov.cl_id = all_id.device_id
|where partition_date >= '20180501' |where partition_date >= '20180501'
|and coincidence_id.device_id is not null |and coincidence_id.device_id is not null
|and action = 'welfare_detail_click_message' |and action = 'welfare_detail_click_message'
...@@ -419,7 +417,7 @@ object coincidence_xinyang { ...@@ -419,7 +417,7 @@ object coincidence_xinyang {
s""" s"""
|select count(distinct(ov.cl_id)) as zixun_num_all |select count(distinct(ov.cl_id)) as zixun_num_all
|from online.tl_hdfs_maidian_view ov left join all_id |from online.tl_hdfs_maidian_view ov left join all_id
|on ov.cl_id = coincidence_id.device_id |on ov.cl_id = all_id.device_id
|where partition_date >= '20180501' |where partition_date >= '20180501'
|and coincidence_id.device_id is not null |and coincidence_id.device_id is not null
|and action = 'welfare_detail_click_message' |and action = 'welfare_detail_click_message'
......
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