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
a9dfa862
Commit
a9dfa862
authored
Sep 15, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
66a24e90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
clue_daily.sql
pm/clue_daily/etl/clue_daily.sql
+7
-5
No files found.
pm/clue_daily/etl/clue_daily.sql
View file @
a9dfa862
...
@@ -673,6 +673,7 @@ FROM
...
@@ -673,6 +673,7 @@ FROM
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
and
page_name
=
'ai_plan_consult_list'
and
page_name
=
'ai_plan_consult_list'
and
referrer
in
(
'plan_service_list'
,
'ai_plan_list'
)
and
params
[
'button_name'
]
in
(
'send'
)
and
params
[
'button_name'
]
in
(
'send'
)
and
action
=
'on_click_button'
and
action
=
'on_click_button'
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
...
@@ -727,6 +728,7 @@ FROM
...
@@ -727,6 +728,7 @@ FROM
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
and
page_name
=
'ai_plan_consult_list'
and
page_name
=
'ai_plan_consult_list'
and
params
[
'button_name'
]
in
(
'send'
)
and
params
[
'button_name'
]
in
(
'send'
)
and
referrer
in
(
'plan_service_list'
,
'ai_plan_list'
)
and
action
=
'on_click_button'
and
action
=
'on_click_button'
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
group
by
partition_date
,
user_id
,
cl_id
,
params
[
'hospital_id_list'
]
group
by
partition_date
,
user_id
,
cl_id
,
params
[
'hospital_id_list'
]
...
@@ -782,7 +784,7 @@ FROM
...
@@ -782,7 +784,7 @@ FROM
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
and
params
[
'popup_name'
]
=
'bargain_phone'
and
params
[
'popup_name'
]
=
'bargain_phone'
and
page_name
=
'ai_plan_list'
and
page_name
in
(
'plan_service_list'
,
'ai_plan_list'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
action
=
'on_click_button'
and
action
=
'on_click_button'
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
...
@@ -850,7 +852,7 @@ FROM
...
@@ -850,7 +852,7 @@ FROM
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
and
params
[
'popup_name'
]
=
'bargain_phone'
and
params
[
'popup_name'
]
=
'bargain_phone'
and
page_name
=
'ai_plan_list'
and
page_name
in
(
'plan_service_list'
,
'ai_plan_list'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
action
=
'on_click_button'
and
action
=
'on_click_button'
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
...
@@ -919,7 +921,7 @@ FROM
...
@@ -919,7 +921,7 @@ FROM
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
and
params
[
'popup_name'
]
=
'bargain_phone'
and
params
[
'popup_name'
]
=
'bargain_phone'
and
page_name
=
'ai_plan_list'
and
page_name
in
(
'plan_service_list'
,
'ai_plan_list'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
action
=
'on_click_button'
and
action
=
'on_click_button'
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
...
@@ -1707,7 +1709,7 @@ LEFT JOIN
...
@@ -1707,7 +1709,7 @@ LEFT JOIN
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
and
params
[
'popup_name'
]
=
'bargain_phone'
and
params
[
'popup_name'
]
=
'bargain_phone'
and
page_name
=
'ai_plan_list'
and
page_name
in
(
'plan_service_list'
,
'ai_plan_list'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
action
=
'on_click_button'
and
action
=
'on_click_button'
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
...
@@ -1778,7 +1780,7 @@ LEFT JOIN
...
@@ -1778,7 +1780,7 @@ LEFT JOIN
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
where
partition_date
>=
REGEXP_REPLACE
(
trunc
(
date_sub
(
current_date
(),
1
),
'MM'
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
AND
partition_date
<=
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
)
and
params
[
'popup_name'
]
=
'bargain_phone'
and
params
[
'popup_name'
]
=
'bargain_phone'
and
page_name
=
'ai_plan_list'
and
page_name
in
(
'plan_service_list'
,
'ai_plan_list'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
params
[
'button_name'
]
in
(
'confirm'
)
and
action
=
'on_click_button'
and
action
=
'on_click_button'
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
...
...
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