QUERY PLAN
Aggregate (cost=1.08..1.09 rows=1 width=32)
-> Seq Scan on tbl_erp_personal_taxs t (cost=0.00..1.08 rows=1 width=32)
Filter: ((created_at >= '2025-12-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND ((bank_settle_at > '2025-12-31 23:59:59+08'::timestamp with time zone) OR (NOT is_payment_settle)) AND (status = 2))