1.处理路径分析-用户符合条件无效的问题

This commit is contained in:
李伟 2022-10-17 13:42:52 +08:00
parent e5430af5e1
commit 9928436a09

View File

@ -1196,11 +1196,11 @@ from (with
from {self.game}.event
where addHours(`#event_time`, {self.zone_time}) >= start_data
and addHours(`#event_time`, {self.zone_time}) <= end_data
and `#event_name` in evnet_all)
and `#event_name` in evnet_all and {where_a})
group by `#account_id`
HAVING has_midway_hit = 1
)
where arrayElement(event_chain, 1) = start_event and {where_a} and "#account_id" IN (SELECT "#account_id"
where arrayElement(event_chain, 1) = start_event and "#account_id" IN (SELECT "#account_id"
FROM (SELECT "#account_id"
FROM {self.game}.user_view
WHERE {where_b}) AS anon_b)
@ -1243,17 +1243,17 @@ from (with
from {self.game}.event
where addHours(`#event_time`, {self.zone_time}) >= start_data
and addHours(`#event_time`, {self.zone_time}) <= end_data
and `#event_name` in evnet_all)
and `#event_name` in evnet_all and {where_a})
group by `#account_id`
HAVING has_midway_hit = 1
)
where arrayElement(event_chain, -1) = end_event and {where_a} and "#account_id" IN (SELECT "#account_id"
where arrayElement(event_chain, -1) = end_event and "#account_id" IN (SELECT "#account_id"
FROM (SELECT "#account_id"
FROM {self.game}.user_view
WHERE {where_b}) AS anon_b)
GROUP BY event_chain,`#account_id`
ORDER BY values desc"""
# initial_event 为初始事件,还有一个结束事件
sql = sql_a if source_type == 'initial_event' else sql_b
print(sql)
return {