Commit 5a6afbe8 authored by 王志伟's avatar 王志伟

计算用户ARPU

parent bee6683c
...@@ -276,7 +276,7 @@ object ARPU_COM { ...@@ -276,7 +276,7 @@ object ARPU_COM {
val diary_clk_all = sc.sql( val diary_clk_all = sc.sql(
s""" s"""
|select sum(md.gengmei_price) as pay_all count(distinct(md.device_id)) as consum_num |select sum(md.gengmei_price) as pay_all,count(distinct(md.device_id)) as consum_num
|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 md.status= 2 |where md.status= 2
......
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