1.优化设备LTV

This commit is contained in:
李伟 2022-09-16 13:54:52 +08:00
parent 9e6c3c4290
commit adbf77ce8e

View File

@ -285,11 +285,12 @@ class XAnalysis:
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
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}`
group by a.date) log on reg.date = log.date
order by date
"""
#{timed} and 计算LTV时所选时间区间只是为了划分注册人群截止时间应该按照当前时间执行
print(sql)
return {'sql': sql, 'quota': quota,
'start_date': self.event_view['startTime'][:10],