| GroupAggregate (cost=135.21..135.35 rows=7 width=22) |
| Group Key: it.product_type_id, it.name |
| -> Sort (cost=135.21..135.22 rows=7 width=18) |
| Sort Key: it.product_type_id, it.name |
| -> Hash Join (cost=108.96..135.11 rows=7 width=18) |
| Hash Cond: (it.pre_sales_id = ps.id) |
| -> Seq Scan on tbl_pre_sales_product_types it (cost=0.00..23.20 rows=1120 width=22) |
| -> Hash (cost=108.83..108.83 rows=10 width=8) |
| -> Seq Scan on tbl_pre_sales ps (cost=0.00..108.83 rows=10 width=8) |
| Filter: ((NOT is_draft) AND (created_at >= '2026-01-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-12-31 23:59:59+08'::timestamp with time zone) AND (created_by = ANY ('{5085,5248,1015,1022,5064,1023}'::integer[]))) |