传递日期参数
This commit is contained in:
parent
f76f43a1f2
commit
1aaa4c4bf7
@ -175,16 +175,29 @@ class Report:
|
||||
and "channel"='{args['channelid']}'
|
||||
AND activity_id=201
|
||||
and "$part_date"='{self.day}' """
|
||||
jumpout_sql = f"""SELECT
|
||||
count(distinct "#account_id")
|
||||
FROM
|
||||
v_event_{args['suffix']}
|
||||
where
|
||||
"$part_event"='event_1_4'
|
||||
if args['gameid'] not in (2001, 2002):
|
||||
jumpout_sql = f"""SELECT
|
||||
count(distinct "#account_id")
|
||||
FROM
|
||||
v_event_{args['suffix']}
|
||||
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 "channel"='{args['channelid']}'
|
||||
and "$part_date"='{self.day}'
|
||||
and "jump_result"=1 """
|
||||
and "button_name" ='jc_promotipn'"""
|
||||
|
||||
try:
|
||||
activa = args['tga'].get_data(activa_sql)[0][0]
|
||||
new = args['tga'].get_data(new_sql)[0][0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user