| Aggregate (cost=136.15..136.16 rows=1 width=32) |
| -> Nested Loop (cost=3.16..136.14 rows=1 width=6) |
| -> Hash Join (cost=2.88..38.78 rows=16 width=10) |
| Hash Cond: (r.erp_other_collect_ticket_id = oc.id) |
| -> Seq Scan on tbl_erp_collect_ticket_settles r (cost=0.00..35.83 rows=27 width=14) |
| Filter: (erp_other_collect_ticket_id IS NOT NULL) |
| -> Hash (cost=2.55..2.55 rows=26 width=4) |
| -> Seq Scan on tbl_erp_other_collect_tickets oc (cost=0.00..2.55 rows=26 width=4) |
| Filter: (is_start OR (bank_settle_at <= '2025-12-31 23:59:59+08'::timestamp with time zone)) |
| -> Index Scan using tbl_erp_collect_tickets_pkey on tbl_erp_collect_tickets t (cost=0.28..6.08 rows=1 width=4) |
| Index Cond: (id = r.erp_collect_ticket_id) |
| Filter: ((bank_settle_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (status = 2)) |