| GroupAggregate (cost=125.16..125.18 rows=1 width=22) |
| Group Key: it.product_type_id, it.name |
| -> Sort (cost=125.16..125.17 rows=1 width=18) |
| Sort Key: it.product_type_id, it.name |
| -> Hash Join (cost=99.01..125.15 rows=1 width=18) |
| Hash Cond: (it.pre_sales_id = ps.id) |
| -> Seq Scan on tbl_pre_sales_product_types it (cost=0.00..23.19 rows=1119 width=22) |
| -> Hash (cost=99.00..99.00 rows=1 width=8) |
| -> Seq Scan on tbl_pre_sales ps (cost=0.00..99.00 rows=1 width=8) |
| Filter: ((NOT is_draft) AND (created_at >= '2025-01-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (created_by = 1001)) |