Commit 3aaea4c6 authored by 王志伟's avatar 王志伟

计算用户ARPU

parent 748a69d4
...@@ -279,11 +279,11 @@ object ARPU_COM { ...@@ -279,11 +279,11 @@ object ARPU_COM {
|select count(md.total_fee) as pay_all,count(distinct(md.device_id)) as pay_people,count(md.total_fee)/count(distinct(md.device_id)) |select count(md.total_fee) as pay_all,count(distinct(md.device_id)) as pay_people,count(md.total_fee)/count(distinct(md.device_id))
|from online.ml_meigou_order_detail md left join final_id |from online.ml_meigou_order_detail md left join final_id
|on md.device_id = final_id.device_id |on md.device_id = final_id.device_id
|where ov.status=2 |where md.status='2'
|and final_id.device_id is null |and final_id.device_id is null
|and partition_date = '20181218' |and md.partition_date = '20181218'
|and pay_time is not null |and md.pay_time is not null
|and pay_time >= '2018-01-01' |and md.pay_time >= '2018-01-01'
""".stripMargin """.stripMargin
) )
diary_clk_all.show(80) diary_clk_all.show(80)
......
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