QUERY PLAN
Aggregate (cost=65.94..65.95 rows=1 width=32)
-> Seq Scan on tbl_erp_payment_tickets t (cost=0.00..65.94 rows=1 width=6)
Filter: (is_payment_settle AND (created_at >= '2025-08-20 17:41:03+08'::timestamp with time zone) AND (status = 2))