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
95479fce
Commit
95479fce
authored
Aug 07, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
2b68baec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
ai_qa.sql
pm/kyc_q2/report/ai_qa.sql
+2
-10
kyc_qa_daily.sql
pm/kyc_q2/report/kyc_qa_daily.sql
+3
-3
No files found.
pm/kyc_q2/report/ai_qa.sql
View file @
95479fce
...
...
@@ -36,14 +36,6 @@ JOIN
)
t2
on
t1
.
answer_id
=
t2
.
id
join
(
SELECT
id
,
title
FROM
tl
.
tl_zx_api_ai_qa_question
where
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
and
is_online
=
'true'
)
t3
on
t1
.
question_id
=
t3
.
id
join
(
SELECT
distinct
device_id
FROM
online
.
ml_device_day_active_status
...
...
@@ -119,4 +111,4 @@ left join
on
t1
.
cl_id
=
dev
.
device_id
WHERE
spam_pv
.
device_id
IS
NULL
and
dev
.
device_id
is
NULL
group
by
t2
.
title
\ No newline at end of file
group
by
t2
.
title
;
\ No newline at end of file
pm/kyc_q2/report/kyc_qa_daily.sql
View file @
95479fce
...
...
@@ -109,7 +109,7 @@ left join
(
select
user_id
,
case
when
length
(
phone
)
=
11
then
'1'
else
0
end
as
type
from
online
.
tl_hdfs_userextra_view
where
partition_date
=
'${partition_date}'
where
partition_date
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
)
b
on
a
.
user_id
=
b
.
user_id
group
by
partition_date
,
cl_id
...
...
@@ -413,7 +413,7 @@ left join
,
count
(
case
when
params
[
'button_name'
]
=
'apple'
then
1
end
)
as
apple_pv
,
count
(
case
when
params
[
'button_name'
]
=
'change_account'
then
1
end
)
as
change_account_pv
FROM
online
.
bl_hdfs_maidian_updates
where
partition_date
>=
'20200801'
AND
partition_date
<
'${end_date}'
where
partition_date
>=
'20200801'
AND
partition_date
<
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
and
page_name
=
'one_click_login'
and
action
=
'on_click_button'
and
int
(
split
(
app_version
,
'
\\
.'
)[
1
])
>=
31
...
...
@@ -516,6 +516,6 @@ on mas.partition_date=dev.partition_date and mas.device_id=dev.device_id
WHERE
spam_pv
.
device_id
IS
NULL
and
dev
.
device_id
is
NULL
group
by
mas
.
partition_date
,
mas
.
device_os_type
,
mas
.
active_type
,
case
when
binding
.
type
>=
1
then
'是'
else
'否'
end
order
by
`日期`
,
`设备类型`
,
`活跃类型`
,
`是否授权电话`
order
by
`日期`
,
`设备类型`
,
`活跃类型`
,
`是否授权电话`
;
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