| Aggregate (cost=251.07..251.08 rows=1 width=8) |
| -> Append (cost=0.00..250.13 rows=75 width=285) |
| -> Seq Scan on tbl_sales_contracts r (cost=0.00..123.00 rows=59 width=175) |
| Filter: (build_by_project AND (erp_un_settle_amount > '0'::numeric)) |
| -> Subquery Scan on "*SELECT* 2" (cost=0.00..3.06 rows=13 width=210) |
| -> Seq Scan on tbl_erp_other_collect_tickets r_1 (cost=0.00..2.90 rows=13 width=208) |
| Filter: ((status = 2) AND ((amount - settle_amount) > '0'::numeric)) |
| -> Subquery Scan on "*SELECT* 3" (cost=0.00..123.47 rows=3 width=249) |
| -> Seq Scan on tbl_purchase_contracts r_2 (cost=0.00..123.44 rows=3 width=247) |
| Filter: ((NOT is_draft) AND (NOT is_refuse) AND (erp_un_settle_amount < '0'::numeric)) |