| Append (cost=0.28..92.77 rows=7 width=168) |
| -> Nested Loop (cost=0.28..49.74 rows=1 width=132) |
| -> Seq Scan on tbl_erp_collect_ticket_settles r (cost=0.00..41.42 rows=1 width=14) |
| Filter: (erp_other_collect_ticket_id = 52) |
| -> Index Scan using tbl_erp_collect_tickets_pkey on tbl_erp_collect_tickets t (cost=0.28..8.30 rows=1 width=70) |
| Index Cond: (id = r.erp_collect_ticket_id) |
| Filter: (status = ANY ('{2,5}'::integer[])) |
| -> Nested Loop (cost=0.29..9.34 rows=1 width=146) |
| -> Seq Scan on tbl_erp_cash_cost_ticket_sales_contract_settles r_1 (cost=0.00..1.02 rows=1 width=13) |
| Filter: (erp_other_collect_ticket_id = 52) |
| -> Index Scan using tbl_erp_cash_cost_tickets_pkey on tbl_erp_cash_cost_tickets t_1 (cost=0.29..8.30 rows=1 width=81) |
| Index Cond: (id = r_1.erp_cash_cost_ticket_id) |
| Filter: (status = ANY ('{2,5}'::integer[])) |
| -> Nested Loop (cost=0.28..9.47 rows=1 width=138) |
| -> Seq Scan on tbl_erp_payment_ticket_payments r_2 (cost=0.00..1.15 rows=1 width=14) |
| Filter: (erp_other_collect_ticket_id = 52) |
| -> Index Scan using tbl_erp_payment_tickets_pkey on tbl_erp_payment_tickets t_2 (cost=0.28..8.30 rows=1 width=76) |
| Index Cond: (id = r_2.erp_payment_ticket_id) |
| Filter: (status = ANY ('{2,5}'::integer[])) |
| -> Hash Join (cost=1.35..24.15 rows=4 width=189) |
| Hash Cond: (r_3.erp_wage_ticket_id = t_3.id) |
| -> Seq Scan on tbl_erp_wage_ticket_amount_payments r_3 (cost=0.00..22.75 rows=5 width=40) |
| Filter: (erp_other_collect_ticket_id = 52) |
| -> Hash (cost=1.19..1.19 rows=13 width=97) |
| -> Seq Scan on tbl_erp_wage_tickets t_3 (cost=0.00..1.19 rows=13 width=97) |
| Filter: (status = ANY ('{2,5}'::integer[])) |