diff --git a/models/x_analysis.py b/models/x_analysis.py index 9b7a4a3..c07bd6a 100644 --- a/models/x_analysis.py +++ b/models/x_analysis.py @@ -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],