QUERY PLAN
Aggregate (cost=2.83..2.84 rows=1 width=32)
-> Seq Scan on tbl_erp_other_collect_tickets t (cost=0.00..2.82 rows=4 width=5)
Filter: ((NOT is_start) AND (verify_at <= '2026-06-30 23:59:59+08'::timestamp with time zone) AND ((bank_settle_at IS NULL) OR (bank_settle_at > '2026-06-30 23:59:59+08'::timestamp with time zone)) AND (status = 2))