Commit 782cc6b4 authored by 王志伟's avatar 王志伟

计算用户ARPU

parent 0692fc23
...@@ -283,8 +283,8 @@ object ARPU_COM { ...@@ -283,8 +283,8 @@ object ARPU_COM {
|and final_id.device_id is null |and final_id.device_id is null
|and md.partition_date = '20181218' |and md.partition_date = '20181218'
|and md.pay_time is not null |and md.pay_time is not null
|and md.pay_time >= '2018-03-01' |and md.pay_time >= '2018-04-01'
|and md.pay_time <= '2018-03-31' |and md.pay_time <= '2018-04-30'
""".stripMargin """.stripMargin
) )
diary_clk_all.show(80) diary_clk_all.show(80)
...@@ -294,7 +294,7 @@ object ARPU_COM { ...@@ -294,7 +294,7 @@ object ARPU_COM {
s""" s"""
|select count(distinct(device_id)) as active_num |select count(distinct(device_id)) as active_num
|from online.ml_device_month_active_status |from online.ml_device_month_active_status
|where partition_date = '20180331' |where partition_date = '20180430'
|and first_channel_source_type not in ('yqxiu1','yqxiu2','yqxiu3','yqxiu4','yqxiu5','mxyc1','mxyc2','mxyc3','wanpu','jinshan','jx','maimai','zhuoyi','huatian','suopingjingling','mocha','mizhe','meika','lamabang','js-az1','js-az2','js-az3','js-az4','js-az5','jfq-az1','jfq-az2','jfq-az3','jfq-az4','jfq-az5','toufang1' ,'toufang2','toufang3','toufang4','toufang5','toufang6','TF-toufang1','TF-toufang2','TF-toufang3','TF-toufang4','TF-toufang5','tf-toufang1','tf-toufang2','tf-toufang3','tf-toufang4','tf-toufang5','benzhan','promotion_aso100' ,'promotion_qianka','promotion_xiaoyu','promotion_dianru','promotion_malioaso','promotion_malioaso-shequ' ,'promotion_shike','promotion_julang_jl03') |and first_channel_source_type not in ('yqxiu1','yqxiu2','yqxiu3','yqxiu4','yqxiu5','mxyc1','mxyc2','mxyc3','wanpu','jinshan','jx','maimai','zhuoyi','huatian','suopingjingling','mocha','mizhe','meika','lamabang','js-az1','js-az2','js-az3','js-az4','js-az5','jfq-az1','jfq-az2','jfq-az3','jfq-az4','jfq-az5','toufang1' ,'toufang2','toufang3','toufang4','toufang5','toufang6','TF-toufang1','TF-toufang2','TF-toufang3','TF-toufang4','TF-toufang5','tf-toufang1','tf-toufang2','tf-toufang3','tf-toufang4','tf-toufang5','benzhan','promotion_aso100' ,'promotion_qianka','promotion_xiaoyu','promotion_dianru','promotion_malioaso','promotion_malioaso-shequ' ,'promotion_shike','promotion_julang_jl03')
""".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