QUERY PLAN
Aggregate (cost=2025.22..2025.23 rows=1 width=8)
-> Append (cost=29.71..1998.45 rows=10710 width=0)
-> Subquery Scan on sub (cost=29.71..30.29 rows=29 width=0)
-> HashAggregate (cost=29.71..30.00 rows=29 width=305)
Group Key: r.id, rvr.status, rsvr.status
-> Hash Left Join (cost=26.38..29.50 rows=29 width=12)
Hash Cond: (r.id = rsvr.erp_purchase_inbound_id)
Filter: ((rvr.user_id = 1001) OR (rsvr.user_id = 1001))
-> Hash Right Join (cost=4.19..6.95 rows=87 width=12)
Hash Cond: (rvr.erp_purchase_inbound_id = r.id)
-> Seq Scan on tbl_erp_purchase_inbound_verify_rels rvr (cost=0.00..2.65 rows=44 width=12)
Filter: (user_id = 1001)
-> Hash (cost=3.10..3.10 rows=87 width=4)
-> Seq Scan on tbl_erp_purchase_inbounds r (cost=0.00..3.10 rows=87 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_purchase_inbound_stop_verify_rels rsvr (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 2" (cost=123.33..142.31 rows=949 width=0)
-> HashAggregate (cost=123.33..132.82 rows=949 width=309)
Group Key: r_1.id, rvr_1.status, rsvr_1.status, rcvr.status
-> Hash Left Join (cost=25.23..113.84 rows=949 width=16)
Hash Cond: (r_1.id = rsvr_1.erp_purchase_order_id)
Filter: ((rvr_1.user_id = 1001) OR (rsvr_1.user_id = 1001) OR (rcvr.user_id = 1001))
-> Hash Left Join (cost=24.16..105.05 rows=2055 width=20)
Hash Cond: (r_1.id = rcvr.erp_purchase_order_id)
-> Hash Left Join (cost=1.98..75.11 rows=2055 width=12)
Hash Cond: (r_1.id = rvr_1.erp_purchase_order_id)
-> Seq Scan on tbl_erp_purchase_orders r_1 (cost=0.00..62.69 rows=2055 width=4)
Filter: (status <> 0)
-> Hash (cost=1.76..1.76 rows=17 width=12)
-> Seq Scan on tbl_erp_purchase_order_verify_rels rvr_1 (cost=0.00..1.76 rows=17 width=12)
Filter: (user_id = 1001)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_purchase_order_cancel_verify_rels rcvr (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.05..1.05 rows=1 width=12)
-> Seq Scan on tbl_erp_purchase_order_stop_verify_rels rsvr_1 (cost=0.00..1.05 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 3" (cost=58.70..58.74 rows=2 width=0)
-> Group (cost=58.70..58.72 rows=2 width=305)
Group Key: r_2.id, rvr_2.status, rsvr_2.status
-> Sort (cost=58.70..58.71 rows=2 width=12)
Sort Key: r_2.id, rvr_2.status, rsvr_2.status
-> Hash Left Join (cost=44.38..58.69 rows=2 width=12)
Hash Cond: (r_2.id = rsvr_2.erp_purchase_return_id)
Filter: ((rvr_2.user_id = 1001) OR (rsvr_2.user_id = 1001))
-> Hash Left Join (cost=22.19..35.65 rows=209 width=12)
Hash Cond: (r_2.id = rvr_2.erp_purchase_return_id)
-> Seq Scan on tbl_erp_purchase_returns r_2 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_purchase_return_verify_rels rvr_2 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_purchase_return_stop_verify_rels rsvr_2 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 4" (cost=24.47..24.49 rows=1 width=0)
-> Group (cost=24.47..24.48 rows=1 width=305)
Group Key: r_3.id, rvr_3.status, rsvr_3.status
-> Sort (cost=24.47..24.48 rows=1 width=12)
Sort Key: r_3.id, rvr_3.status, rsvr_3.status
-> Nested Loop Left Join (cost=0.00..24.46 rows=1 width=12)
Join Filter: (rvr_3.erp_inventory_lost_id = r_3.id)
Filter: ((rvr_3.user_id = 1001) OR (rsvr_3.user_id = 1001))
-> Nested Loop Left Join (cost=0.00..23.32 rows=3 width=12)
Join Filter: (rsvr_3.erp_inventory_lost_id = r_3.id)
-> Seq Scan on tbl_erp_inventory_losts r_3 (cost=0.00..1.04 rows=2 width=4)
Filter: (status <> 0)
-> Materialize (cost=0.00..22.15 rows=5 width=12)
-> Seq Scan on tbl_erp_inventory_lost_stop_verify_rels rsvr_3 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Materialize (cost=0.00..1.08 rows=1 width=12)
-> Seq Scan on tbl_erp_inventory_lost_verify_rels rvr_3 (cost=0.00..1.07 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 5" (cost=24.31..24.33 rows=1 width=0)
-> Group (cost=24.31..24.32 rows=1 width=305)
Group Key: r_4.id, rvr_4.status, rsvr_4.status
-> Sort (cost=24.31..24.31 rows=1 width=12)
Sort Key: r_4.id, rvr_4.status, rsvr_4.status
-> Nested Loop Left Join (cost=0.00..24.30 rows=1 width=12)
Join Filter: (rsvr_4.erp_inventory_build_id = r_4.id)
Filter: ((rvr_4.user_id = 1001) OR (rsvr_4.user_id = 1001))
-> Nested Loop Left Join (cost=0.00..2.09 rows=1 width=12)
Join Filter: (rvr_4.erp_inventory_build_id = r_4.id)
-> Seq Scan on tbl_erp_inventory_builds r_4 (cost=0.00..1.02 rows=1 width=4)
Filter: (status <> 0)
-> Seq Scan on tbl_erp_inventory_build_verify_rels rvr_4 (cost=0.00..1.05 rows=1 width=12)
Filter: (user_id = 1001)
-> Seq Scan on tbl_erp_inventory_build_stop_verify_rels rsvr_4 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 6" (cost=88.97..120.65 rows=1584 width=0)
-> HashAggregate (cost=88.97..104.81 rows=1584 width=309)
Group Key: r_5.id, rvr_5.status, rsvr_5.status, rcvr_1.status
-> Hash Left Join (cost=3.46..73.13 rows=1584 width=16)
Hash Cond: (r_5.id = rcvr_1.erp_sales_order_id)
Filter: ((rvr_5.user_id = 1001) OR (rsvr_5.user_id = 1001) OR (rcvr_1.user_id = 1001))
-> Hash Left Join (cost=2.44..66.15 rows=1584 width=20)
Hash Cond: (r_5.id = rsvr_5.erp_sales_order_id)
-> Hash Left Join (cost=1.30..59.06 rows=1584 width=12)
Hash Cond: (r_5.id = rvr_5.erp_sales_order_id)
-> Seq Scan on tbl_erp_sales_orders r_5 (cost=0.00..51.81 rows=1584 width=4)
Filter: (status <> 0)
-> Hash (cost=1.29..1.29 rows=1 width=12)
-> Seq Scan on tbl_erp_sales_order_verify_rels rvr_5 (cost=0.00..1.29 rows=1 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.12..1.12 rows=1 width=12)
-> Seq Scan on tbl_erp_sales_order_stop_verify_rels rsvr_5 (cost=0.00..1.12 rows=1 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.01..1.01 rows=1 width=12)
-> Seq Scan on tbl_erp_sales_order_cancel_verify_rels rcvr_1 (cost=0.00..1.01 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 7" (cost=26.46..26.64 rows=9 width=0)
-> Group (cost=26.46..26.55 rows=9 width=305)
Group Key: r_6.id, rvr_6.status, rsvr_6.status
-> Sort (cost=26.46..26.48 rows=9 width=12)
Sort Key: r_6.id, rvr_6.status, rsvr_6.status
-> Hash Right Join (cost=4.16..26.32 rows=9 width=12)
Hash Cond: (rsvr_6.erp_sales_outbound_id = r_6.id)
Filter: ((rvr_6.user_id = 1001) OR (rsvr_6.user_id = 1001))
-> Seq Scan on tbl_erp_sales_outbound_stop_verify_rels rsvr_6 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=3.82..3.82 rows=27 width=12)
-> Hash Right Join (cost=1.69..3.82 rows=27 width=12)
Hash Cond: (rvr_6.erp_sales_outbound_id = r_6.id)
-> Seq Scan on tbl_erp_sales_outbound_verify_rels rvr_6 (cost=0.00..2.05 rows=28 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.35..1.35 rows=27 width=4)
-> Seq Scan on tbl_erp_sales_outbounds r_6 (cost=0.00..1.35 rows=27 width=4)
Filter: (status <> 0)
-> Subquery Scan on "*SELECT* 8" (cost=58.70..58.74 rows=2 width=0)
-> Group (cost=58.70..58.72 rows=2 width=305)
Group Key: r_7.id, rvr_7.status, rsvr_7.status
-> Sort (cost=58.70..58.71 rows=2 width=12)
Sort Key: r_7.id, rvr_7.status, rsvr_7.status
-> Hash Left Join (cost=44.38..58.69 rows=2 width=12)
Hash Cond: (r_7.id = rsvr_7.erp_sales_return_id)
Filter: ((rvr_7.user_id = 1001) OR (rsvr_7.user_id = 1001))
-> Hash Left Join (cost=22.19..35.65 rows=209 width=12)
Hash Cond: (r_7.id = rvr_7.erp_sales_return_id)
-> Seq Scan on tbl_erp_sales_returns r_7 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_sales_return_verify_rels rvr_7 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_sales_return_stop_verify_rels rsvr_7 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 9" (cost=3.44..3.48 rows=2 width=0)
-> Group (cost=3.44..3.46 rows=2 width=305)
Group Key: r_8.id, rvr_8.status, rsvr_8.status
-> Sort (cost=3.44..3.44 rows=2 width=12)
Sort Key: r_8.id, rvr_8.status, rsvr_8.status
-> Hash Left Join (cost=2.29..3.43 rows=2 width=12)
Hash Cond: (r_8.id = rsvr_8.erp_purchase_gift_id)
Filter: ((rvr_8.user_id = 1001) OR (rsvr_8.user_id = 1001))
-> Hash Left Join (cost=1.24..2.34 rows=5 width=12)
Hash Cond: (r_8.id = rvr_8.erp_purchase_gift_id)
-> Seq Scan on tbl_erp_purchase_gifts r_8 (cost=0.00..1.07 rows=5 width=4)
Filter: (status <> 0)
-> Hash (cost=1.23..1.23 rows=1 width=12)
-> Seq Scan on tbl_erp_purchase_gift_verify_rels rvr_8 (cost=0.00..1.23 rows=1 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.04..1.04 rows=1 width=12)
-> Seq Scan on tbl_erp_purchase_gift_stop_verify_rels rsvr_8 (cost=0.00..1.04 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 10" (cost=4.44..4.64 rows=10 width=0)
-> HashAggregate (cost=4.44..4.54 rows=10 width=305)
Group Key: r_9.id, rvr_9.status, rsvr_9.status
-> Hash Left Join (cost=2.51..4.37 rows=10 width=12)
Hash Cond: (r_9.id = rsvr_9.erp_sales_gift_id)
Filter: ((rvr_9.user_id = 1001) OR (rsvr_9.user_id = 1001))
-> Hash Right Join (cost=1.46..3.24 rows=18 width=12)
Hash Cond: (rvr_9.erp_sales_gift_id = r_9.id)
-> Seq Scan on tbl_erp_sales_gift_verify_rels rvr_9 (cost=0.00..1.71 rows=19 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.24..1.24 rows=18 width=4)
-> Seq Scan on tbl_erp_sales_gifts r_9 (cost=0.00..1.24 rows=18 width=4)
Filter: (status <> 0)
-> Hash (cost=1.04..1.04 rows=1 width=12)
-> Seq Scan on tbl_erp_sales_gift_stop_verify_rels rsvr_9 (cost=0.00..1.04 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 11" (cost=80.15..91.19 rows=552 width=0)
-> HashAggregate (cost=80.15..85.67 rows=552 width=305)
Group Key: r_10.id, rvr_10.status, rsvr_10.status
-> Hash Left Join (cost=2.49..76.01 rows=552 width=12)
Hash Cond: (r_10.id = rsvr_10.erp_collect_ticket_id)
Filter: ((rvr_10.user_id = 1001) OR (rsvr_10.user_id = 1001))
-> Hash Left Join (cost=1.43..67.34 rows=2025 width=12)
Hash Cond: (r_10.id = rvr_10.erp_collect_ticket_id)
-> Seq Scan on tbl_erp_collect_tickets r_10 (cost=0.00..58.31 rows=2025 width=4)
Filter: (status <> 0)
-> Hash (cost=1.41..1.41 rows=1 width=12)
-> Seq Scan on tbl_erp_collect_ticket_verify_rels rvr_10 (cost=0.00..1.41 rows=1 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.05..1.05 rows=1 width=12)
-> Seq Scan on tbl_erp_collect_ticket_stop_verify_rels rsvr_10 (cost=0.00..1.05 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 12" (cost=100.13..143.83 rows=2185 width=0)
-> HashAggregate (cost=100.13..121.98 rows=2185 width=305)
Group Key: r_11.id, rvr_11.status, rsvr_11.status
-> Hash Left Join (cost=3.46..83.74 rows=2185 width=12)
Hash Cond: (r_11.id = rsvr_11.erp_payment_ticket_id)
Filter: ((rvr_11.user_id = 1001) OR (rsvr_11.user_id = 1001))
-> Hash Left Join (cost=2.40..74.47 rows=2185 width=12)
Hash Cond: (r_11.id = rvr_11.erp_payment_ticket_id)
-> Seq Scan on tbl_erp_payment_tickets r_11 (cost=0.00..63.31 rows=2185 width=4)
Filter: (status <> 0)
-> Hash (cost=1.70..1.70 rows=56 width=12)
-> Seq Scan on tbl_erp_payment_ticket_verify_rels rvr_11 (cost=0.00..1.70 rows=56 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.05..1.05 rows=1 width=12)
-> Seq Scan on tbl_erp_payment_ticket_stop_verify_rels rsvr_11 (cost=0.00..1.05 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 13" (cost=24.87..24.89 rows=1 width=0)
-> Group (cost=24.87..24.88 rows=1 width=305)
Group Key: r_12.id, rvr_12.status, rsvr_12.status
-> Sort (cost=24.87..24.87 rows=1 width=12)
Sort Key: r_12.id, rvr_12.status, rsvr_12.status
-> Nested Loop Left Join (cost=1.31..24.86 rows=1 width=12)
Join Filter: (rvr_12.erp_cost_ticket_id = r_12.id)
Filter: ((rvr_12.user_id = 1001) OR (rsvr_12.user_id = 1001))
-> Hash Right Join (cost=1.31..23.45 rows=12 width=12)
Hash Cond: (rsvr_12.erp_cost_ticket_id = r_12.id)
-> Seq Scan on tbl_erp_cost_ticket_stop_verify_rels rsvr_12 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.16..1.16 rows=12 width=4)
-> Seq Scan on tbl_erp_cost_tickets r_12 (cost=0.00..1.16 rows=12 width=4)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.17 rows=1 width=12)
-> Seq Scan on tbl_erp_cost_ticket_verify_rels rvr_12 (cost=0.00..1.16 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 14" (cost=24.46..24.49 rows=1 width=0)
-> Group (cost=24.46..24.48 rows=1 width=305)
Group Key: r_13.id, rvr_13.status, rsvr_13.status
-> Sort (cost=24.46..24.47 rows=1 width=12)
Sort Key: r_13.id, rvr_13.status, rsvr_13.status
-> Nested Loop Left Join (cost=1.14..24.45 rows=1 width=12)
Join Filter: (rvr_13.erp_other_income_ticket_id = r_13.id)
Filter: ((rvr_13.user_id = 1001) OR (rsvr_13.user_id = 1001))
-> Hash Right Join (cost=1.14..23.28 rows=5 width=12)
Hash Cond: (rsvr_13.erp_other_income_ticket_id = r_13.id)
-> Seq Scan on tbl_erp_other_income_ticket_stop_verify_rels rsvr_13 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.07..1.07 rows=5 width=4)
-> Seq Scan on tbl_erp_other_income_tickets r_13 (cost=0.00..1.07 rows=5 width=4)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.08 rows=1 width=12)
-> Seq Scan on tbl_erp_other_income_ticket_verify_rels rvr_13 (cost=0.00..1.07 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 15" (cost=24.29..24.31 rows=1 width=0)
-> Group (cost=24.29..24.30 rows=1 width=305)
Group Key: r_14.id, rvr_14.status, rsvr_14.status
-> Sort (cost=24.29..24.29 rows=1 width=12)
Sort Key: r_14.id, rvr_14.status, rsvr_14.status
-> Nested Loop Left Join (cost=0.00..24.27 rows=1 width=12)
Join Filter: (rsvr_14.erp_cost_convert_ticket_id = r_14.id)
Filter: ((rvr_14.user_id = 1001) OR (rsvr_14.user_id = 1001))
-> Nested Loop Left Join (cost=0.00..2.06 rows=1 width=12)
Join Filter: (rvr_14.erp_cost_convert_ticket_id = r_14.id)
-> Seq Scan on tbl_erp_cost_convert_tickets r_14 (cost=0.00..1.02 rows=1 width=4)
Filter: (status <> 0)
-> Seq Scan on tbl_erp_cost_convert_ticket_verify_rels rvr_14 (cost=0.00..1.02 rows=1 width=12)
Filter: (user_id = 1001)
-> Seq Scan on tbl_erp_cost_convert_ticket_stop_verify_rels rsvr_14 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 16" (cost=3.41..3.47 rows=3 width=0)
-> Group (cost=3.41..3.44 rows=3 width=305)
Group Key: r_15.id, rvr_15.status, rsvr_15.status
-> Sort (cost=3.41..3.41 rows=3 width=12)
Sort Key: r_15.id, rvr_15.status, rsvr_15.status
-> Hash Left Join (cost=2.23..3.38 rows=3 width=12)
Hash Cond: (r_15.id = rsvr_15.erp_bank_transfer_ticket_id)
Filter: ((rvr_15.user_id = 1001) OR (rsvr_15.user_id = 1001))
-> Hash Left Join (cost=1.19..2.31 rows=6 width=12)
Hash Cond: (r_15.id = rvr_15.erp_bank_transfer_ticket_id)
-> Seq Scan on tbl_erp_bank_transfer_tickets r_15 (cost=0.00..1.09 rows=6 width=4)
Filter: (status <> 0)
-> Hash (cost=1.18..1.18 rows=1 width=12)
-> Seq Scan on tbl_erp_bank_transfer_ticket_verify_rels rvr_15 (cost=0.00..1.18 rows=1 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.02..1.02 rows=1 width=12)
-> Seq Scan on tbl_erp_bank_transfer_ticket_stop_verify_rels rsvr_15 (cost=0.00..1.02 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 17" (cost=788.95..895.63 rows=5334 width=0)
-> HashAggregate (cost=788.95..842.29 rows=5334 width=305)
Group Key: r_16.id, rvr_16.status, rsvr_16.status
-> Hash Left Join (cost=351.67..748.94 rows=5334 width=12)
Hash Cond: (r_16.id = rsvr_16.erp_cash_cost_ticket_id)
Filter: ((rvr_16.user_id = 1001) OR (rsvr_16.user_id = 1001))
-> Hash Right Join (cost=350.64..719.00 rows=7705 width=12)
Hash Cond: (rvr_16.erp_cash_cost_ticket_id = r_16.id)
-> Seq Scan on tbl_erp_cash_cost_ticket_verify_rels rvr_16 (cost=0.00..348.75 rows=7466 width=12)
Filter: (user_id = 1001)
-> Hash (cost=254.32..254.32 rows=7705 width=4)
-> Seq Scan on tbl_erp_cash_cost_tickets r_16 (cost=0.00..254.32 rows=7705 width=4)
Filter: (status <> 0)
-> Hash (cost=1.02..1.02 rows=1 width=12)
-> Seq Scan on tbl_erp_cash_cost_ticket_stop_verify_rels rsvr_16 (cost=0.00..1.02 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 18" (cost=57.88..57.92 rows=2 width=0)
-> Group (cost=57.88..57.90 rows=2 width=305)
Group Key: r_17.id, rvr_17.status, rsvr_17.status
-> Sort (cost=57.88..57.88 rows=2 width=12)
Sort Key: r_17.id, rvr_17.status, rsvr_17.status
-> Hash Left Join (cost=44.38..57.87 rows=2 width=12)
Hash Cond: (r_17.id = rsvr_17.erp_advance_payment_ticket_id)
Filter: ((rvr_17.user_id = 1001) OR (rsvr_17.user_id = 1001))
-> Hash Left Join (cost=22.19..34.99 rows=169 width=12)
Hash Cond: (r_17.id = rvr_17.erp_advance_payment_ticket_id)
-> Seq Scan on tbl_erp_advance_payment_tickets r_17 (cost=0.00..12.12 rows=169 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_advance_payment_ticket_verify_rels rvr_17 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_advance_payment_ticket_stop_verify_rels rsvr_17 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 19" (cost=26.77..26.99 rows=11 width=0)
-> Group (cost=26.77..26.88 rows=11 width=305)
Group Key: r_18.id, rvr_18.status, rsvr_18.status
-> Sort (cost=26.77..26.80 rows=11 width=12)
Sort Key: r_18.id, rvr_18.status, rsvr_18.status
-> Hash Left Join (cost=23.27..26.58 rows=11 width=12)
Hash Cond: (r_18.id = rvr_18.erp_other_payment_ticket_id)
Filter: ((rvr_18.user_id = 1001) OR (rsvr_18.user_id = 1001))
-> Hash Left Join (cost=22.19..25.24 rows=63 width=12)
Hash Cond: (r_18.id = rsvr_18.erp_other_payment_ticket_id)
-> Seq Scan on tbl_erp_other_payment_tickets r_18 (cost=0.00..2.80 rows=63 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_other_payment_ticket_stop_verify_rels rsvr_18 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.07..1.07 rows=1 width=12)
-> Seq Scan on tbl_erp_other_payment_ticket_verify_rels rvr_18 (cost=0.00..1.07 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 20" (cost=3.70..4.02 rows=16 width=0)
-> HashAggregate (cost=3.70..3.86 rows=16 width=305)
Group Key: r_19.id, rvr_19.status, rsvr_19.status
-> Hash Left Join (cost=2.23..3.58 rows=16 width=12)
Hash Cond: (r_19.id = rsvr_19.erp_other_collect_ticket_id)
Filter: ((rvr_19.user_id = 1001) OR (rsvr_19.user_id = 1001))
-> Hash Left Join (cost=1.20..2.48 rows=16 width=12)
Hash Cond: (r_19.id = rvr_19.erp_other_collect_ticket_id)
-> Seq Scan on tbl_erp_other_collect_tickets r_19 (cost=0.00..1.21 rows=16 width=4)
Filter: (status <> 0)
-> Hash (cost=1.19..1.19 rows=1 width=12)
-> Seq Scan on tbl_erp_other_collect_ticket_verify_rels rvr_19 (cost=0.00..1.19 rows=1 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.01..1.01 rows=1 width=12)
-> Seq Scan on tbl_erp_other_collect_ticket_stop_verify_rels rsvr_19 (cost=0.00..1.01 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 21" (cost=26.15..26.28 rows=6 width=0)
-> Group (cost=26.15..26.22 rows=6 width=309)
Group Key: r_20.id, rvr_20.status, rsvr_20.status, rcvr_2.status
-> Sort (cost=26.15..26.16 rows=6 width=16)
Sort Key: r_20.id, rvr_20.status, rsvr_20.status, rcvr_2.status
-> Nested Loop Left Join (cost=1.29..26.07 rows=6 width=16)
Join Filter: (rvr_20.erp_purchase_cost_id = r_20.id)
Filter: ((rvr_20.user_id = 1001) OR (rsvr_20.user_id = 1001) OR (rcvr_2.user_id = 1001))
-> Nested Loop Left Join (cost=1.29..24.62 rows=11 width=20)
Join Filter: (rsvr_20.erp_purchase_cost_id = r_20.id)
-> Hash Right Join (cost=1.29..23.43 rows=11 width=12)
Hash Cond: (rcvr_2.erp_purchase_cost_id = r_20.id)
-> Seq Scan on tbl_erp_purchase_cost_cancel_verify_rels rcvr_2 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=1.15..1.15 rows=11 width=4)
-> Seq Scan on tbl_erp_purchase_costs r_20 (cost=0.00..1.15 rows=11 width=4)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.03 rows=1 width=12)
-> Seq Scan on tbl_erp_purchase_cost_stop_verify_rels rsvr_20 (cost=0.00..1.02 rows=1 width=12)
Filter: (user_id = 1001)
-> Materialize (cost=0.00..1.20 rows=1 width=12)
-> Seq Scan on tbl_erp_purchase_cost_verify_rels rvr_20 (cost=0.00..1.20 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 22" (cost=24.29..24.31 rows=1 width=0)
-> Group (cost=24.29..24.30 rows=1 width=305)
Group Key: r_21.id, rvr_21.status, rsvr_21.status
-> Sort (cost=24.29..24.29 rows=1 width=12)
Sort Key: r_21.id, rvr_21.status, rsvr_21.status
-> Nested Loop Left Join (cost=0.00..24.27 rows=1 width=12)
Join Filter: (rsvr_21.erp_wage_ticket_id = r_21.id)
Filter: ((rvr_21.user_id = 1001) OR (rsvr_21.user_id = 1001))
-> Nested Loop Left Join (cost=0.00..2.06 rows=1 width=12)
Join Filter: (rvr_21.erp_wage_ticket_id = r_21.id)
-> Seq Scan on tbl_erp_wage_tickets r_21 (cost=0.00..1.02 rows=1 width=4)
Filter: (status <> 0)
-> Seq Scan on tbl_erp_wage_ticket_verify_rels rvr_21 (cost=0.00..1.02 rows=1 width=12)
Filter: (user_id = 1001)
-> Seq Scan on tbl_erp_wage_ticket_stop_verify_rels rsvr_21 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 23" (cost=24.31..24.33 rows=1 width=0)
-> Group (cost=24.31..24.32 rows=1 width=305)
Group Key: r_22.id, rvr_22.status, rsvr_22.status
-> Sort (cost=24.31..24.31 rows=1 width=12)
Sort Key: r_22.id, rvr_22.status, rsvr_22.status
-> Nested Loop Left Join (cost=0.00..24.30 rows=1 width=12)
Join Filter: (rsvr_22.erp_social_insurance_id = r_22.id)
Filter: ((rvr_22.user_id = 1001) OR (rsvr_22.user_id = 1001))
-> Nested Loop Left Join (cost=0.00..2.09 rows=1 width=12)
Join Filter: (rvr_22.erp_social_insurance_id = r_22.id)
-> Seq Scan on tbl_erp_social_insurances r_22 (cost=0.00..1.02 rows=1 width=4)
Filter: (status <> 0)
-> Seq Scan on tbl_erp_social_insurance_verify_rels rvr_22 (cost=0.00..1.05 rows=1 width=12)
Filter: (user_id = 1001)
-> Seq Scan on tbl_erp_social_insurance_stop_verify_rels rsvr_22 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 24" (cost=24.29..24.35 rows=3 width=0)
-> Group (cost=24.29..24.32 rows=3 width=305)
Group Key: r_23.id, rvr_23.status, rsvr_23.status
-> Sort (cost=24.29..24.29 rows=3 width=12)
Sort Key: r_23.id, rvr_23.status, rsvr_23.status
-> Nested Loop Left Join (cost=0.00..24.26 rows=3 width=12)
Join Filter: (rsvr_23.erp_provident_fund_id = r_23.id)
Filter: ((rvr_23.user_id = 1001) OR (rsvr_23.user_id = 1001))
-> Nested Loop Left Join (cost=0.00..2.05 rows=1 width=12)
Join Filter: (rvr_23.erp_provident_fund_id = r_23.id)
-> Seq Scan on tbl_erp_provident_funds r_23 (cost=0.00..1.01 rows=1 width=4)
Filter: (status <> 0)
-> Seq Scan on tbl_erp_provident_fund_verify_rels rvr_23 (cost=0.00..1.02 rows=1 width=12)
Filter: (user_id = 1001)
-> Seq Scan on tbl_erp_provident_fund_stop_verify_rels rsvr_23 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 25" (cost=24.29..24.31 rows=1 width=0)
-> Group (cost=24.29..24.30 rows=1 width=305)
Group Key: r_24.id, rvr_24.status, rsvr_24.status
-> Sort (cost=24.29..24.29 rows=1 width=12)
Sort Key: r_24.id, rvr_24.status, rsvr_24.status
-> Nested Loop Left Join (cost=0.00..24.27 rows=1 width=12)
Join Filter: (rsvr_24.erp_personal_tax_id = r_24.id)
Filter: ((rvr_24.user_id = 1001) OR (rsvr_24.user_id = 1001))
-> Nested Loop Left Join (cost=0.00..2.06 rows=1 width=12)
Join Filter: (rvr_24.erp_personal_tax_id = r_24.id)
-> Seq Scan on tbl_erp_personal_taxs r_24 (cost=0.00..1.02 rows=1 width=4)
Filter: (status <> 0)
-> Seq Scan on tbl_erp_personal_tax_verify_rels rvr_24 (cost=0.00..1.02 rows=1 width=12)
Filter: (user_id = 1001)
-> Seq Scan on tbl_erp_personal_tax_stop_verify_rels rsvr_24 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 26" (cost=24.43..24.46 rows=1 width=0)
-> Group (cost=24.43..24.45 rows=1 width=305)
Group Key: r_25.id, rvr_25.status, rsvr_25.status
-> Sort (cost=24.43..24.44 rows=1 width=12)
Sort Key: r_25.id, rvr_25.status, rsvr_25.status
-> Nested Loop Left Join (cost=0.00..24.42 rows=1 width=12)
Join Filter: (rvr_25.erp_wage_prize_id = r_25.id)
Filter: ((rvr_25.user_id = 1001) OR (rsvr_25.user_id = 1001))
-> Nested Loop Left Join (cost=0.00..23.32 rows=3 width=12)
Join Filter: (rsvr_25.erp_wage_prize_id = r_25.id)
-> Seq Scan on tbl_erp_wage_prizes r_25 (cost=0.00..1.04 rows=2 width=4)
Filter: (status <> 0)
-> Materialize (cost=0.00..22.15 rows=5 width=12)
-> Seq Scan on tbl_erp_wage_prize_stop_verify_rels rsvr_25 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Materialize (cost=0.00..1.04 rows=1 width=12)
-> Seq Scan on tbl_erp_wage_prize_verify_rels rvr_25 (cost=0.00..1.04 rows=1 width=12)
Filter: (user_id = 1001)
-> Subquery Scan on "*SELECT* 27" (cost=59.30..59.36 rows=2 width=0)
-> GroupAggregate (cost=59.30..59.34 rows=2 width=305)
Group Key: r_26.id, rvr_26.status, rsvr_26.status
-> Sort (cost=59.30..59.31 rows=2 width=12)
Sort Key: r_26.id, rvr_26.status, rsvr_26.status
-> Hash Left Join (cost=44.38..59.29 rows=2 width=12)
Hash Cond: (r_26.id = rsvr_26.erp_profit_distribute_id)
Filter: ((rvr_26.user_id = 1001) OR (rsvr_26.user_id = 1001))
-> Hash Left Join (cost=22.19..36.13 rows=239 width=12)
Hash Cond: (r_26.id = rvr_26.erp_profit_distribute_id)
-> Seq Scan on tbl_erp_profit_distributes r_26 (cost=0.00..13.00 rows=239 width=8)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_profit_distribute_verify_rels rvr_26 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)
-> Hash (cost=22.12..22.12 rows=5 width=12)
-> Seq Scan on tbl_erp_profit_distribute_stop_verify_rels rsvr_26 (cost=0.00..22.12 rows=5 width=12)
Filter: (user_id = 1001)