传递日期参数

This commit is contained in:
pengtao 2019-10-24 11:24:30 +08:00
parent f76f43a1f2
commit 1aaa4c4bf7

View File

@ -175,16 +175,29 @@ class Report:
and "channel"='{args['channelid']}' and "channel"='{args['channelid']}'
AND activity_id=201 AND activity_id=201
and "$part_date"='{self.day}' """ and "$part_date"='{self.day}' """
jumpout_sql = f"""SELECT if args['gameid'] not in (2001, 2002):
count(distinct "#account_id") jumpout_sql = f"""SELECT
FROM count(distinct "#account_id")
v_event_{args['suffix']} FROM
where v_event_{args['suffix']}
"$part_event"='event_1_4' where
"$part_event"='event_1_4'
and gameid='{args['gameid']}'
and "channel"='{args['channelid']}'
and "$part_date"='{self.day}'
and "jump_result"=1 """
else:
jumpout_sql = f"""SELECT
count(distinct "#account_id")
FROM
v_event_{args['suffix']}
where
"$part_event"='event_11_31'
and gameid='{args['gameid']}' and gameid='{args['gameid']}'
and "channel"='{args['channelid']}' and "channel"='{args['channelid']}'
and "$part_date"='{self.day}' and "$part_date"='{self.day}'
and "jump_result"=1 """ and "button_name" ='jc_promotipn'"""
try: try:
activa = args['tga'].get_data(activa_sql)[0][0] activa = args['tga'].get_data(activa_sql)[0][0]
new = args['tga'].get_data(new_sql)[0][0] new = args['tga'].get_data(new_sql)[0][0]