| Aggregate (cost=7740.50..7740.51 rows=1 width=8) |
| -> Sort (cost=7468.81..7514.09 rows=18113 width=333) |
| Sort Key: (CASE WHEN ((sub.verify_status = 0) OR (sub.stop_verify_status = 0) OR (sub.cancel_verify_status = 0)) THEN 1 WHEN (sub.self_verify_at IS NOT NULL) THEN 2 ELSE 3 END), (CASE WHEN ((sub.verify_status = 0) OR (sub.stop_verify_status = 0) OR (sub.cancel_verify_status = 0)) THEN sub.created_at ELSE NULL::timestamp with time zone END) DESC NULLS LAST, sub.self_verify_at DESC NULLS LAST, sub.last_verify_at DESC NULLS LAST, sub.created_at DESC |
| -> Result (cost=29.11..3401.79 rows=18113 width=333) |
| -> Append (cost=29.11..2948.97 rows=18113 width=36) |
| -> Subquery Scan on sub (cost=29.11..38.56 rows=210 width=36) |
| -> HashAggregate (cost=29.11..36.46 rows=210 width=329) |
| Group Key: r.id, rvr.status, rsvr.status |
| -> Hash Left Join (cost=11.36..25.43 rows=210 width=70) |
| Hash Cond: (r.id = rsvr.erp_purchase_inbound_id) |
| -> Hash Right Join (cost=10.29..23.29 rows=210 width=58) |
| Hash Cond: (rvr.erp_purchase_inbound_id = r.id) |
| -> Seq Scan on tbl_erp_purchase_inbound_verify_rels rvr (cost=0.00..12.45 rows=206 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=7.66..7.66 rows=210 width=46) |
| -> Seq Scan on tbl_erp_purchase_inbounds r (cost=0.00..7.66 rows=210 width=46) |
| Filter: (status <> 0) |
| -> Hash (cost=1.05..1.05 rows=2 width=16) |
| -> Seq Scan on tbl_erp_purchase_inbound_stop_verify_rels rsvr (cost=0.00..1.05 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 2" (cost=165.96..282.46 rows=2219 width=36) |
| -> HashAggregate (cost=165.96..260.27 rows=2219 width=333) |
| Group Key: r_1.id, rvr_1.status, rsvr_1.status, rcvr.status |
| -> Hash Left Join (cost=8.64..110.49 rows=2219 width=86) |
| Hash Cond: (r_1.id = rcvr.erp_purchase_order_id) |
| -> Hash Left Join (cost=7.51..98.23 rows=2219 width=74) |
| Hash Cond: (r_1.id = rsvr_1.erp_purchase_order_id) |
| -> Hash Left Join (cost=6.20..85.77 rows=2219 width=62) |
| Hash Cond: (r_1.id = rvr_1.erp_purchase_order_id) |
| -> Seq Scan on tbl_erp_purchase_orders r_1 (cost=0.00..67.78 rows=2219 width=50) |
| Filter: (status <> 0) |
| -> Hash (cost=5.33..5.33 rows=70 width=16) |
| -> Seq Scan on tbl_erp_purchase_order_verify_rels rvr_1 (cost=0.00..5.33 rows=70 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.25..1.25 rows=5 width=16) |
| -> Seq Scan on tbl_erp_purchase_order_stop_verify_rels rsvr_1 (cost=0.00..1.25 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.07..1.07 rows=4 width=16) |
| -> Seq Scan on tbl_erp_purchase_order_cancel_verify_rels rcvr (cost=0.00..1.07 rows=4 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 3" (cost=24.69..25.08 rows=6 width=36) |
| -> GroupAggregate (cost=24.69..25.02 rows=6 width=329) |
| Group Key: r_2.id, rvr_2.status, rsvr_2.status |
| -> Sort (cost=24.69..24.70 rows=6 width=62) |
| Sort Key: r_2.id, rvr_2.status, rsvr_2.status |
| -> Hash Left Join (cost=2.38..24.61 rows=6 width=62) |
| Hash Cond: (r_2.id = rvr_2.erp_purchase_return_id) |
| -> Hash Right Join (cost=1.15..23.29 rows=6 width=50) |
| Hash Cond: (rsvr_2.erp_purchase_return_id = r_2.id) |
| -> Seq Scan on tbl_erp_purchase_return_stop_verify_rels rsvr_2 (cost=0.00..22.12 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.07..1.07 rows=6 width=38) |
| -> Seq Scan on tbl_erp_purchase_returns r_2 (cost=0.00..1.07 rows=6 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.15..1.15 rows=6 width=16) |
| -> Seq Scan on tbl_erp_purchase_return_verify_rels rvr_2 (cost=0.00..1.15 rows=6 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 4" (cost=3.72..4.08 rows=8 width=36) |
| -> HashAggregate (cost=3.72..4.00 rows=8 width=329) |
| Group Key: r_3.id, rvr_3.status, rsvr_3.status |
| -> Hash Left Join (cost=2.30..3.58 rows=8 width=62) |
| Hash Cond: (r_3.id = rsvr_3.erp_inventory_lost_id) |
| -> Hash Right Join (cost=1.21..2.42 rows=8 width=50) |
| Hash Cond: (rvr_3.erp_inventory_lost_id = r_3.id) |
| -> Seq Scan on tbl_erp_inventory_lost_verify_rels rvr_3 (cost=0.00..1.18 rows=8 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.11..1.11 rows=8 width=38) |
| -> Seq Scan on tbl_erp_inventory_losts r_3 (cost=0.00..1.11 rows=8 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.05..1.05 rows=3 width=16) |
| -> Seq Scan on tbl_erp_inventory_lost_stop_verify_rels rsvr_3 (cost=0.00..1.05 rows=3 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 5" (cost=3.64..4.04 rows=9 width=36) |
| -> HashAggregate (cost=3.64..3.95 rows=9 width=329) |
| Group Key: r_4.id, rvr_4.status, rsvr_4.status |
| -> Hash Left Join (cost=2.23..3.48 rows=9 width=70) |
| Hash Cond: (r_4.id = rsvr_4.erp_inventory_overflow_id) |
| -> Hash Left Join (cost=1.19..2.40 rows=9 width=58) |
| Hash Cond: (r_4.id = rvr_4.erp_inventory_overflow_id) |
| -> Seq Scan on tbl_erp_inventory_overflows r_4 (cost=0.00..1.12 rows=9 width=46) |
| Filter: (status <> 0) |
| -> Hash (cost=1.15..1.15 rows=3 width=16) |
| -> Seq Scan on tbl_erp_inventory_overflow_verify_rels rvr_4 (cost=0.00..1.15 rows=3 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.02..1.02 rows=1 width=16) |
| -> Seq Scan on tbl_erp_inventory_overflow_stop_verify_rels rsvr_4 (cost=0.00..1.02 rows=1 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 6" (cost=25.04..25.69 rows=10 width=36) |
| -> GroupAggregate (cost=25.04..25.59 rows=10 width=329) |
| Group Key: r_5.id, rvr_5.status, rsvr_5.status |
| -> Sort (cost=25.04..25.07 rows=10 width=62) |
| Sort Key: r_5.id, rvr_5.status, rsvr_5.status |
| -> Hash Left Join (cost=2.60..24.88 rows=10 width=62) |
| Hash Cond: (r_5.id = rvr_5.erp_inventory_build_id) |
| -> Hash Right Join (cost=1.27..23.41 rows=10 width=50) |
| Hash Cond: (rsvr_5.erp_inventory_build_id = r_5.id) |
| -> Seq Scan on tbl_erp_inventory_build_stop_verify_rels rsvr_5 (cost=0.00..22.12 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.15..1.15 rows=10 width=38) |
| -> Seq Scan on tbl_erp_inventory_builds r_5 (cost=0.00..1.15 rows=10 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.19..1.19 rows=11 width=16) |
| -> Seq Scan on tbl_erp_inventory_build_verify_rels rvr_5 (cost=0.00..1.19 rows=11 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 7" (cost=24.52..24.78 rows=4 width=36) |
| -> GroupAggregate (cost=24.52..24.74 rows=4 width=329) |
| Group Key: r_6.id, rvr_6.status, rsvr_6.status |
| -> Sort (cost=24.52..24.53 rows=4 width=62) |
| Sort Key: r_6.id, rvr_6.status, rsvr_6.status |
| -> Nested Loop Left Join (cost=1.11..24.48 rows=4 width=62) |
| Join Filter: (rvr_6.erp_inventory_disassemble_id = r_6.id) |
| -> Hash Right Join (cost=1.11..23.25 rows=4 width=50) |
| Hash Cond: (rsvr_6.erp_inventory_disassemble_id = r_6.id) |
| -> Seq Scan on tbl_erp_inventory_disassemble_stop_verify_rels rsvr_6 (cost=0.00..22.12 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.06..1.06 rows=4 width=38) |
| -> Seq Scan on tbl_erp_inventory_disassembles r_6 (cost=0.00..1.06 rows=4 width=38) |
| Filter: (status <> 0) |
| -> Materialize (cost=0.00..1.17 rows=1 width=16) |
| -> Seq Scan on tbl_erp_inventory_disassemble_verify_rels rvr_6 (cost=0.00..1.16 rows=1 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 8" (cost=60.80..68.41 rows=169 width=36) |
| -> HashAggregate (cost=60.80..66.72 rows=169 width=329) |
| Group Key: r_7.id, rvr_7.status, rsvr_7.status |
| -> Hash Left Join (cost=44.38..57.85 rows=169 width=62) |
| Hash Cond: (r_7.id = rsvr_7.erp_inventory_transfer_id) |
| -> Hash Left Join (cost=22.19..34.99 rows=169 width=50) |
| Hash Cond: (r_7.id = rvr_7.erp_inventory_transfer_id) |
| -> Seq Scan on tbl_erp_inventory_transfers r_7 (cost=0.00..12.12 rows=169 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=22.12..22.12 rows=5 width=16) |
| -> Seq Scan on tbl_erp_inventory_transfer_verify_rels rvr_7 (cost=0.00..22.12 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=22.12..22.12 rows=5 width=16) |
| -> Seq Scan on tbl_erp_inventory_transfer_stop_verify_rels rsvr_7 (cost=0.00..22.12 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 9" (cost=134.82..224.75 rows=1713 width=36) |
| -> HashAggregate (cost=134.82..207.62 rows=1713 width=333) |
| Group Key: r_8.id, rvr_8.status, rsvr_8.status, rcvr_1.status |
| -> Hash Left Join (cost=7.30..91.99 rows=1713 width=86) |
| Hash Cond: (r_8.id = rcvr_1.erp_sales_order_id) |
| -> Hash Left Join (cost=6.17..84.39 rows=1713 width=74) |
| Hash Cond: (r_8.id = rsvr_8.erp_sales_order_id) |
| -> Hash Left Join (cost=4.58..74.00 rows=1713 width=62) |
| Hash Cond: (r_8.id = rvr_8.erp_sales_order_id) |
| -> Seq Scan on tbl_erp_sales_orders r_8 (cost=0.00..59.45 rows=1713 width=50) |
| Filter: (status <> 0) |
| -> Hash (cost=2.81..2.81 rows=141 width=16) |
| -> Seq Scan on tbl_erp_sales_order_verify_rels rvr_8 (cost=0.00..2.81 rows=141 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.31..1.31 rows=23 width=16) |
| -> Seq Scan on tbl_erp_sales_order_stop_verify_rels rsvr_8 (cost=0.00..1.31 rows=23 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.06..1.06 rows=5 width=16) |
| -> Seq Scan on tbl_erp_sales_order_cancel_verify_rels rcvr_1 (cost=0.00..1.06 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 10" (cost=25.38..33.97 rows=191 width=36) |
| -> HashAggregate (cost=25.38..32.06 rows=191 width=329) |
| Group Key: r_9.id, rvr_9.status, rsvr_9.status |
| -> Hash Left Join (cost=10.91..22.04 rows=191 width=62) |
| Hash Cond: (r_9.id = rsvr_9.erp_sales_outbound_id) |
| -> Hash Right Join (cost=9.79..19.69 rows=191 width=50) |
| Hash Cond: (rvr_9.erp_sales_outbound_id = r_9.id) |
| -> Seq Scan on tbl_erp_sales_outbound_verify_rels rvr_9 (cost=0.00..9.49 rows=153 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=7.40..7.40 rows=191 width=38) |
| -> Seq Scan on tbl_erp_sales_outbounds r_9 (cost=0.00..7.40 rows=191 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.09..1.09 rows=3 width=16) |
| -> Seq Scan on tbl_erp_sales_outbound_stop_verify_rels rsvr_9 (cost=0.00..1.09 rows=3 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 11" (cost=24.64..25.03 rows=6 width=36) |
| -> GroupAggregate (cost=24.64..24.97 rows=6 width=329) |
| Group Key: r_10.id, rvr_10.status, rsvr_10.status |
| -> Sort (cost=24.64..24.65 rows=6 width=62) |
| Sort Key: r_10.id, rvr_10.status, rsvr_10.status |
| -> Hash Left Join (cost=2.33..24.56 rows=6 width=62) |
| Hash Cond: (r_10.id = rvr_10.erp_sales_return_id) |
| -> Hash Right Join (cost=1.15..23.29 rows=6 width=50) |
| Hash Cond: (rsvr_10.erp_sales_return_id = r_10.id) |
| -> Seq Scan on tbl_erp_sales_return_stop_verify_rels rsvr_10 (cost=0.00..22.12 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.07..1.07 rows=6 width=38) |
| -> Seq Scan on tbl_erp_sales_returns r_10 (cost=0.00..1.07 rows=6 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.10..1.10 rows=6 width=16) |
| -> Seq Scan on tbl_erp_sales_return_verify_rels rvr_10 (cost=0.00..1.10 rows=6 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 12" (cost=4.78..5.73 rows=21 width=36) |
| -> HashAggregate (cost=4.78..5.52 rows=21 width=329) |
| Group Key: r_11.id, rvr_11.status, rsvr_11.status |
| -> Hash Left Join (cost=2.64..4.42 rows=21 width=70) |
| Hash Cond: (r_11.id = rsvr_11.erp_purchase_gift_id) |
| -> Hash Right Join (cost=1.54..3.19 rows=21 width=58) |
| Hash Cond: (rvr_11.erp_purchase_gift_id = r_11.id) |
| -> Seq Scan on tbl_erp_purchase_gift_verify_rels rvr_11 (cost=0.00..1.59 rows=21 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.27..1.27 rows=21 width=46) |
| -> Seq Scan on tbl_erp_purchase_gifts r_11 (cost=0.00..1.27 rows=21 width=46) |
| Filter: (status <> 0) |
| -> Hash (cost=1.07..1.07 rows=2 width=16) |
| -> Seq Scan on tbl_erp_purchase_gift_stop_verify_rels rsvr_11 (cost=0.00..1.07 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 13" (cost=21.24..28.94 rows=171 width=36) |
| -> HashAggregate (cost=21.24..27.23 rows=171 width=329) |
| Group Key: r_12.id, rvr_12.status, rsvr_12.status |
| -> Hash Left Join (cost=9.36..18.25 rows=171 width=62) |
| Hash Cond: (r_12.id = rsvr_12.erp_sales_gift_id) |
| -> Hash Right Join (cost=8.29..16.30 rows=171 width=50) |
| Hash Cond: (rvr_12.erp_sales_gift_id = r_12.id) |
| -> Seq Scan on tbl_erp_sales_gift_verify_rels rvr_12 (cost=0.00..7.66 rows=129 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=6.15..6.15 rows=171 width=38) |
| -> Seq Scan on tbl_erp_sales_gifts r_12 (cost=0.00..6.15 rows=171 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.05..1.05 rows=2 width=16) |
| -> Seq Scan on tbl_erp_sales_gift_stop_verify_rels rsvr_12 (cost=0.00..1.05 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 14" (cost=124.61..223.25 rows=2192 width=36) |
| -> HashAggregate (cost=124.61..201.33 rows=2192 width=329) |
| Group Key: r_13.id, rvr_13.status, rsvr_13.status |
| -> Hash Left Join (cost=5.99..86.25 rows=2192 width=62) |
| Hash Cond: (r_13.id = rsvr_13.erp_collect_ticket_id) |
| -> Hash Left Join (cost=4.89..76.91 rows=2192 width=50) |
| Hash Cond: (r_13.id = rvr_13.erp_collect_ticket_id) |
| -> Seq Scan on tbl_erp_collect_tickets r_13 (cost=0.00..63.45 rows=2192 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=4.45..4.45 rows=35 width=16) |
| -> Seq Scan on tbl_erp_collect_ticket_verify_rels rvr_13 (cost=0.00..4.45 rows=35 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.07..1.07 rows=2 width=16) |
| -> Seq Scan on tbl_erp_collect_ticket_stop_verify_rels rsvr_13 (cost=0.00..1.07 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 15" (cost=139.97..245.72 rows=2350 width=36) |
| -> HashAggregate (cost=139.97..222.22 rows=2350 width=329) |
| Group Key: r_14.id, rvr_14.status, rsvr_14.status |
| -> Hash Left Join (cost=10.00..98.85 rows=2350 width=62) |
| Hash Cond: (r_14.id = rsvr_14.erp_payment_ticket_id) |
| -> Hash Left Join (cost=8.78..88.72 rows=2350 width=50) |
| Hash Cond: (r_14.id = rvr_14.erp_payment_ticket_id) |
| -> Seq Scan on tbl_erp_payment_tickets r_14 (cost=0.00..68.42 rows=2350 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=5.39..5.39 rows=271 width=16) |
| -> Seq Scan on tbl_erp_payment_ticket_verify_rels rvr_14 (cost=0.00..5.39 rows=271 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.11..1.11 rows=9 width=16) |
| -> Seq Scan on tbl_erp_payment_ticket_stop_verify_rels rsvr_14 (cost=0.00..1.11 rows=9 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 16" (cost=7.69..10.30 rows=58 width=36) |
| -> HashAggregate (cost=7.69..9.72 rows=58 width=329) |
| Group Key: r_15.id, rvr_15.status, rsvr_15.status |
| -> Hash Left Join (cost=4.54..6.67 rows=58 width=62) |
| Hash Cond: (r_15.id = rsvr_15.erp_cost_ticket_id) |
| -> Hash Right Join (cost=3.46..5.35 rows=58 width=50) |
| Hash Cond: (rvr_15.erp_cost_ticket_id = r_15.id) |
| -> Seq Scan on tbl_erp_cost_ticket_verify_rels rvr_15 (cost=0.00..1.73 rows=58 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=2.74..2.74 rows=58 width=38) |
| -> Seq Scan on tbl_erp_cost_tickets r_15 (cost=0.00..2.74 rows=58 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.04..1.04 rows=3 width=16) |
| -> Seq Scan on tbl_erp_cost_ticket_stop_verify_rels rsvr_15 (cost=0.00..1.04 rows=3 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 17" (cost=8.31..11.82 rows=78 width=36) |
| -> HashAggregate (cost=8.31..11.04 rows=78 width=329) |
| Group Key: r_16.id, rvr_16.status, rsvr_16.status |
| -> Hash Left Join (cost=5.03..6.94 rows=78 width=62) |
| Hash Cond: (r_16.id = rsvr_16.erp_other_income_ticket_id) |
| -> Hash Right Join (cost=3.98..5.58 rows=78 width=50) |
| Hash Cond: (rvr_16.erp_other_income_ticket_id = r_16.id) |
| -> Seq Scan on tbl_erp_other_income_ticket_verify_rels rvr_16 (cost=0.00..1.50 rows=40 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=3.00..3.00 rows=78 width=38) |
| -> Seq Scan on tbl_erp_other_income_tickets r_16 (cost=0.00..3.00 rows=78 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.02..1.02 rows=2 width=16) |
| -> Seq Scan on tbl_erp_other_income_ticket_stop_verify_rels rsvr_16 (cost=0.00..1.02 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 18" (cost=3.69..4.14 rows=10 width=36) |
| -> HashAggregate (cost=3.69..4.04 rows=10 width=329) |
| Group Key: r_17.id, rvr_17.status, rsvr_17.status |
| -> Hash Left Join (cost=2.29..3.51 rows=10 width=62) |
| Hash Cond: (r_17.id = rsvr_17.erp_cost_convert_ticket_id) |
| -> Hash Right Join (cost=1.26..2.44 rows=10 width=50) |
| Hash Cond: (rvr_17.erp_cost_convert_ticket_id = r_17.id) |
| -> Seq Scan on tbl_erp_cost_convert_ticket_verify_rels rvr_17 (cost=0.00..1.14 rows=11 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.14..1.14 rows=10 width=38) |
| -> Seq Scan on tbl_erp_cost_convert_tickets r_17 (cost=0.00..1.14 rows=10 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.01..1.01 rows=1 width=16) |
| -> Seq Scan on tbl_erp_cost_convert_ticket_stop_verify_rels rsvr_17 (cost=0.00..1.01 rows=1 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 19" (cost=4.87..5.91 rows=23 width=36) |
| -> HashAggregate (cost=4.87..5.68 rows=23 width=329) |
| Group Key: r_18.id, rvr_18.status, rsvr_18.status |
| -> Hash Left Join (cost=2.66..4.47 rows=23 width=62) |
| Hash Cond: (r_18.id = rsvr_18.erp_bank_transfer_ticket_id) |
| -> Hash Right Join (cost=1.59..3.26 rows=23 width=50) |
| Hash Cond: (rvr_18.erp_bank_transfer_ticket_id = r_18.id) |
| -> Seq Scan on tbl_erp_bank_transfer_ticket_verify_rels rvr_18 (cost=0.00..1.60 rows=24 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.30..1.30 rows=23 width=38) |
| -> Seq Scan on tbl_erp_bank_transfer_tickets r_18 (cost=0.00..1.30 rows=23 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.05..1.05 rows=2 width=16) |
| -> Seq Scan on tbl_erp_bank_transfer_ticket_stop_verify_rels rsvr_18 (cost=0.00..1.05 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 20" (cost=1175.55..1556.84 rows=8473 width=36) |
| -> HashAggregate (cost=1175.55..1472.11 rows=8473 width=329) |
| Group Key: r_19.id, rvr_19.status, rsvr_19.status |
| -> Hash Left Join (cost=578.08..1027.27 rows=8473 width=62) |
| Hash Cond: (r_19.id = rsvr_19.erp_cash_cost_ticket_id) |
| -> Hash Right Join (cost=576.85..983.62 rows=8473 width=50) |
| Hash Cond: (rvr_19.erp_cash_cost_ticket_id = r_19.id) |
| -> Seq Scan on tbl_erp_cash_cost_ticket_verify_rels rvr_19 (cost=0.00..384.75 rows=8386 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=470.94..470.94 rows=8473 width=38) |
| -> Seq Scan on tbl_erp_cash_cost_tickets r_19 (cost=0.00..470.94 rows=8473 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.15..1.15 rows=6 width=16) |
| -> Seq Scan on tbl_erp_cash_cost_ticket_stop_verify_rels rsvr_19 (cost=0.00..1.15 rows=6 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 21" (cost=3.22..3.35 rows=2 width=36) |
| -> GroupAggregate (cost=3.22..3.33 rows=2 width=329) |
| Group Key: r_20.id, rvr_20.status, rsvr_20.status |
| -> Sort (cost=3.22..3.22 rows=2 width=62) |
| Sort Key: r_20.id, rvr_20.status, rsvr_20.status |
| -> Nested Loop Left Join (cost=0.00..3.21 rows=2 width=62) |
| Join Filter: (rvr_20.erp_advance_payment_ticket_id = r_20.id) |
| -> Nested Loop Left Join (cost=0.00..2.09 rows=2 width=50) |
| Join Filter: (rsvr_20.erp_advance_payment_ticket_id = r_20.id) |
| -> Seq Scan on tbl_erp_advance_payment_tickets r_20 (cost=0.00..1.04 rows=2 width=38) |
| Filter: (status <> 0) |
| -> Materialize (cost=0.00..1.03 rows=1 width=16) |
| -> Seq Scan on tbl_erp_advance_payment_ticket_stop_verify_rels rsvr_20 (cost=0.00..1.02 rows=1 width=16) |
| Filter: (user_id = 1001) |
| -> Materialize (cost=0.00..1.06 rows=2 width=16) |
| -> Seq Scan on tbl_erp_advance_payment_ticket_verify_rels rvr_20 (cost=0.00..1.05 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 22" (cost=27.42..29.40 rows=44 width=36) |
| -> HashAggregate (cost=27.42..28.96 rows=44 width=329) |
| Group Key: r_21.id, rvr_21.status, rsvr_21.status |
| -> Hash Left Join (cost=23.59..26.65 rows=44 width=62) |
| Hash Cond: (r_21.id = rsvr_21.erp_other_payment_ticket_id) |
| -> Hash Left Join (cost=1.40..4.29 rows=44 width=50) |
| Hash Cond: (r_21.id = rvr_21.erp_other_payment_ticket_id) |
| -> Seq Scan on tbl_erp_other_payment_tickets r_21 (cost=0.00..2.56 rows=44 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.20..1.20 rows=16 width=16) |
| -> Seq Scan on tbl_erp_other_payment_ticket_verify_rels rvr_21 (cost=0.00..1.20 rows=16 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=22.12..22.12 rows=5 width=16) |
| -> Seq Scan on tbl_erp_other_payment_ticket_stop_verify_rels rsvr_21 (cost=0.00..22.12 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 23" (cost=6.94..9.01 rows=46 width=36) |
| -> HashAggregate (cost=6.94..8.55 rows=46 width=329) |
| Group Key: r_22.id, rvr_22.status, rsvr_22.status |
| -> Hash Left Join (cost=4.26..6.14 rows=46 width=62) |
| Hash Cond: (r_22.id = rsvr_22.erp_other_collect_ticket_id) |
| -> Hash Right Join (cost=3.16..4.82 rows=46 width=50) |
| Hash Cond: (rvr_22.erp_other_collect_ticket_id = r_22.id) |
| -> Seq Scan on tbl_erp_other_collect_ticket_verify_rels rvr_22 (cost=0.00..1.54 rows=43 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=2.59..2.59 rows=46 width=38) |
| -> Seq Scan on tbl_erp_other_collect_tickets r_22 (cost=0.00..2.59 rows=46 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.05..1.05 rows=4 width=16) |
| -> Seq Scan on tbl_erp_other_collect_ticket_stop_verify_rels rsvr_22 (cost=0.00..1.05 rows=4 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 24" (cost=9.64..12.32 rows=51 width=36) |
| -> HashAggregate (cost=9.64..11.81 rows=51 width=333) |
| Group Key: r_23.id, rvr_23.status, rsvr_23.status, rcvr_2.status |
| -> Hash Left Join (cost=5.56..8.37 rows=51 width=86) |
| Hash Cond: (r_23.id = rcvr_2.erp_purchase_cost_id) |
| -> Hash Left Join (cost=4.50..7.03 rows=51 width=74) |
| Hash Cond: (r_23.id = rsvr_23.erp_purchase_cost_id) |
| -> Hash Right Join (cost=3.29..5.50 rows=51 width=62) |
| Hash Cond: (rvr_23.erp_purchase_cost_id = r_23.id) |
| -> Seq Scan on tbl_erp_purchase_cost_verify_rels rvr_23 (cost=0.00..2.09 rows=45 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=2.65..2.65 rows=51 width=50) |
| -> Seq Scan on tbl_erp_purchase_costs r_23 (cost=0.00..2.65 rows=51 width=50) |
| Filter: (status <> 0) |
| -> Hash (cost=1.14..1.14 rows=6 width=16) |
| -> Seq Scan on tbl_erp_purchase_cost_stop_verify_rels rsvr_23 (cost=0.00..1.14 rows=6 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.04..1.04 rows=2 width=16) |
| -> Seq Scan on tbl_erp_purchase_cost_cancel_verify_rels rcvr_2 (cost=0.00..1.04 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 25" (cost=3.95..4.58 rows=14 width=36) |
| -> HashAggregate (cost=3.95..4.44 rows=14 width=329) |
| Group Key: r_24.id, rvr_24.status, rsvr_24.status |
| -> Hash Left Join (cost=2.41..3.70 rows=14 width=62) |
| Hash Cond: (r_24.id = rsvr_24.erp_wage_ticket_id) |
| -> Hash Right Join (cost=1.36..2.58 rows=14 width=50) |
| Hash Cond: (rvr_24.erp_wage_ticket_id = r_24.id) |
| -> Seq Scan on tbl_erp_wage_ticket_verify_rels rvr_24 (cost=0.00..1.18 rows=12 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.19..1.19 rows=14 width=38) |
| -> Seq Scan on tbl_erp_wage_tickets r_24 (cost=0.00..1.19 rows=14 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.02..1.02 rows=2 width=16) |
| -> Seq Scan on tbl_erp_wage_ticket_stop_verify_rels rsvr_24 (cost=0.00..1.02 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 26" (cost=3.95..4.44 rows=11 width=36) |
| -> HashAggregate (cost=3.95..4.33 rows=11 width=329) |
| Group Key: r_25.id, rvr_25.status, rsvr_25.status |
| -> Hash Left Join (cost=2.36..3.75 rows=11 width=62) |
| Hash Cond: (r_25.id = rsvr_25.erp_social_insurance_id) |
| -> Hash Right Join (cost=1.29..2.60 rows=11 width=50) |
| Hash Cond: (rvr_25.erp_social_insurance_id = r_25.id) |
| -> Seq Scan on tbl_erp_social_insurance_verify_rels rvr_25 (cost=0.00..1.27 rows=11 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.15..1.15 rows=11 width=38) |
| -> Seq Scan on tbl_erp_social_insurances r_25 (cost=0.00..1.15 rows=11 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.05..1.05 rows=2 width=16) |
| -> Seq Scan on tbl_erp_social_insurance_stop_verify_rels rsvr_25 (cost=0.00..1.05 rows=2 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 27" (cost=24.88..25.40 rows=8 width=36) |
| -> GroupAggregate (cost=24.88..25.32 rows=8 width=329) |
| Group Key: r_26.id, rvr_26.status, rsvr_26.status |
| -> Sort (cost=24.88..24.90 rows=8 width=62) |
| Sort Key: r_26.id, rvr_26.status, rsvr_26.status |
| -> Hash Left Join (cost=2.51..24.76 rows=8 width=62) |
| Hash Cond: (r_26.id = rvr_26.erp_provident_fund_id) |
| -> Hash Right Join (cost=1.21..23.35 rows=8 width=50) |
| Hash Cond: (rsvr_26.erp_provident_fund_id = r_26.id) |
| -> Seq Scan on tbl_erp_provident_fund_stop_verify_rels rsvr_26 (cost=0.00..22.12 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.11..1.11 rows=8 width=38) |
| -> Seq Scan on tbl_erp_provident_funds r_26 (cost=0.00..1.11 rows=8 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.20..1.20 rows=8 width=16) |
| -> Seq Scan on tbl_erp_provident_fund_verify_rels rvr_26 (cost=0.00..1.20 rows=8 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 28" (cost=3.61..4.02 rows=9 width=36) |
| -> HashAggregate (cost=3.61..3.93 rows=9 width=329) |
| Group Key: r_27.id, rvr_27.status, rsvr_27.status |
| -> Hash Left Join (cost=2.26..3.45 rows=9 width=62) |
| Hash Cond: (r_27.id = rsvr_27.erp_personal_tax_id) |
| -> Hash Right Join (cost=1.24..2.38 rows=9 width=50) |
| Hash Cond: (rvr_27.erp_personal_tax_id = r_27.id) |
| -> Seq Scan on tbl_erp_personal_tax_verify_rels rvr_27 (cost=0.00..1.11 rows=9 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.12..1.12 rows=9 width=38) |
| -> Seq Scan on tbl_erp_personal_taxs r_27 (cost=0.00..1.12 rows=9 width=38) |
| Filter: (status <> 0) |
| -> Hash (cost=1.01..1.01 rows=1 width=16) |
| -> Seq Scan on tbl_erp_personal_tax_stop_verify_rels rsvr_27 (cost=0.00..1.01 rows=1 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 29" (cost=3.34..3.52 rows=4 width=36) |
| -> HashAggregate (cost=3.34..3.48 rows=4 width=329) |
| Group Key: r_28.id, rvr_28.status, rsvr_28.status |
| -> Nested Loop Left Join (cost=1.11..3.27 rows=4 width=62) |
| Join Filter: (rsvr_28.erp_wage_prize_id = r_28.id) |
| -> Hash Right Join (cost=1.11..2.20 rows=4 width=50) |
| Hash Cond: (rvr_28.erp_wage_prize_id = r_28.id) |
| -> Seq Scan on tbl_erp_wage_prize_verify_rels rvr_28 (cost=0.00..1.06 rows=5 width=16) |
| Filter: (user_id = 1001) |
| -> Hash (cost=1.06..1.06 rows=4 width=38) |
| -> Seq Scan on tbl_erp_wage_prizes r_28 (cost=0.00..1.06 rows=4 width=38) |
| Filter: (status <> 0) |
| -> Materialize (cost=0.00..1.02 rows=1 width=16) |
| -> Seq Scan on tbl_erp_wage_prize_stop_verify_rels rsvr_28 (cost=0.00..1.01 rows=1 width=16) |
| Filter: (user_id = 1001) |
| -> Subquery Scan on "*SELECT* 30" (cost=3.24..3.44 rows=3 width=36) |
| -> GroupAggregate (cost=3.24..3.41 rows=3 width=329) |
| Group Key: r_29.id, rvr_29.status, rsvr_29.status |
| -> Sort (cost=3.24..3.25 rows=3 width=62) |
| Sort Key: r_29.id, rvr_29.status, rsvr_29.status |
| -> Nested Loop Left Join (cost=1.08..3.22 rows=3 width=62) |
| Join Filter: (rsvr_29.erp_profit_distribute_id = r_29.id) |
| -> Hash Left Join (cost=1.08..2.16 rows=3 width=50) |
| Hash Cond: (r_29.id = rvr_29.erp_profit_distribute_id) |
| -> Seq Scan on tbl_erp_profit_distributes r_29 (cost=0.00..1.05 rows=3 width=42) |
| Filter: (status <> 0) |
| -> Hash (cost=1.04..1.04 rows=3 width=16) |
| -> Seq Scan on tbl_erp_profit_distribute_verify_rels rvr_29 (cost=0.00..1.04 rows=3 width=16) |
| Filter: (user_id = 1001) |
| -> Materialize (cost=0.00..1.02 rows=1 width=16) |
| -> Seq Scan on tbl_erp_profit_distribute_stop_verify_rels rsvr_29 (cost=0.00..1.01 rows=1 width=16) |
| Filter: (user_id = 1001) |