QUERY PLAN
Aggregate (cost=2.34..2.35 rows=1 width=32)
-> Hash Join (cost=1.14..2.33 rows=1 width=8)
Hash Cond: (t.id = r.erp_social_insurance_id)
-> Seq Scan on tbl_erp_social_insurances t (cost=0.00..1.15 rows=9 width=4)
Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[])))
-> Hash (cost=1.12..1.12 rows=1 width=12)
-> Seq Scan on tbl_erp_social_insurance_bank_outs r (cost=0.00..1.12 rows=1 width=12)
Filter: (erp_bank_id = 2)