QUERY PLAN
Limit (cost=3537.38..3537.43 rows=20 width=167)
-> Sort (cost=3537.38..3580.03 rows=17060 width=167)
Sort Key: (CASE WHEN ((sub.verify_status = 0) OR (sub.stop_verify_status = 0) OR (sub.cancel_verify_status = 0)) THEN 1 ELSE 2 END), sub.created_at DESC
-> Result (cost=33.18..3083.41 rows=17060 width=167)
-> Append (cost=33.18..2784.86 rows=17060 width=162)
-> Subquery Scan on sub (cost=33.18..37.26 rows=96 width=156)
-> HashAggregate (cost=33.18..36.30 rows=96 width=164)
Group Key: r.id, rvr.status, rsvr.status
-> Hash Left Join (cost=27.50..32.46 rows=96 width=81)
Hash Cond: (r.id = rsvr.erp_purchase_inbound_id)
-> Hash Left Join (cost=5.31..9.90 rows=96 width=77)
Hash Cond: (r.id = rvr.erp_purchase_inbound_id)
-> Seq Scan on tbl_erp_purchase_inbounds r (cost=0.00..4.21 rows=96 width=73)
Filter: (status <> 0)
-> Hash (cost=5.30..5.30 rows=1 width=8)
-> Seq Scan on tbl_erp_purchase_inbound_verify_rels rvr (cost=0.00..5.30 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_inbound_stop_verify_rels rsvr (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 2" (cost=140.08..250.38 rows=2206 width=188)
-> HashAggregate (cost=140.08..228.32 rows=2206 width=200)
Group Key: r_1.id, rvr_1.status, rsvr_1.status, rcvr.status
-> Hash Left Join (cost=25.56..118.02 rows=2206 width=121)
Hash Cond: (r_1.id = rcvr.erp_purchase_order_id)
-> Hash Left Join (cost=3.38..87.52 rows=2206 width=117)
Hash Cond: (r_1.id = rsvr_1.erp_purchase_order_id)
-> Hash Left Join (cost=2.29..78.14 rows=2206 width=113)
Hash Cond: (r_1.id = rvr_1.erp_purchase_order_id)
-> Seq Scan on tbl_erp_purchase_orders r_1 (cost=0.00..67.58 rows=2206 width=109)
Filter: (status <> 0)
-> Hash (cost=2.28..2.28 rows=1 width=8)
-> Seq Scan on tbl_erp_purchase_order_verify_rels rvr_1 (cost=0.00..2.28 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.07..1.07 rows=1 width=8)
-> Seq Scan on tbl_erp_purchase_order_stop_verify_rels rsvr_1 (cost=0.00..1.07 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_order_cancel_verify_rels rcvr (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 3" (cost=60.24..69.12 rows=209 width=297)
-> HashAggregate (cost=60.24..67.03 rows=209 width=305)
Group Key: r_2.id, rvr_2.status, rsvr_2.status
-> Hash Left Join (cost=44.38..58.67 rows=209 width=222)
Hash Cond: (r_2.id = rsvr_2.erp_purchase_return_id)
-> Hash Left Join (cost=22.19..35.65 rows=209 width=218)
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=214)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_return_verify_rels rvr_2 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_return_stop_verify_rels rsvr_2 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 4" (cost=24.46..24.58 rows=3 width=297)
-> Group (cost=24.46..24.55 rows=3 width=305)
Group Key: r_3.id, rvr_3.status, rsvr_3.status
-> Sort (cost=24.46..24.46 rows=3 width=218)
Sort Key: r_3.id, rvr_3.status, rsvr_3.status
-> Nested Loop Left Join (cost=0.00..24.43 rows=3 width=218)
Join Filter: (rsvr_3.erp_inventory_lost_id = r_3.id)
-> Nested Loop Left Join (cost=0.00..2.14 rows=2 width=214)
Join Filter: (rvr_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=210)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.08 rows=1 width=8)
-> Seq Scan on tbl_erp_inventory_lost_verify_rels rvr_3 (cost=0.00..1.07 rows=1 width=8)
Filter: (user_id = 5064)
-> Materialize (cost=0.00..22.15 rows=5 width=8)
-> Seq Scan on tbl_erp_inventory_lost_stop_verify_rels rsvr_3 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 5" (cost=24.29..24.37 rows=2 width=297)
-> Group (cost=24.29..24.35 rows=2 width=305)
Group Key: r_4.id, rvr_4.status, rsvr_4.status
-> Sort (cost=24.29..24.29 rows=2 width=218)
Sort Key: r_4.id, rvr_4.status, rsvr_4.status
-> Nested Loop Left Join (cost=0.00..24.27 rows=2 width=218)
Join Filter: (rsvr_4.erp_inventory_build_id = r_4.id)
-> Nested Loop Left Join (cost=0.00..2.09 rows=1 width=214)
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=210)
Filter: (status <> 0)
-> Seq Scan on tbl_erp_inventory_build_verify_rels rvr_4 (cost=0.00..1.05 rows=1 width=8)
Filter: (user_id = 5064)
-> Seq Scan on tbl_erp_inventory_build_stop_verify_rels rsvr_4 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 6" (cost=114.41..195.21 rows=1616 width=197)
-> HashAggregate (cost=114.41..179.05 rows=1616 width=209)
Group Key: r_5.id, rvr_5.status, rsvr_5.status, rcvr_1.status
-> Hash Left Join (cost=3.84..98.25 rows=1616 width=130)
Hash Cond: (r_5.id = rcvr_1.erp_sales_order_id)
-> Hash Left Join (cost=2.81..91.15 rows=1616 width=126)
Hash Cond: (r_5.id = rsvr_5.erp_sales_order_id)
-> Hash Left Join (cost=1.64..83.91 rows=1616 width=122)
Hash Cond: (r_5.id = rvr_5.erp_sales_order_id)
-> Seq Scan on tbl_erp_sales_orders r_5 (cost=0.00..76.20 rows=1616 width=118)
Filter: (status <> 0)
-> Hash (cost=1.62..1.62 rows=1 width=8)
-> Seq Scan on tbl_erp_sales_order_verify_rels rvr_5 (cost=0.00..1.62 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.16..1.16 rows=1 width=8)
-> Seq Scan on tbl_erp_sales_order_stop_verify_rels rsvr_5 (cost=0.00..1.16 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.01..1.01 rows=1 width=8)
-> Seq Scan on tbl_erp_sales_order_cancel_verify_rels rcvr_1 (cost=0.00..1.01 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 7" (cost=31.12..33.92 rows=66 width=185)
-> HashAggregate (cost=31.12..33.27 rows=66 width=193)
Group Key: r_6.id, rvr_6.status, rsvr_6.status
-> Hash Left Join (cost=26.26..30.62 rows=66 width=110)
Hash Cond: (r_6.id = rsvr_6.erp_sales_outbound_id)
-> Hash Left Join (cost=4.08..8.17 rows=66 width=106)
Hash Cond: (r_6.id = rvr_6.erp_sales_outbound_id)
-> Seq Scan on tbl_erp_sales_outbounds r_6 (cost=0.00..3.84 rows=66 width=102)
Filter: (status <> 0)
-> Hash (cost=4.06..4.06 rows=1 width=8)
-> Seq Scan on tbl_erp_sales_outbound_verify_rels rvr_6 (cost=0.00..4.06 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_outbound_stop_verify_rels rsvr_6 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 8" (cost=24.31..24.52 rows=5 width=297)
-> Group (cost=24.31..24.47 rows=5 width=305)
Group Key: r_7.id, rvr_7.status, rsvr_7.status
-> Sort (cost=24.31..24.32 rows=5 width=222)
Sort Key: r_7.id, rvr_7.status, rsvr_7.status
-> Nested Loop Left Join (cost=0.00..24.25 rows=5 width=222)
Join Filter: (rsvr_7.erp_sales_return_id = r_7.id)
-> Nested Loop Left Join (cost=0.00..2.06 rows=1 width=218)
Join Filter: (rvr_7.erp_sales_return_id = r_7.id)
-> Seq Scan on tbl_erp_sales_returns r_7 (cost=0.00..1.01 rows=1 width=214)
Filter: (status <> 0)
-> Seq Scan on tbl_erp_sales_return_verify_rels rvr_7 (cost=0.00..1.04 rows=1 width=8)
Filter: (user_id = 5064)
-> Seq Scan on tbl_erp_sales_return_stop_verify_rels rsvr_7 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 9" (cost=3.69..4.03 rows=8 width=297)
-> HashAggregate (cost=3.69..3.95 rows=8 width=305)
Group Key: r_8.id, rvr_8.status, rsvr_8.status
-> Hash Left Join (cost=2.44..3.63 rows=8 width=226)
Hash Cond: (r_8.id = rsvr_8.erp_purchase_gift_id)
-> Hash Left Join (cost=1.35..2.50 rows=8 width=222)
Hash Cond: (r_8.id = rvr_8.erp_purchase_gift_id)
-> Seq Scan on tbl_erp_purchase_gifts r_8 (cost=0.00..1.11 rows=8 width=218)
Filter: (status <> 0)
-> Hash (cost=1.34..1.34 rows=1 width=8)
-> Seq Scan on tbl_erp_purchase_gift_verify_rels rvr_8 (cost=0.00..1.34 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.07..1.07 rows=1 width=8)
-> Seq Scan on tbl_erp_purchase_gift_stop_verify_rels rsvr_8 (cost=0.00..1.07 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 10" (cost=10.16..12.80 rows=62 width=176)
-> HashAggregate (cost=10.16..12.18 rows=62 width=184)
Group Key: r_9.id, rvr_9.status, rsvr_9.status
-> Hash Left Join (cost=5.43..9.70 rows=62 width=105)
Hash Cond: (r_9.id = rsvr_9.erp_sales_gift_id)
-> Hash Left Join (cost=4.38..8.41 rows=62 width=101)
Hash Cond: (r_9.id = rvr_9.erp_sales_gift_id)
-> Seq Scan on tbl_erp_sales_gifts r_9 (cost=0.00..3.79 rows=62 width=97)
Filter: (status <> 0)
-> Hash (cost=4.36..4.36 rows=1 width=8)
-> Seq Scan on tbl_erp_sales_gift_verify_rels rvr_9 (cost=0.00..4.36 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.04..1.04 rows=1 width=8)
-> Seq Scan on tbl_erp_sales_gift_stop_verify_rels rsvr_9 (cost=0.00..1.04 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 11" (cost=96.96..187.74 rows=2136 width=133)
-> HashAggregate (cost=96.96..166.38 rows=2136 width=141)
Group Key: r_10.id, rvr_10.status, rsvr_10.status
-> Hash Left Join (cost=3.16..80.94 rows=2136 width=102)
Hash Cond: (r_10.id = rsvr_10.erp_collect_ticket_id)
-> Hash Left Join (cost=2.09..71.85 rows=2136 width=98)
Hash Cond: (r_10.id = rvr_10.erp_collect_ticket_id)
-> Seq Scan on tbl_erp_collect_tickets r_10 (cost=0.00..61.74 rows=2136 width=94)
Filter: (status <> 0)
-> Hash (cost=2.08..2.08 rows=1 width=8)
-> Seq Scan on tbl_erp_collect_ticket_verify_rels rvr_10 (cost=0.00..2.08 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.06..1.06 rows=1 width=8)
-> Seq Scan on tbl_erp_collect_ticket_stop_verify_rels rsvr_10 (cost=0.00..1.06 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 12" (cost=104.23..197.73 rows=2200 width=141)
-> HashAggregate (cost=104.23..175.73 rows=2200 width=149)
Group Key: r_11.id, rvr_11.status, rsvr_11.status
-> Hash Left Join (cost=3.61..87.73 rows=2200 width=111)
Hash Cond: (r_11.id = rsvr_11.erp_payment_ticket_id)
-> Hash Left Join (cost=2.49..78.35 rows=2200 width=107)
Hash Cond: (r_11.id = rvr_11.erp_payment_ticket_id)
-> Seq Scan on tbl_erp_payment_tickets r_11 (cost=0.00..67.60 rows=2200 width=103)
Filter: (status <> 0)
-> Hash (cost=2.48..2.48 rows=1 width=8)
-> Seq Scan on tbl_erp_payment_ticket_verify_rels rvr_11 (cost=0.00..2.48 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.11..1.11 rows=1 width=8)
-> Seq Scan on tbl_erp_payment_ticket_stop_verify_rels rsvr_11 (cost=0.00..1.11 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 13" (cost=26.42..27.52 rows=26 width=161)
-> HashAggregate (cost=26.42..27.26 rows=26 width=169)
Group Key: r_12.id, rvr_12.status, rsvr_12.status
-> Hash Left Join (cost=3.98..26.22 rows=26 width=126)
Hash Cond: (r_12.id = rvr_12.erp_cost_ticket_id)
-> Hash Right Join (cost=2.66..24.80 rows=26 width=122)
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=8)
Filter: (user_id = 5064)
-> Hash (cost=2.34..2.34 rows=26 width=118)
-> Seq Scan on tbl_erp_cost_tickets r_12 (cost=0.00..2.34 rows=26 width=118)
Filter: (status <> 0)
-> Hash (cost=1.30..1.30 rows=1 width=8)
-> Seq Scan on tbl_erp_cost_ticket_verify_rels rvr_12 (cost=0.00..1.30 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 14" (cost=25.49..26.25 rows=18 width=297)
-> Group (cost=25.49..26.07 rows=18 width=305)
Group Key: r_13.id, rvr_13.status, rsvr_13.status
-> Sort (cost=25.49..25.53 rows=18 width=266)
Sort Key: r_13.id, rvr_13.status, rsvr_13.status
-> Nested Loop Left Join (cost=1.46..25.11 rows=18 width=266)
Join Filter: (rvr_13.erp_other_income_ticket_id = r_13.id)
-> Hash Right Join (cost=1.46..23.60 rows=18 width=262)
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=8)
Filter: (user_id = 5064)
-> Hash (cost=1.24..1.24 rows=18 width=258)
-> Seq Scan on tbl_erp_other_income_tickets r_13 (cost=0.00..1.24 rows=18 width=258)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.24 rows=1 width=8)
-> Seq Scan on tbl_erp_other_income_ticket_verify_rels rvr_13 (cost=0.00..1.24 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 15" (cost=24.55..24.72 rows=4 width=297)
-> Group (cost=24.55..24.68 rows=4 width=305)
Group Key: r_14.id, rvr_14.status, rsvr_14.status
-> Sort (cost=24.55..24.56 rows=4 width=226)
Sort Key: r_14.id, rvr_14.status, rsvr_14.status
-> Nested Loop Left Join (cost=0.00..24.51 rows=4 width=226)
Join Filter: (rsvr_14.erp_cost_convert_ticket_id = r_14.id)
-> Nested Loop Left Join (cost=0.00..2.15 rows=3 width=222)
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.05 rows=3 width=218)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.05 rows=1 width=8)
-> Seq Scan on tbl_erp_cost_convert_ticket_verify_rels rvr_14 (cost=0.00..1.05 rows=1 width=8)
Filter: (user_id = 5064)
-> Materialize (cost=0.00..22.15 rows=5 width=8)
-> Seq Scan on tbl_erp_cost_convert_ticket_stop_verify_rels rsvr_14 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 16" (cost=3.69..4.15 rows=11 width=297)
-> HashAggregate (cost=3.69..4.04 rows=11 width=305)
Group Key: r_15.id, rvr_15.status, rsvr_15.status
-> Hash Left Join (cost=2.35..3.60 rows=11 width=218)
Hash Cond: (r_15.id = rsvr_15.erp_bank_transfer_ticket_id)
-> Hash Left Join (cost=1.31..2.51 rows=11 width=214)
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.15 rows=11 width=210)
Filter: (status <> 0)
-> Hash (cost=1.30..1.30 rows=1 width=8)
-> Seq Scan on tbl_erp_bank_transfer_ticket_verify_rels rvr_15 (cost=0.00..1.30 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.02..1.02 rows=1 width=8)
-> Seq Scan on tbl_erp_bank_transfer_ticket_stop_verify_rels rsvr_15 (cost=0.00..1.02 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 17" (cost=786.32..1119.90 rows=7849 width=149)
-> HashAggregate (cost=786.32..1041.41 rows=7849 width=157)
Group Key: r_16.id, rvr_16.status, rsvr_16.status
-> Hash Left Join (cost=363.65..727.45 rows=7849 width=111)
Hash Cond: (r_16.id = rsvr_16.erp_cash_cost_ticket_id)
-> Hash Left Join (cost=362.59..696.94 rows=7849 width=107)
Hash Cond: (r_16.id = rvr_16.erp_cash_cost_ticket_id)
-> Seq Scan on tbl_erp_cash_cost_tickets r_16 (cost=0.00..275.14 rows=7849 width=103)
Filter: (status <> 0)
-> Hash (cost=362.15..362.15 rows=35 width=8)
-> Seq Scan on tbl_erp_cash_cost_ticket_verify_rels rvr_16 (cost=0.00..362.15 rows=35 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.05..1.05 rows=1 width=8)
-> Seq Scan on tbl_erp_cash_cost_ticket_stop_verify_rels rsvr_16 (cost=0.00..1.05 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 18" (cost=58.84..65.60 rows=159 width=297)
-> HashAggregate (cost=58.84..64.01 rows=159 width=305)
Group Key: r_17.id, rvr_17.status, rsvr_17.status
-> Hash Left Join (cost=44.38..57.65 rows=159 width=259)
Hash Cond: (r_17.id = rsvr_17.erp_advance_payment_ticket_id)
-> Hash Left Join (cost=22.19..34.82 rows=159 width=255)
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.00 rows=159 width=251)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_advance_payment_ticket_verify_rels rvr_17 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_advance_payment_ticket_stop_verify_rels rsvr_17 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 19" (cost=27.78..29.99 rows=52 width=134)
-> HashAggregate (cost=27.78..29.47 rows=52 width=142)
Group Key: r_18.id, rvr_18.status, rsvr_18.status
-> Hash Left Join (cost=23.30..27.39 rows=52 width=103)
Hash Cond: (r_18.id = rsvr_18.erp_other_payment_ticket_id)
-> Hash Left Join (cost=1.11..4.99 rows=52 width=99)
Hash Cond: (r_18.id = rvr_18.erp_other_payment_ticket_id)
-> Seq Scan on tbl_erp_other_payment_tickets r_18 (cost=0.00..3.67 rows=52 width=95)
Filter: (status <> 0)
-> Hash (cost=1.10..1.10 rows=1 width=8)
-> Seq Scan on tbl_erp_other_payment_ticket_verify_rels rvr_18 (cost=0.00..1.10 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_other_payment_ticket_stop_verify_rels rsvr_18 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 20" (cost=5.03..6.09 rows=25 width=154)
-> HashAggregate (cost=5.03..5.84 rows=25 width=162)
Group Key: r_19.id, rvr_19.status, rsvr_19.status
-> Hash Left Join (cost=2.31..4.84 rows=25 width=123)
Hash Cond: (r_19.id = rsvr_19.erp_other_collect_ticket_id)
-> Hash Left Join (cost=1.29..3.72 rows=25 width=119)
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..2.33 rows=25 width=115)
Filter: (status <> 0)
-> Hash (cost=1.27..1.27 rows=1 width=8)
-> Seq Scan on tbl_erp_other_collect_ticket_verify_rels rvr_19 (cost=0.00..1.27 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.01..1.01 rows=1 width=8)
-> Seq Scan on tbl_erp_other_collect_ticket_stop_verify_rels rsvr_19 (cost=0.00..1.01 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 21" (cost=7.54..10.19 rows=53 width=297)
-> HashAggregate (cost=7.54..9.66 rows=53 width=309)
Group Key: r_20.id, rvr_20.status, rsvr_20.status, rcvr_2.status
-> Hash Left Join (cost=3.71..7.01 rows=53 width=230)
Hash Cond: (r_20.id = rcvr_2.erp_purchase_cost_id)
-> Hash Left Join (cost=2.68..5.77 rows=53 width=226)
Hash Cond: (r_20.id = rsvr_20.erp_purchase_cost_id)
-> Hash Left Join (cost=1.59..4.47 rows=53 width=222)
Hash Cond: (r_20.id = rvr_20.erp_purchase_cost_id)
-> Seq Scan on tbl_erp_purchase_costs r_20 (cost=0.00..2.67 rows=53 width=218)
Filter: (status <> 0)
-> Hash (cost=1.58..1.58 rows=1 width=8)
-> Seq Scan on tbl_erp_purchase_cost_verify_rels rvr_20 (cost=0.00..1.58 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.07..1.07 rows=1 width=8)
-> Seq Scan on tbl_erp_purchase_cost_stop_verify_rels rsvr_20 (cost=0.00..1.07 rows=1 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.02..1.02 rows=1 width=8)
-> Seq Scan on tbl_erp_purchase_cost_cancel_verify_rels rcvr_2 (cost=0.00..1.02 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 22" (cost=24.77..25.19 rows=10 width=151)
-> Group (cost=24.77..25.09 rows=10 width=159)
Group Key: r_21.id, rvr_21.status, rsvr_21.status
-> Sort (cost=24.77..24.79 rows=10 width=105)
Sort Key: r_21.id, rvr_21.status, rsvr_21.status
-> Nested Loop Left Join (cost=1.26..24.60 rows=10 width=105)
Join Filter: (rvr_21.erp_wage_ticket_id = r_21.id)
-> Hash Right Join (cost=1.26..23.40 rows=10 width=101)
Hash Cond: (rsvr_21.erp_wage_ticket_id = r_21.id)
-> Seq Scan on tbl_erp_wage_ticket_stop_verify_rels rsvr_21 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.14..1.14 rows=10 width=97)
-> Seq Scan on tbl_erp_wage_tickets r_21 (cost=0.00..1.14 rows=10 width=97)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.05 rows=1 width=8)
-> Seq Scan on tbl_erp_wage_ticket_verify_rels rvr_21 (cost=0.00..1.05 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 23" (cost=24.56..24.77 rows=5 width=297)
-> Group (cost=24.56..24.72 rows=5 width=305)
Group Key: r_22.id, rvr_22.status, rsvr_22.status
-> Sort (cost=24.56..24.57 rows=5 width=251)
Sort Key: r_22.id, rvr_22.status, rsvr_22.status
-> Nested Loop Left Join (cost=1.14..24.50 rows=5 width=251)
Join Filter: (rvr_22.erp_social_insurance_id = r_22.id)
-> Hash Right Join (cost=1.14..23.28 rows=5 width=247)
Hash Cond: (rsvr_22.erp_social_insurance_id = r_22.id)
-> Seq Scan on tbl_erp_social_insurance_stop_verify_rels rsvr_22 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Hash (cost=1.07..1.07 rows=5 width=243)
-> Seq Scan on tbl_erp_social_insurances r_22 (cost=0.00..1.07 rows=5 width=243)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.15 rows=1 width=8)
-> Seq Scan on tbl_erp_social_insurance_verify_rels rvr_22 (cost=0.00..1.15 rows=1 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 24" (cost=24.46..24.58 rows=3 width=297)
-> Group (cost=24.46..24.55 rows=3 width=305)
Group Key: r_23.id, rvr_23.status, rsvr_23.status
-> Sort (cost=24.46..24.46 rows=3 width=251)
Sort Key: r_23.id, rvr_23.status, rsvr_23.status
-> Nested Loop Left Join (cost=0.00..24.43 rows=3 width=251)
Join Filter: (rsvr_23.erp_provident_fund_id = r_23.id)
-> Nested Loop Left Join (cost=0.00..2.14 rows=2 width=247)
Join Filter: (rvr_23.erp_provident_fund_id = r_23.id)
-> Seq Scan on tbl_erp_provident_funds r_23 (cost=0.00..1.04 rows=2 width=243)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.08 rows=1 width=8)
-> Seq Scan on tbl_erp_provident_fund_verify_rels rvr_23 (cost=0.00..1.07 rows=1 width=8)
Filter: (user_id = 5064)
-> Materialize (cost=0.00..22.15 rows=5 width=8)
-> Seq Scan on tbl_erp_provident_fund_stop_verify_rels rsvr_23 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 25" (cost=24.55..24.72 rows=4 width=297)
-> Group (cost=24.55..24.68 rows=4 width=305)
Group Key: r_24.id, rvr_24.status, rsvr_24.status
-> Sort (cost=24.55..24.56 rows=4 width=251)
Sort Key: r_24.id, rvr_24.status, rsvr_24.status
-> Nested Loop Left Join (cost=0.00..24.51 rows=4 width=251)
Join Filter: (rsvr_24.erp_personal_tax_id = r_24.id)
-> Nested Loop Left Join (cost=0.00..2.15 rows=3 width=247)
Join Filter: (rvr_24.erp_personal_tax_id = r_24.id)
-> Seq Scan on tbl_erp_personal_taxs r_24 (cost=0.00..1.05 rows=3 width=243)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.05 rows=1 width=8)
-> Seq Scan on tbl_erp_personal_tax_verify_rels rvr_24 (cost=0.00..1.05 rows=1 width=8)
Filter: (user_id = 5064)
-> Materialize (cost=0.00..22.15 rows=5 width=8)
-> Seq Scan on tbl_erp_personal_tax_stop_verify_rels rsvr_24 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 26" (cost=24.42..24.55 rows=3 width=297)
-> Group (cost=24.42..24.52 rows=3 width=305)
Group Key: r_25.id, rvr_25.status, rsvr_25.status
-> Sort (cost=24.42..24.43 rows=3 width=251)
Sort Key: r_25.id, rvr_25.status, rsvr_25.status
-> Nested Loop Left Join (cost=0.00..24.39 rows=3 width=251)
Join Filter: (rsvr_25.erp_wage_prize_id = r_25.id)
-> Nested Loop Left Join (cost=0.00..2.11 rows=2 width=247)
Join Filter: (rvr_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=243)
Filter: (status <> 0)
-> Materialize (cost=0.00..1.04 rows=1 width=8)
-> Seq Scan on tbl_erp_wage_prize_verify_rels rvr_25 (cost=0.00..1.04 rows=1 width=8)
Filter: (user_id = 5064)
-> Materialize (cost=0.00..22.15 rows=5 width=8)
-> Seq Scan on tbl_erp_wage_prize_stop_verify_rels rsvr_25 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Subquery Scan on "*SELECT* 27" (cost=274.66..284.96 rows=229 width=297)
-> HashAggregate (cost=274.66..282.67 rows=229 width=305)
Group Key: r_26.id, rvr_26.status, rsvr_26.status
-> Hash Left Join (cost=249.26..272.37 rows=229 width=195)
Hash Cond: (r_26.id = rsvr_26.erp_profit_distribute_id)
-> Hash Right Join (cost=227.08..249.27 rows=229 width=191)
Hash Cond: (rvr_26.erp_profit_distribute_id = r_26.id)
-> Seq Scan on tbl_erp_profit_distribute_verify_rels rvr_26 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)
-> Hash (cost=224.21..224.21 rows=229 width=187)
-> Hash Left Join (cost=210.74..224.21 rows=229 width=187)
Hash Cond: (r_26.project_id = p.id)
-> Seq Scan on tbl_erp_profit_distributes r_26 (cost=0.00..12.88 rows=229 width=186)
Filter: (status <> 0)
-> Hash (cost=172.55..172.55 rows=3055 width=9)
-> Seq Scan on tbl_projects p (cost=0.00..172.55 rows=3055 width=9)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_profit_distribute_stop_verify_rels rsvr_26 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5064)