Commit 7a388ba5 authored by 王志伟's avatar 王志伟

区别新老客户

parent 0124d891
...@@ -54,6 +54,13 @@ object testt { ...@@ -54,6 +54,13 @@ object testt {
val stat_date=param.date val stat_date=param.date
val partition_date = stat_date.replace("-","") val partition_date = stat_date.replace("-","")
//机构id //机构id
val black = sc.sql(
s"""
|select device_id from blacklist
""".stripMargin
)
black.show()
val agency_id = sc.sql( val agency_id = sc.sql(
s""" s"""
|SELECT DISTINCT(cl_id) as device_id |SELECT DISTINCT(cl_id) as device_id
......
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