This commit is contained in:
2025-12-26 04:02:47 +08:00
parent ddce9ae3ba
commit d09b506b03

View File

@@ -152,3 +152,12 @@ where action_id = (select action_id from actions where action = 'entity-death')
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
group by cause_player_id, player
order by count(cause_player_id) desc;
-- 1天内的 entity-death 按实体分组
select affected_entity_type_id, entity_types.entity_type, count(*)
from activities
left join entity_types on activities.affected_entity_type_id = entity_types.entity_type_id
where action_id = (select action_id from actions where action = 'entity-death')
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
group by affected_entity_type_id, entity_types.entity_type
order by count(*) desc;