Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
bi-report
Commits
1ccb0d6b
Commit
1ccb0d6b
authored
Jul 10, 2020
by
王妍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
0eb4b1ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
zhuanzhen_base_data.sql
pm/zhuanzhen_base_data/report/zhuanzhen_base_data.sql
+3
-6
No files found.
pm/zhuanzhen_base_data/report/zhuanzhen_base_data.sql
View file @
1ccb0d6b
...
@@ -81,12 +81,9 @@ from
...
@@ -81,12 +81,9 @@ from
when
singlerecord
.
status
=
6
then
'已接单'
when
singlerecord
.
status
=
6
then
'已接单'
when
singlerecord
.
status
=
7
then
'已重单'
when
singlerecord
.
status
=
7
then
'已重单'
end
as
status_s
---派单状态
end
as
status_s
---派单状态
,
meigou
.
service_city_name
as
paidan_city
---城市
,
meigou
.
service_city_name
as
paidan_city
---城市
,
meigou
.
hospital_name
as
hospital_name
,
meigou
.
hospital_name
as
hospital_name
,
bd
.
paidan_tag_name
as
paidan_tag_name
---派单项目名称
,
bd
.
paidan_tag_name
as
paidan_tag_name
---派单项目名称
--- ,COUNT(DISTINCT t1.id) as clue_num
--- ,COUNT(DISTINCT t1.id) as clue_num
FROM
FROM
(
(
...
@@ -217,7 +214,7 @@ LEFT JOIN
...
@@ -217,7 +214,7 @@ LEFT JOIN
FROM
FROM
(
(
SELECT
id
,
json_split
(
t
.
dev_projects
)
dev_projects
SELECT
id
,
json_split
(
t
.
dev_projects
)
dev_projects
from
tl_hdfs_budan_view
t
from
online
.
tl_hdfs_budan_view
t
WHERE
partition_date
=
REGEXP_REPLACE
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
WHERE
partition_date
=
REGEXP_REPLACE
(
date_sub
(
current_date
(),
1
),
'-'
,
''
)
)
t1
)
t1
lateral
view
explode
(
t1
.
dev_projects
)
t2
as
dev_project
lateral
view
explode
(
t1
.
dev_projects
)
t2
as
dev_project
...
@@ -263,4 +260,4 @@ coalesce(t1.pooled_date,0)
...
@@ -263,4 +260,4 @@ coalesce(t1.pooled_date,0)
,
coalesce
(
t2
.
extra_consume
,
0
)
,
coalesce
(
t2
.
extra_consume
,
0
)
,
coalesce
(
t2
.
payment
,
0
)
,
coalesce
(
t2
.
payment
,
0
)
,
coalesce
(
t1
.
budan_id
,
0
)
,
coalesce
(
t1
.
budan_id
,
0
)
ORDER
BY
1
ORDER
BY
`入池时间`
\ No newline at end of file
\ No newline at end of file
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