This commit is contained in:
2026-02-01 19:46:28 +08:00
parent 0eb8ecf506
commit 0088ccfc9d

View File

@@ -158,6 +158,15 @@ where action_id = (select action_id from actions where action = 'block-break')
group by world_id, x, y, z
order by count((world_id, x, y, z)) desc;
-- 1天内cause_id为null的block-break行为按坐标分组
select world_id, x, y, z, count((world_id, x, y, z))
from activities
where action_id = (select action_id from actions where action = 'block-break')
and cause_id is null
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
group by world_id, x, y, z
order by count((world_id, x, y, z)) desc;
-- 1天内风弹实体触发的 block-break 行为,按坐标分组
select world_id, x, y, z, count((world_id, x, y, z))
from activities