1.优化设备LTV
This commit is contained in:
parent
9e6c3c4290
commit
adbf77ce8e
@ -285,11 +285,12 @@ class XAnalysis:
|
|||||||
AND {where_str} AND {where_account_str} ) as a
|
AND {where_str} AND {where_account_str} ) as a
|
||||||
left join (select `{quota}`, unitPrice/100 as money, toDate(addHours(`#event_time`, `#zone_offset`)) as date
|
left join (select `{quota}`, unitPrice/100 as money, toDate(addHours(`#event_time`, `#zone_offset`)) as date
|
||||||
from {self.game}.event
|
from {self.game}.event
|
||||||
where {timed} and `#event_name` = 'pay' and {where_order_str} AND {where_account_str}) b
|
where `#event_name` = 'pay' and {where_order_str} AND {where_account_str}) b
|
||||||
on a.`{quota}` = b.`{quota}`
|
on a.`{quota}` = b.`{quota}`
|
||||||
group by a.date) log on reg.date = log.date
|
group by a.date) log on reg.date = log.date
|
||||||
order by date
|
order by date
|
||||||
"""
|
"""
|
||||||
|
#{timed} and 计算LTV时,所选时间区间只是为了划分注册人群,截止时间应该按照当前时间执行
|
||||||
print(sql)
|
print(sql)
|
||||||
return {'sql': sql, 'quota': quota,
|
return {'sql': sql, 'quota': quota,
|
||||||
'start_date': self.event_view['startTime'][:10],
|
'start_date': self.event_view['startTime'][:10],
|
||||||
|
Loading…
Reference in New Issue
Block a user