QUERY PLAN
Aggregate (cost=3.78..3.79 rows=1 width=32)
-> Seq Scan on tbl_erp_other_payment_tickets t (cost=0.00..3.77 rows=2 width=5)
Filter: ((bank_settle_at <= '2026-06-30 23:59:59+08'::timestamp with time zone) AND (status = 2) AND (ticket_type = 3))