1.处理路径分析-用户符合条件无效的问题
This commit is contained in:
parent
e5430af5e1
commit
9928436a09
@ -1196,11 +1196,11 @@ from (with
|
|||||||
from {self.game}.event
|
from {self.game}.event
|
||||||
where addHours(`#event_time`, {self.zone_time}) >= start_data
|
where addHours(`#event_time`, {self.zone_time}) >= start_data
|
||||||
and addHours(`#event_time`, {self.zone_time}) <= end_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`
|
group by `#account_id`
|
||||||
HAVING has_midway_hit = 1
|
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 (SELECT "#account_id"
|
||||||
FROM {self.game}.user_view
|
FROM {self.game}.user_view
|
||||||
WHERE {where_b}) AS anon_b)
|
WHERE {where_b}) AS anon_b)
|
||||||
@ -1243,17 +1243,17 @@ from (with
|
|||||||
from {self.game}.event
|
from {self.game}.event
|
||||||
where addHours(`#event_time`, {self.zone_time}) >= start_data
|
where addHours(`#event_time`, {self.zone_time}) >= start_data
|
||||||
and addHours(`#event_time`, {self.zone_time}) <= end_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`
|
group by `#account_id`
|
||||||
HAVING has_midway_hit = 1
|
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 (SELECT "#account_id"
|
||||||
FROM {self.game}.user_view
|
FROM {self.game}.user_view
|
||||||
WHERE {where_b}) AS anon_b)
|
WHERE {where_b}) AS anon_b)
|
||||||
GROUP BY event_chain,`#account_id`
|
GROUP BY event_chain,`#account_id`
|
||||||
ORDER BY values desc"""
|
ORDER BY values desc"""
|
||||||
|
# initial_event 为初始事件,还有一个结束事件
|
||||||
sql = sql_a if source_type == 'initial_event' else sql_b
|
sql = sql_a if source_type == 'initial_event' else sql_b
|
||||||
print(sql)
|
print(sql)
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user