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
469f7742
Commit
469f7742
authored
Aug 05, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'yindanlei' into 'master'
add fangan_day report codes See merge request
!31
parents
833d416c
5976d8a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fangan_day.sql
pm/fangan_day/etl/fangan_day.sql
+2
-1
No files found.
pm/fangan_day/etl/fangan_day.sql
View file @
469f7742
...
@@ -47,7 +47,8 @@ FROM
...
@@ -47,7 +47,8 @@ FROM
else
'测试组B(无方案库)'
END
as
grey_type
else
'测试组B(无方案库)'
END
as
grey_type
,
CASE
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
,
CASE
WHEN
(
partition_date
>=
'20190601'
and
tmp
.
col2
=
'AI'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
<
'20200301'
AND
partition_date
>=
'20190601'
and
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
partition_date
>=
'20200601'
and
((
first_channel_source_type
like
'promotion_toutiao_jy%'
)
or
(
first_channel_source_type
like
'dyand%'
)
or
(
first_channel_source_type
like
'douyin%'
)))
or
(
partition_date
>=
'20200601'
and
((
first_channel_source_type
like
'promotion_toutiao%'
)
or
(
first_channel_source_type
like
'dyand%'
)
or
(
first_channel_source_type
like
'douyin%'
)
or
(
first_channel_source_type
like
'aiqiyiand%'
)
or
(
first_channel_source_type
like
'bilibili%'
)
or
(
first_channel_source_type
like
'kuaishou%'
)))
THEN
'AI'
ELSE
'医美'
END
as
channel_type
THEN
'AI'
ELSE
'医美'
END
as
channel_type
FROM
online
.
ml_device_day_active_status
FROM
online
.
ml_device_day_active_status
LEFT
JOIN
LEFT
JOIN
...
...
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