QUERY PLAN
Aggregate (cost=2.44..2.45 rows=1 width=32)
-> Seq Scan on tbl_erp_other_collect_tickets t (cost=0.00..2.39 rows=20 width=5)
Filter: ((bank_settle_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (status = 2))