QUERY PLAN
Nested Loop (cost=0.57..16.63 rows=1 width=467)
-> Index Scan using tbl_approves_pkey on tbl_approves r (cost=0.28..8.30 rows=1 width=467)
Index Cond: (id = 2783)
Filter: ((status = 2) AND ((amount - erp_payment_all_settle_amount) > '0'::numeric))
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.29..8.31 rows=1 width=4)
Index Cond: ((object_id = 2783) AND (term_id = 17))
Filter: (taxonomy_id = 2100000000)