| Aggregate (cost=2.27..2.28 rows=1 width=32) |
| -> Nested Loop (cost=0.00..2.26 rows=1 width=32) |
| Join Filter: (r.erp_social_insurance_id = t.id) |
| -> Seq Scan on tbl_erp_social_insurance_bank_outs r (cost=0.00..1.12 rows=1 width=36) |
| Filter: (erp_bank_id = 1) |
| -> Seq Scan on tbl_erp_social_insurances t (cost=0.00..1.12 rows=1 width=4) |
| Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[]))) |