Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
7e85adec
Commit
7e85adec
authored
Apr 09, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预测集中增加hospital id
parent
bfbf5dee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
EsmmData.scala
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
+3
-2
No files found.
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
View file @
7e85adec
...
@@ -576,7 +576,7 @@ object EsmmPredData {
...
@@ -576,7 +576,7 @@ object EsmmPredData {
val
union_data_scity_id
=
sc
.
sql
(
val
union_data_scity_id
=
sc
.
sql
(
s
"""
s
"""
|select a.stat_date,a.device_id,a.ucity_id,a.cid_id,a.label,a.diary_service_id,a.y,a.z,a.clevel1_id,a.slevel1_id,a.ccity_name,
|select a.stat_date,a.device_id,a.ucity_id,a.cid_id,a.label,a.diary_service_id,a.y,a.z,a.clevel1_id,a.slevel1_id,a.ccity_name,
| d.city_id as scity_id,b.doctor_id
| d.city_id as scity_id,b.doctor_id
,c.hospital_id
|from union_data_ccity_name a
|from union_data_ccity_name a
|left join online.tl_meigou_service_view b on a.diary_service_id=b.id
|left join online.tl_meigou_service_view b on a.diary_service_id=b.id
|left join online.tl_hdfs_doctor_view c on b.doctor_id=c.id
|left join online.tl_hdfs_doctor_view c on b.doctor_id=c.id
...
@@ -593,7 +593,8 @@ object EsmmPredData {
...
@@ -593,7 +593,8 @@ object EsmmPredData {
val
union_data_scity_id2
=
sc
.
sql
(
val
union_data_scity_id2
=
sc
.
sql
(
s
"""
s
"""
|select device_id,cid_id,first(stat_date) stat_date,first(ucity_id) ucity_id,label,first(diary_service_id)diary_service_id,first(y) y,
|select device_id,cid_id,first(stat_date) stat_date,first(ucity_id) ucity_id,label,first(diary_service_id)diary_service_id,first(y) y,
|first(z) z,first(clevel1_id) clevel1_id,first(slevel1_id) slevel1_id,first(ccity_name) ccity_name,first(scity_id) scity_id
|first(z) z,first(clevel1_id) clevel1_id,first(slevel1_id) slevel1_id,first(ccity_name) ccity_name,
|first(scity_id) scity_id,first(hospital_id) hospital_id
|from union_data_scity_id
|from union_data_scity_id
|group by device_id,cid_id,label
|group by device_id,cid_id,label
"""
.
stripMargin
"""
.
stripMargin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment