Commit ae599471 authored by 王志伟's avatar 王志伟

更改时间

parent 2ad622f6
......@@ -655,10 +655,10 @@ object tag_value {
//level_id到权重映射
val level1_id=sc.sql(
s"""
|select distinct(tag_id) as level_id,'${t1}' as value
|select distinct(id) as level_id,'${t1}' as value
|from online.bl_tag_hierarchy_detail
|where partition_date = '${partition_date}'
|and tag_id !=0
|and id !=0
|and tag_type=1
""".stripMargin
)
......@@ -666,10 +666,10 @@ object tag_value {
val level2_id=sc.sql(
s"""
|select distinct(tag_id) as level_id,'${t2}' as value
|select distinct(id) as level_id,'${t2}' as value
|from online.bl_tag_hierarchy_detail
|where partition_date = '${partition_date}'
|and tag_id !=0
|and id !=0
|and tag_type=2
""".stripMargin
)
......@@ -677,10 +677,10 @@ object tag_value {
val level3_id=sc.sql(
s"""
|select distinct(tag_id) as level_id,'${t3}' as value
|select distinct(id) as level_id,'${t3}' as value
|from online.bl_tag_hierarchy_detail
|where partition_date = '${partition_date}'
|and tag_id !=0
|and id !=0
|and tag_type=3
""".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