Commit c80f34be authored by 侯双强's avatar 侯双强

排除内部员工

parent 99547ea3
......@@ -122,6 +122,7 @@ def query_platform_mau(data_dt):
,count(distinct user_id) as all_mau
from tamp_data_dwd.dwd_user_login_environment
where data_dt between %s and %s
and team_id <> '0'
group by date_format(data_dt, '%%Y-%%m')
'''
platform_mau_dict = fetch_all(sql, (start_date, end_date))
......
......@@ -169,6 +169,7 @@ def query_level_wau(data_dt):
,max(level_grade) as level_grade
from tamp_data_dwd.dwd_user_login_environment
where data_dt between %s and %s
and team_id <> '0'
group by user_id
) o
group by concat(%s, '~', %s)
......@@ -249,6 +250,7 @@ def query_level_mau(data_dt):
,max(level_grade) as level_grade
from tamp_data_dwd.dwd_user_login_environment
where data_dt between %s and %s
and team_id <> '0'
group by date_format(data_dt, '%%Y-%%m'),user_id
) o
group by o.data_dt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment