Aggregate (cost=2.04..2.05 rows=1 width=32) |
-> Nested Loop (cost=0.00..2.04 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.01 rows=1 width=36) |
Filter: (erp_bank_id = 2) |
-> Seq Scan on tbl_erp_social_insurances t (cost=0.00..1.01 rows=1 width=4) |
Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[]))) |