QUERY PLAN
Index Scan using tbl_erp_other_collect_tickets_pkey on tbl_erp_other_collect_tickets (cost=0.14..8.17 rows=1 width=440)
Index Cond: (id = 5)
Filter: ((status = 2) AND ((amount - settle_amount) > '0'::numeric))