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
edfc0503
Commit
edfc0503
authored
Sep 20, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
deaaf433
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
daily_recommend_strategy.sql
pm/daily_recommend_strategy/etl/daily_recommend_strategy.sql
+4
-0
No files found.
pm/daily_recommend_strategy/etl/daily_recommend_strategy.sql
View file @
edfc0503
...
...
@@ -66,6 +66,7 @@ FROM
case
when
card_content_type
in
(
'qa'
,
'answer'
)
then
'qa'
when
card_content_type
in
(
'special_pool'
)
then
'special'
else
card_content_type
end
as
card_content_type
,
CASE
when
transaction_type
in
(
'fmctr'
)
then
array
(
'fmctr'
,
'合计'
)
when
transaction_type
in
(
'high_quality_fmctr'
)
then
array
(
'high_quality_fmctr'
,
'合计'
)
WHEN
transaction_type
like
'%ctr'
THEN
array
(
'ctr预估'
,
'合计'
)
WHEN
transaction_type
like
'%cvr'
THEN
array
(
'cvr预估'
,
'合计'
)
WHEN
transaction_type
in
(
'-1'
,
'smr'
)
THEN
array
(
'smr'
,
'合计'
)
...
...
@@ -94,6 +95,7 @@ FROM
when
card_content_type
in
(
'special_pool'
)
then
'special'
else
card_content_type
end
,
cl_id
,
CASE
when
transaction_type
in
(
'fmctr'
)
then
array
(
'fmctr'
,
'合计'
)
when
transaction_type
in
(
'high_quality_fmctr'
)
then
array
(
'high_quality_fmctr'
,
'合计'
)
WHEN
transaction_type
like
'%ctr'
THEN
array
(
'ctr预估'
,
'合计'
)
WHEN
transaction_type
like
'%cvr'
THEN
array
(
'cvr预估'
,
'合计'
)
WHEN
transaction_type
in
(
'-1'
,
'smr'
)
THEN
array
(
'smr'
,
'合计'
)
...
...
@@ -127,6 +129,7 @@ FROM
case
when
params
[
'card_content_type'
]
in
(
'qa'
,
'answer'
)
then
'qa'
when
params
[
'card_content_type'
]
in
(
'special_pool'
)
then
'special'
else
params
[
'card_content_type'
]
end
as
card_content_type
,
CASE
when
params
[
'transaction_type'
]
in
(
'fmctr'
)
then
array
(
'fmctr'
,
'合计'
)
when
params
[
'transaction_type'
]
in
(
'high_quality_fmctr'
)
then
array
(
'high_quality_fmctr'
,
'合计'
)
WHEN
params
[
'transaction_type'
]
like
'%ctr'
THEN
array
(
'ctr预估'
,
'合计'
)
WHEN
params
[
'transaction_type'
]
like
'%cvr'
THEN
array
(
'cvr预估'
,
'合计'
)
WHEN
params
[
'transaction_type'
]
in
(
'-1'
,
'smr'
)
THEN
array
(
'smr'
,
'合计'
)
...
...
@@ -154,6 +157,7 @@ FROM
case
when
params
[
'card_content_type'
]
in
(
'qa'
,
'answer'
)
then
'qa'
when
params
[
'card_content_type'
]
in
(
'special_pool'
)
then
'special'
else
params
[
'card_content_type'
]
end
,
CASE
when
params
[
'transaction_type'
]
in
(
'fmctr'
)
then
array
(
'fmctr'
,
'合计'
)
when
params
[
'transaction_type'
]
in
(
'high_quality_fmctr'
)
then
array
(
'high_quality_fmctr'
,
'合计'
)
WHEN
params
[
'transaction_type'
]
like
'%ctr'
THEN
array
(
'ctr预估'
,
'合计'
)
WHEN
params
[
'transaction_type'
]
like
'%cvr'
THEN
array
(
'cvr预估'
,
'合计'
)
WHEN
params
[
'transaction_type'
]
in
(
'-1'
,
'smr'
)
THEN
array
(
'smr'
,
'合计'
)
...
...
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