QUERY PLAN
Seq Scan on tbl_erp_other_collect_tickets (cost=0.00..2.81 rows=1 width=236)
Filter: ((status = 2) AND (id = ANY ('{32,49,50}'::integer[])) AND ((amount - all_settle_amount) > '0'::numeric))