Limit (cost=2887.70..2887.80 rows=40 width=181) |
-> Sort (cost=2887.70..2887.83 rows=53 width=181) |
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=57.96..2886.18 rows=53 width=181) |
-> Append (cost=57.96..2885.25 rows=53 width=177) |
-> Subquery Scan on sub (cost=57.96..58.00 rows=1 width=265) |
-> Group (cost=57.96..57.99 rows=1 width=273) |
Group Key: r.id, rvr.status, rsvr.status |
-> Sort (cost=57.96..57.97 rows=1 width=222) |
Sort Key: r.id, rvr.status, rsvr.status |
-> Result (cost=44.38..57.95 rows=1 width=222) |
One-Time Filter: (20002 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..57.95 rows=1 width=222) |
Hash Cond: (r.id = rsvr.erp_purchase_inbound_id) |
Filter: (((rvr.user_id = 1001) OR (rsvr.user_id = 1001)) AND ((CASE WHEN (1 = r.verify_type) THEN rvr.status ELSE CASE WHEN (r.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr.status = 0) THEN NULL::integer ELSE rvr.status END END END = 0) OR (CASE WHEN (1 = r.verify_type) THEN rsvr.status ELSE CASE WHEN (r.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr.status = 0) THEN NULL::integer ELSE rsvr.status END END END = 0))) |
-> Hash Left Join (cost=22.19..34.99 rows=169 width=222) |
Hash Cond: (r.id = rvr.erp_purchase_inbound_id) |
-> Seq Scan on tbl_erp_purchase_inbounds r (cost=0.00..12.12 rows=169 width=214) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_purchase_inbound_verify_rels rvr (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_inbound_stop_verify_rels rsvr (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 2" (cost=187.63..187.68 rows=1 width=157) |
-> Group (cost=187.63..187.67 rows=1 width=169) |
Group Key: r_1.id, rvr_1.status, rsvr_1.status, rcvr.status |
-> Sort (cost=187.63..187.63 rows=1 width=122) |
Sort Key: r_1.id, rvr_1.status, rsvr_1.status, rcvr.status |
-> Result (cost=66.57..187.62 rows=1 width=122) |
One-Time Filter: (20001 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=66.57..187.62 rows=1 width=122) |
Hash Cond: (r_1.id = rcvr.erp_purchase_order_id) |
Filter: (((rvr_1.user_id = 1001) OR (rsvr_1.user_id = 1001) OR (rcvr.user_id = 1001)) AND ((CASE WHEN (1 = r_1.verify_type) THEN rvr_1.status ELSE CASE WHEN (r_1.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_1.status = 0) THEN NULL::integer ELSE rvr_1.status END END END = 0) OR (CASE WHEN (1 = r_1.verify_type) THEN rsvr_1.status ELSE CASE WHEN (r_1.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_1.status = 0) THEN NULL::integer ELSE rsvr_1.status END END END = 0) OR (CASE WHEN (1 = r_1.verify_type) THEN rcvr.status ELSE CASE WHEN (r_1.next_cancel_verify_user = 1001) THEN 0 ELSE CASE WHEN (rcvr.status = 0) THEN NULL::integer ELSE rcvr.status END END END = 0))) |
-> Hash Left Join (cost=44.38..157.65 rows=2009 width=126) |
Hash Cond: (r_1.id = rsvr_1.erp_purchase_order_id) |
-> Hash Left Join (cost=22.19..127.88 rows=2009 width=118) |
Hash Cond: (r_1.id = rvr_1.erp_purchase_order_id) |
-> Seq Scan on tbl_erp_purchase_orders r_1 (cost=0.00..98.11 rows=2009 width=110) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_purchase_order_verify_rels rvr_1 (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_order_stop_verify_rels rsvr_1 (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_order_cancel_verify_rels rcvr (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 3" (cost=58.81..58.85 rows=1 width=265) |
-> Group (cost=58.81..58.84 rows=1 width=273) |
Group Key: r_2.id, rvr_2.status, rsvr_2.status |
-> Sort (cost=58.81..58.81 rows=1 width=222) |
Sort Key: r_2.id, rvr_2.status, rsvr_2.status |
-> Result (cost=44.38..58.80 rows=1 width=222) |
One-Time Filter: (20003 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.80 rows=1 width=222) |
Hash Cond: (r_2.id = rsvr_2.erp_purchase_return_id) |
Filter: (((rvr_2.user_id = 1001) OR (rsvr_2.user_id = 1001)) AND ((CASE WHEN (1 = r_2.verify_type) THEN rvr_2.status ELSE CASE WHEN (r_2.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_2.status = 0) THEN NULL::integer ELSE rvr_2.status END END END = 0) OR (CASE WHEN (1 = r_2.verify_type) THEN rsvr_2.status ELSE CASE WHEN (r_2.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_2.status = 0) THEN NULL::integer ELSE rsvr_2.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.65 rows=209 width=222) |
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=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=58.81..58.85 rows=1 width=265) |
-> Group (cost=58.81..58.84 rows=1 width=273) |
Group Key: r_3.id, rvr_3.status, rsvr_3.status |
-> Sort (cost=58.81..58.81 rows=1 width=218) |
Sort Key: r_3.id, rvr_3.status, rsvr_3.status |
-> Result (cost=44.38..58.80 rows=1 width=218) |
One-Time Filter: (20004 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.80 rows=1 width=218) |
Hash Cond: (r_3.id = rsvr_3.erp_inventory_lost_id) |
Filter: (((rvr_3.user_id = 1001) OR (rsvr_3.user_id = 1001)) AND ((CASE WHEN (1 = r_3.verify_type) THEN rvr_3.status ELSE CASE WHEN (r_3.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_3.status = 0) THEN NULL::integer ELSE rvr_3.status END END END = 0) OR (CASE WHEN (1 = r_3.verify_type) THEN rsvr_3.status ELSE CASE WHEN (r_3.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_3.status = 0) THEN NULL::integer ELSE rsvr_3.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.65 rows=209 width=218) |
Hash Cond: (r_3.id = rvr_3.erp_inventory_lost_id) |
-> Seq Scan on tbl_erp_inventory_losts r_3 (cost=0.00..12.62 rows=209 width=210) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_inventory_lost_verify_rels rvr_3 (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_inventory_lost_stop_verify_rels rsvr_3 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 5" (cost=58.16..58.20 rows=1 width=265) |
-> Group (cost=58.16..58.19 rows=1 width=273) |
Group Key: r_4.id, rvr_4.status, rsvr_4.status |
-> Sort (cost=58.16..58.17 rows=1 width=218) |
Sort Key: r_4.id, rvr_4.status, rsvr_4.status |
-> Result (cost=44.38..58.15 rows=1 width=218) |
One-Time Filter: (20005 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.15 rows=1 width=218) |
Hash Cond: (r_4.id = rsvr_4.erp_inventory_build_id) |
Filter: (((rvr_4.user_id = 1001) OR (rsvr_4.user_id = 1001)) AND ((CASE WHEN (1 = r_4.verify_type) THEN rvr_4.status ELSE CASE WHEN (r_4.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_4.status = 0) THEN NULL::integer ELSE rvr_4.status END END END = 0) OR (CASE WHEN (1 = r_4.verify_type) THEN rsvr_4.status ELSE CASE WHEN (r_4.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_4.status = 0) THEN NULL::integer ELSE rsvr_4.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.15 rows=179 width=218) |
Hash Cond: (r_4.id = rvr_4.erp_inventory_build_id) |
-> Seq Scan on tbl_erp_inventory_builds r_4 (cost=0.00..12.25 rows=179 width=210) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_inventory_build_verify_rels rvr_4 (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_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=166.04..166.08 rows=1 width=166) |
-> Group (cost=166.04..166.07 rows=1 width=178) |
Group Key: r_5.id, rvr_5.status, rsvr_5.status, rcvr_1.status |
-> Sort (cost=166.04..166.04 rows=1 width=131) |
Sort Key: r_5.id, rvr_5.status, rsvr_5.status, rcvr_1.status |
-> Result (cost=66.57..166.03 rows=1 width=131) |
One-Time Filter: (20007 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=66.57..166.03 rows=1 width=131) |
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)) AND ((CASE WHEN (1 = r_5.verify_type) THEN rvr_5.status ELSE CASE WHEN (r_5.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_5.status = 0) THEN NULL::integer ELSE rvr_5.status END END END = 0) OR (CASE WHEN (1 = r_5.verify_type) THEN rsvr_5.status ELSE CASE WHEN (r_5.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_5.status = 0) THEN NULL::integer ELSE rsvr_5.status END END END = 0) OR (CASE WHEN (1 = r_5.verify_type) THEN rcvr_1.status ELSE CASE WHEN (r_5.next_cancel_verify_user = 1001) THEN 0 ELSE CASE WHEN (rcvr_1.status = 0) THEN NULL::integer ELSE rcvr_1.status END END END = 0))) |
-> Hash Left Join (cost=44.38..137.73 rows=1563 width=135) |
Hash Cond: (r_5.id = rsvr_5.erp_sales_order_id) |
-> Hash Left Join (cost=22.19..109.64 rows=1563 width=127) |
Hash Cond: (r_5.id = rvr_5.erp_sales_order_id) |
-> Seq Scan on tbl_erp_sales_orders r_5 (cost=0.00..81.54 rows=1563 width=119) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_sales_order_verify_rels rvr_5 (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_order_stop_verify_rels rsvr_5 (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_order_cancel_verify_rels rcvr_1 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 7" (cost=58.61..58.65 rows=1 width=265) |
-> Group (cost=58.61..58.64 rows=1 width=273) |
Group Key: r_6.id, rvr_6.status, rsvr_6.status |
-> Sort (cost=58.61..58.61 rows=1 width=222) |
Sort Key: r_6.id, rvr_6.status, rsvr_6.status |
-> Result (cost=44.38..58.60 rows=1 width=222) |
One-Time Filter: (20008 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.60 rows=1 width=222) |
Hash Cond: (r_6.id = rsvr_6.erp_sales_outbound_id) |
Filter: (((rvr_6.user_id = 1001) OR (rsvr_6.user_id = 1001)) AND ((CASE WHEN (1 = r_6.verify_type) THEN rvr_6.status ELSE CASE WHEN (r_6.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_6.status = 0) THEN NULL::integer ELSE rvr_6.status END END END = 0) OR (CASE WHEN (1 = r_6.verify_type) THEN rsvr_6.status ELSE CASE WHEN (r_6.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_6.status = 0) THEN NULL::integer ELSE rsvr_6.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.48 rows=199 width=222) |
Hash Cond: (r_6.id = rvr_6.erp_sales_outbound_id) |
-> Seq Scan on tbl_erp_sales_outbounds r_6 (cost=0.00..12.50 rows=199 width=214) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_sales_outbound_verify_rels rvr_6 (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_outbound_stop_verify_rels rsvr_6 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 8" (cost=58.81..58.85 rows=1 width=265) |
-> Group (cost=58.81..58.84 rows=1 width=273) |
Group Key: r_7.id, rvr_7.status, rsvr_7.status |
-> Sort (cost=58.81..58.81 rows=1 width=222) |
Sort Key: r_7.id, rvr_7.status, rsvr_7.status |
-> Result (cost=44.38..58.80 rows=1 width=222) |
One-Time Filter: (20009 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.80 rows=1 width=222) |
Hash Cond: (r_7.id = rsvr_7.erp_sales_return_id) |
Filter: (((rvr_7.user_id = 1001) OR (rsvr_7.user_id = 1001)) AND ((CASE WHEN (1 = r_7.verify_type) THEN rvr_7.status ELSE CASE WHEN (r_7.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_7.status = 0) THEN NULL::integer ELSE rvr_7.status END END END = 0) OR (CASE WHEN (1 = r_7.verify_type) THEN rsvr_7.status ELSE CASE WHEN (r_7.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_7.status = 0) THEN NULL::integer ELSE rsvr_7.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.65 rows=209 width=222) |
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=214) |
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=57.96..58.00 rows=1 width=265) |
-> Group (cost=57.96..57.99 rows=1 width=273) |
Group Key: r_8.id, rvr_8.status, rsvr_8.status |
-> Sort (cost=57.96..57.97 rows=1 width=226) |
Sort Key: r_8.id, rvr_8.status, rsvr_8.status |
-> Result (cost=44.38..57.95 rows=1 width=226) |
One-Time Filter: (20010 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..57.95 rows=1 width=226) |
Hash Cond: (r_8.id = rsvr_8.erp_purchase_gift_id) |
Filter: (((rvr_8.user_id = 1001) OR (rsvr_8.user_id = 1001)) AND ((CASE WHEN (1 = r_8.verify_type) THEN rvr_8.status ELSE CASE WHEN (r_8.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_8.status = 0) THEN NULL::integer ELSE rvr_8.status END END END = 0) OR (CASE WHEN (1 = r_8.verify_type) THEN rsvr_8.status ELSE CASE WHEN (r_8.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_8.status = 0) THEN NULL::integer ELSE rsvr_8.status END END END = 0))) |
-> Hash Left Join (cost=22.19..34.99 rows=169 width=226) |
Hash Cond: (r_8.id = rvr_8.erp_purchase_gift_id) |
-> Seq Scan on tbl_erp_purchase_gifts r_8 (cost=0.00..12.12 rows=169 width=218) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_purchase_gift_verify_rels rvr_8 (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_gift_stop_verify_rels rsvr_8 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 10" (cost=58.61..58.65 rows=1 width=265) |
-> Group (cost=58.61..58.64 rows=1 width=273) |
Group Key: r_9.id, rvr_9.status, rsvr_9.status |
-> Sort (cost=58.61..58.61 rows=1 width=226) |
Sort Key: r_9.id, rvr_9.status, rsvr_9.status |
-> Result (cost=44.38..58.60 rows=1 width=226) |
One-Time Filter: (20011 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.60 rows=1 width=226) |
Hash Cond: (r_9.id = rsvr_9.erp_sales_gift_id) |
Filter: (((rvr_9.user_id = 1001) OR (rsvr_9.user_id = 1001)) AND ((CASE WHEN (1 = r_9.verify_type) THEN rvr_9.status ELSE CASE WHEN (r_9.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_9.status = 0) THEN NULL::integer ELSE rvr_9.status END END END = 0) OR (CASE WHEN (1 = r_9.verify_type) THEN rsvr_9.status ELSE CASE WHEN (r_9.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_9.status = 0) THEN NULL::integer ELSE rsvr_9.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.48 rows=199 width=226) |
Hash Cond: (r_9.id = rvr_9.erp_sales_gift_id) |
-> Seq Scan on tbl_erp_sales_gifts r_9 (cost=0.00..12.50 rows=199 width=218) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_sales_gift_verify_rels rvr_9 (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_gift_stop_verify_rels rsvr_9 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 11" (cost=116.40..116.43 rows=1 width=121) |
-> Group (cost=116.40..116.42 rows=1 width=129) |
Group Key: r_10.id, rvr_10.status, rsvr_10.status |
-> Sort (cost=116.40..116.40 rows=1 width=122) |
Sort Key: r_10.id, rvr_10.status, rsvr_10.status |
-> Result (cost=44.38..116.39 rows=1 width=122) |
One-Time Filter: (20013 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..116.39 rows=1 width=122) |
Hash Cond: (r_10.id = rsvr_10.erp_collect_ticket_id) |
Filter: (((rvr_10.user_id = 1001) OR (rsvr_10.user_id = 1001)) AND ((CASE WHEN (1 = r_10.verify_type) THEN rvr_10.status ELSE CASE WHEN (r_10.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_10.status = 0) THEN NULL::integer ELSE rvr_10.status END END END = 0) OR (CASE WHEN (1 = r_10.verify_type) THEN rsvr_10.status ELSE CASE WHEN (r_10.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_10.status = 0) THEN NULL::integer ELSE rsvr_10.status END END END = 0))) |
-> Hash Left Join (cost=22.19..86.56 rows=1989 width=122) |
Hash Cond: (r_10.id = rvr_10.erp_collect_ticket_id) |
-> Seq Scan on tbl_erp_collect_tickets r_10 (cost=0.00..56.86 rows=1989 width=114) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_collect_ticket_verify_rels rvr_10 (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_collect_ticket_stop_verify_rels rsvr_10 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 12" (cost=121.20..121.23 rows=1 width=88) |
-> Group (cost=121.20..121.22 rows=1 width=96) |
Group Key: r_11.id, rvr_11.status, rsvr_11.status |
-> Sort (cost=121.20..121.20 rows=1 width=85) |
Sort Key: r_11.id, rvr_11.status, rsvr_11.status |
-> Result (cost=44.38..121.19 rows=1 width=85) |
One-Time Filter: (20012 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..121.19 rows=1 width=85) |
Hash Cond: (r_11.id = rsvr_11.erp_payment_ticket_id) |
Filter: (((rvr_11.user_id = 1001) OR (rsvr_11.user_id = 1001)) AND ((CASE WHEN (1 = r_11.verify_type) THEN rvr_11.status ELSE CASE WHEN (r_11.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_11.status = 0) THEN NULL::integer ELSE rvr_11.status END END END = 0) OR (CASE WHEN (1 = r_11.verify_type) THEN rsvr_11.status ELSE CASE WHEN (r_11.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_11.status = 0) THEN NULL::integer ELSE rsvr_11.status END END END = 0))) |
-> Hash Left Join (cost=22.19..90.83 rows=2129 width=85) |
Hash Cond: (r_11.id = rvr_11.erp_payment_ticket_id) |
-> Seq Scan on tbl_erp_payment_tickets r_11 (cost=0.00..60.61 rows=2129 width=77) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_payment_ticket_verify_rels rvr_11 (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_payment_ticket_stop_verify_rels rsvr_11 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 13" (cost=58.41..58.45 rows=1 width=265) |
-> Group (cost=58.41..58.44 rows=1 width=273) |
Group Key: r_12.id, rvr_12.status, rsvr_12.status |
-> Sort (cost=58.41..58.41 rows=1 width=258) |
Sort Key: r_12.id, rvr_12.status, rsvr_12.status |
-> Result (cost=44.38..58.40 rows=1 width=258) |
One-Time Filter: (20014 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.40 rows=1 width=258) |
Hash Cond: (r_12.id = rsvr_12.erp_cost_ticket_id) |
Filter: (((rvr_12.user_id = 1001) OR (rsvr_12.user_id = 1001)) AND ((CASE WHEN (1 = r_12.verify_type) THEN rvr_12.status ELSE CASE WHEN (r_12.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_12.status = 0) THEN NULL::integer ELSE rvr_12.status END END END = 0) OR (CASE WHEN (1 = r_12.verify_type) THEN rsvr_12.status ELSE CASE WHEN (r_12.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_12.status = 0) THEN NULL::integer ELSE rsvr_12.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.32 rows=189 width=258) |
Hash Cond: (r_12.id = rvr_12.erp_cost_ticket_id) |
-> Seq Scan on tbl_erp_cost_tickets r_12 (cost=0.00..12.38 rows=189 width=250) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_cost_ticket_verify_rels rvr_12 (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_cost_ticket_stop_verify_rels rsvr_12 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 14" (cost=58.61..58.65 rows=1 width=265) |
-> Group (cost=58.61..58.64 rows=1 width=273) |
Group Key: r_13.id, rvr_13.status, rsvr_13.status |
-> Sort (cost=58.61..58.61 rows=1 width=258) |
Sort Key: r_13.id, rvr_13.status, rsvr_13.status |
-> Result (cost=44.38..58.60 rows=1 width=258) |
One-Time Filter: (20015 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.60 rows=1 width=258) |
Hash Cond: (r_13.id = rsvr_13.erp_other_income_ticket_id) |
Filter: (((rvr_13.user_id = 1001) OR (rsvr_13.user_id = 1001)) AND ((CASE WHEN (1 = r_13.verify_type) THEN rvr_13.status ELSE CASE WHEN (r_13.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_13.status = 0) THEN NULL::integer ELSE rvr_13.status END END END = 0) OR (CASE WHEN (1 = r_13.verify_type) THEN rsvr_13.status ELSE CASE WHEN (r_13.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_13.status = 0) THEN NULL::integer ELSE rsvr_13.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.48 rows=199 width=258) |
Hash Cond: (r_13.id = rvr_13.erp_other_income_ticket_id) |
-> Seq Scan on tbl_erp_other_income_tickets r_13 (cost=0.00..12.50 rows=199 width=250) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_other_income_ticket_verify_rels rvr_13 (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_other_income_ticket_stop_verify_rels rsvr_13 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 15" (cost=58.41..58.45 rows=1 width=265) |
-> Group (cost=58.41..58.44 rows=1 width=273) |
Group Key: r_14.id, rvr_14.status, rsvr_14.status |
-> Sort (cost=58.41..58.41 rows=1 width=218) |
Sort Key: r_14.id, rvr_14.status, rsvr_14.status |
-> Result (cost=44.38..58.40 rows=1 width=218) |
One-Time Filter: (20016 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.40 rows=1 width=218) |
Hash Cond: (r_14.id = rsvr_14.erp_cost_convert_ticket_id) |
Filter: (((rvr_14.user_id = 1001) OR (rsvr_14.user_id = 1001)) AND ((CASE WHEN (1 = r_14.verify_type) THEN rvr_14.status ELSE CASE WHEN (r_14.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_14.status = 0) THEN NULL::integer ELSE rvr_14.status END END END = 0) OR (CASE WHEN (1 = r_14.verify_type) THEN rsvr_14.status ELSE CASE WHEN (r_14.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_14.status = 0) THEN NULL::integer ELSE rsvr_14.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.32 rows=189 width=218) |
Hash Cond: (r_14.id = rvr_14.erp_cost_convert_ticket_id) |
-> Seq Scan on tbl_erp_cost_convert_tickets r_14 (cost=0.00..12.38 rows=189 width=210) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_cost_convert_ticket_verify_rels rvr_14 (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_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=58.61..58.65 rows=1 width=265) |
-> Group (cost=58.61..58.64 rows=1 width=273) |
Group Key: r_15.id, rvr_15.status, rsvr_15.status |
-> Sort (cost=58.61..58.61 rows=1 width=218) |
Sort Key: r_15.id, rvr_15.status, rsvr_15.status |
-> Result (cost=44.38..58.60 rows=1 width=218) |
One-Time Filter: (20017 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.60 rows=1 width=218) |
Hash Cond: (r_15.id = rsvr_15.erp_bank_transfer_ticket_id) |
Filter: (((rvr_15.user_id = 1001) OR (rsvr_15.user_id = 1001)) AND ((CASE WHEN (1 = r_15.verify_type) THEN rvr_15.status ELSE CASE WHEN (r_15.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_15.status = 0) THEN NULL::integer ELSE rvr_15.status END END END = 0) OR (CASE WHEN (1 = r_15.verify_type) THEN rsvr_15.status ELSE CASE WHEN (r_15.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_15.status = 0) THEN NULL::integer ELSE rsvr_15.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.48 rows=199 width=218) |
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..12.50 rows=199 width=210) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_bank_transfer_ticket_verify_rels rvr_15 (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_bank_transfer_ticket_stop_verify_rels rsvr_15 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 17" (cost=1039.92..1040.90 rows=28 width=117) |
-> Group (cost=1039.92..1040.62 rows=28 width=125) |
Group Key: r_16.id, rvr_16.status, rsvr_16.status |
-> Sort (cost=1039.92..1039.99 rows=28 width=111) |
Sort Key: r_16.id, rvr_16.status, rsvr_16.status |
-> Result (cost=650.04..1039.25 rows=28 width=111) |
One-Time Filter: (20018 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=650.04..1039.25 rows=28 width=111) |
Hash Cond: (r_16.id = rsvr_16.erp_cash_cost_ticket_id) |
Filter: (((rvr_16.user_id = 1001) OR (rsvr_16.user_id = 1001)) AND ((CASE WHEN (1 = r_16.verify_type) THEN rvr_16.status ELSE CASE WHEN (r_16.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_16.status = 0) THEN NULL::integer ELSE rvr_16.status END END END = 0) OR (CASE WHEN (1 = r_16.verify_type) THEN rsvr_16.status ELSE CASE WHEN (r_16.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_16.status = 0) THEN NULL::integer ELSE rsvr_16.status END END END = 0))) |
-> Hash Right Join (cost=627.85..989.33 rows=7348 width=111) |
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..342.23 rows=7330 width=12) |
Filter: (user_id = 1001) |
-> Hash (cost=536.00..536.00 rows=7348 width=103) |
-> Seq Scan on tbl_erp_cash_cost_tickets r_16 (cost=0.00..536.00 rows=7348 width=103) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_cash_cost_ticket_stop_verify_rels rsvr_16 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 18" (cost=58.16..58.20 rows=1 width=265) |
-> Group (cost=58.16..58.19 rows=1 width=273) |
Group Key: r_17.id, rvr_17.status, rsvr_17.status |
-> Sort (cost=58.16..58.17 rows=1 width=259) |
Sort Key: r_17.id, rvr_17.status, rsvr_17.status |
-> Result (cost=44.38..58.15 rows=1 width=259) |
One-Time Filter: (20019 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.15 rows=1 width=259) |
Hash Cond: (r_17.id = rsvr_17.erp_advance_payment_ticket_id) |
Filter: (((rvr_17.user_id = 1001) OR (rsvr_17.user_id = 1001)) AND ((CASE WHEN (1 = r_17.verify_type) THEN rvr_17.status ELSE CASE WHEN (r_17.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_17.status = 0) THEN NULL::integer ELSE rvr_17.status END END END = 0) OR (CASE WHEN (1 = r_17.verify_type) THEN rsvr_17.status ELSE CASE WHEN (r_17.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_17.status = 0) THEN NULL::integer ELSE rsvr_17.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.15 rows=179 width=259) |
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.25 rows=179 width=251) |
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=57.96..58.00 rows=1 width=265) |
-> Group (cost=57.96..57.99 rows=1 width=273) |
Group Key: r_18.id, rvr_18.status, rsvr_18.status |
-> Sort (cost=57.96..57.97 rows=1 width=262) |
Sort Key: r_18.id, rvr_18.status, rsvr_18.status |
-> Result (cost=44.38..57.95 rows=1 width=262) |
One-Time Filter: (20020 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..57.95 rows=1 width=262) |
Hash Cond: (r_18.id = rsvr_18.erp_other_payment_ticket_id) |
Filter: (((rvr_18.user_id = 1001) OR (rsvr_18.user_id = 1001)) AND ((CASE WHEN (1 = r_18.verify_type) THEN rvr_18.status ELSE CASE WHEN (r_18.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_18.status = 0) THEN NULL::integer ELSE rvr_18.status END END END = 0) OR (CASE WHEN (1 = r_18.verify_type) THEN rsvr_18.status ELSE CASE WHEN (r_18.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_18.status = 0) THEN NULL::integer ELSE rsvr_18.status END END END = 0))) |
-> Hash Left Join (cost=22.19..34.99 rows=169 width=262) |
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..12.12 rows=169 width=254) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_other_payment_ticket_verify_rels rvr_18 (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_other_payment_ticket_stop_verify_rels rsvr_18 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 20" (cost=57.96..58.00 rows=1 width=265) |
-> Group (cost=57.96..57.99 rows=1 width=273) |
Group Key: r_19.id, rvr_19.status, rsvr_19.status |
-> Sort (cost=57.96..57.97 rows=1 width=266) |
Sort Key: r_19.id, rvr_19.status, rsvr_19.status |
-> Result (cost=44.38..57.95 rows=1 width=266) |
One-Time Filter: (20021 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..57.95 rows=1 width=266) |
Hash Cond: (r_19.id = rsvr_19.erp_other_collect_ticket_id) |
Filter: (((rvr_19.user_id = 1001) OR (rsvr_19.user_id = 1001)) AND ((CASE WHEN (1 = r_19.verify_type) THEN rvr_19.status ELSE CASE WHEN (r_19.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_19.status = 0) THEN NULL::integer ELSE rvr_19.status END END END = 0) OR (CASE WHEN (1 = r_19.verify_type) THEN rsvr_19.status ELSE CASE WHEN (r_19.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_19.status = 0) THEN NULL::integer ELSE rsvr_19.status END END END = 0))) |
-> Hash Left Join (cost=22.19..34.99 rows=169 width=266) |
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..12.12 rows=169 width=258) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_other_collect_ticket_verify_rels rvr_19 (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_other_collect_ticket_stop_verify_rels rsvr_19 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 21" (cost=81.42..81.47 rows=1 width=265) |
-> Group (cost=81.42..81.45 rows=1 width=277) |
Group Key: r_20.id, rvr_20.status, rsvr_20.status, rcvr_2.status |
-> Sort (cost=81.42..81.42 rows=1 width=230) |
Sort Key: r_20.id, rvr_20.status, rsvr_20.status, rcvr_2.status |
-> Result (cost=66.57..81.41 rows=1 width=230) |
One-Time Filter: (20022 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=66.57..81.41 rows=1 width=230) |
Hash Cond: (r_20.id = rcvr_2.erp_purchase_cost_id) |
Filter: (((rvr_20.user_id = 1001) OR (rsvr_20.user_id = 1001) OR (rcvr_2.user_id = 1001)) AND ((CASE WHEN (1 = r_20.verify_type) THEN rvr_20.status ELSE CASE WHEN (r_20.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_20.status = 0) THEN NULL::integer ELSE rvr_20.status END END END = 0) OR (CASE WHEN (1 = r_20.verify_type) THEN rsvr_20.status ELSE CASE WHEN (r_20.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_20.status = 0) THEN NULL::integer ELSE rsvr_20.status END END END = 0) OR (CASE WHEN (1 = r_20.verify_type) THEN rcvr_2.status ELSE CASE WHEN (r_20.next_cancel_verify_user = 1001) THEN 0 ELSE CASE WHEN (rcvr_2.status = 0) THEN NULL::integer ELSE rcvr_2.status END END END = 0))) |
-> Hash Left Join (cost=44.38..58.27 rows=189 width=234) |
Hash Cond: (r_20.id = rsvr_20.erp_purchase_cost_id) |
-> Hash Left Join (cost=22.19..35.32 rows=189 width=226) |
Hash Cond: (r_20.id = rvr_20.erp_purchase_cost_id) |
-> Seq Scan on tbl_erp_purchase_costs r_20 (cost=0.00..12.38 rows=189 width=218) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_purchase_cost_verify_rels rvr_20 (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_cost_stop_verify_rels rsvr_20 (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_cost_cancel_verify_rels rcvr_2 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 22" (cost=59.01..59.05 rows=1 width=265) |
-> Group (cost=59.01..59.04 rows=1 width=273) |
Group Key: r_21.id, rvr_21.status, rsvr_21.status |
-> Sort (cost=59.01..59.01 rows=1 width=251) |
Sort Key: r_21.id, rvr_21.status, rsvr_21.status |
-> Result (cost=44.38..59.00 rows=1 width=251) |
One-Time Filter: (20023 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..59.00 rows=1 width=251) |
Hash Cond: (r_21.id = rsvr_21.erp_wage_ticket_id) |
Filter: (((rvr_21.user_id = 1001) OR (rsvr_21.user_id = 1001)) AND ((CASE WHEN (1 = r_21.verify_type) THEN rvr_21.status ELSE CASE WHEN (r_21.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_21.status = 0) THEN NULL::integer ELSE rvr_21.status END END END = 0) OR (CASE WHEN (1 = r_21.verify_type) THEN rsvr_21.status ELSE CASE WHEN (r_21.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_21.status = 0) THEN NULL::integer ELSE rsvr_21.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.81 rows=219 width=251) |
Hash Cond: (r_21.id = rvr_21.erp_wage_ticket_id) |
-> Seq Scan on tbl_erp_wage_tickets r_21 (cost=0.00..12.75 rows=219 width=243) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_wage_ticket_verify_rels rvr_21 (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_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=59.01..59.05 rows=1 width=265) |
-> Group (cost=59.01..59.04 rows=1 width=273) |
Group Key: r_22.id, rvr_22.status, rsvr_22.status |
-> Sort (cost=59.01..59.01 rows=1 width=251) |
Sort Key: r_22.id, rvr_22.status, rsvr_22.status |
-> Result (cost=44.38..59.00 rows=1 width=251) |
One-Time Filter: (20024 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..59.00 rows=1 width=251) |
Hash Cond: (r_22.id = rsvr_22.erp_social_insurance_id) |
Filter: (((rvr_22.user_id = 1001) OR (rsvr_22.user_id = 1001)) AND ((CASE WHEN (1 = r_22.verify_type) THEN rvr_22.status ELSE CASE WHEN (r_22.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_22.status = 0) THEN NULL::integer ELSE rvr_22.status END END END = 0) OR (CASE WHEN (1 = r_22.verify_type) THEN rsvr_22.status ELSE CASE WHEN (r_22.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_22.status = 0) THEN NULL::integer ELSE rsvr_22.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.81 rows=219 width=251) |
Hash Cond: (r_22.id = rvr_22.erp_social_insurance_id) |
-> Seq Scan on tbl_erp_social_insurances r_22 (cost=0.00..12.75 rows=219 width=243) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_social_insurance_verify_rels rvr_22 (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_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=59.01..59.05 rows=1 width=265) |
-> Group (cost=59.01..59.04 rows=1 width=273) |
Group Key: r_23.id, rvr_23.status, rsvr_23.status |
-> Sort (cost=59.01..59.01 rows=1 width=251) |
Sort Key: r_23.id, rvr_23.status, rsvr_23.status |
-> Result (cost=44.38..59.00 rows=1 width=251) |
One-Time Filter: (20025 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..59.00 rows=1 width=251) |
Hash Cond: (r_23.id = rsvr_23.erp_provident_fund_id) |
Filter: (((rvr_23.user_id = 1001) OR (rsvr_23.user_id = 1001)) AND ((CASE WHEN (1 = r_23.verify_type) THEN rvr_23.status ELSE CASE WHEN (r_23.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_23.status = 0) THEN NULL::integer ELSE rvr_23.status END END END = 0) OR (CASE WHEN (1 = r_23.verify_type) THEN rsvr_23.status ELSE CASE WHEN (r_23.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_23.status = 0) THEN NULL::integer ELSE rsvr_23.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.81 rows=219 width=251) |
Hash Cond: (r_23.id = rvr_23.erp_provident_fund_id) |
-> Seq Scan on tbl_erp_provident_funds r_23 (cost=0.00..12.75 rows=219 width=243) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_provident_fund_verify_rels rvr_23 (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_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=59.01..59.05 rows=1 width=265) |
-> Group (cost=59.01..59.04 rows=1 width=273) |
Group Key: r_24.id, rvr_24.status, rsvr_24.status |
-> Sort (cost=59.01..59.01 rows=1 width=251) |
Sort Key: r_24.id, rvr_24.status, rsvr_24.status |
-> Result (cost=44.38..59.00 rows=1 width=251) |
One-Time Filter: (20026 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..59.00 rows=1 width=251) |
Hash Cond: (r_24.id = rsvr_24.erp_personal_tax_id) |
Filter: (((rvr_24.user_id = 1001) OR (rsvr_24.user_id = 1001)) AND ((CASE WHEN (1 = r_24.verify_type) THEN rvr_24.status ELSE CASE WHEN (r_24.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_24.status = 0) THEN NULL::integer ELSE rvr_24.status END END END = 0) OR (CASE WHEN (1 = r_24.verify_type) THEN rsvr_24.status ELSE CASE WHEN (r_24.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_24.status = 0) THEN NULL::integer ELSE rsvr_24.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.81 rows=219 width=251) |
Hash Cond: (r_24.id = rvr_24.erp_personal_tax_id) |
-> Seq Scan on tbl_erp_personal_taxs r_24 (cost=0.00..12.75 rows=219 width=243) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_personal_tax_verify_rels rvr_24 (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_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=58.81..58.85 rows=1 width=265) |
-> Group (cost=58.81..58.84 rows=1 width=273) |
Group Key: r_25.id, rvr_25.status, rsvr_25.status |
-> Sort (cost=58.81..58.81 rows=1 width=251) |
Sort Key: r_25.id, rvr_25.status, rsvr_25.status |
-> Result (cost=44.38..58.80 rows=1 width=251) |
One-Time Filter: (20027 = ANY ('{20024,20025,20026,20027,20023}'::integer[])) |
-> Hash Left Join (cost=44.38..58.80 rows=1 width=251) |
Hash Cond: (r_25.id = rsvr_25.erp_wage_prize_id) |
Filter: (((rvr_25.user_id = 1001) OR (rsvr_25.user_id = 1001)) AND ((CASE WHEN (1 = r_25.verify_type) THEN rvr_25.status ELSE CASE WHEN (r_25.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr_25.status = 0) THEN NULL::integer ELSE rvr_25.status END END END = 0) OR (CASE WHEN (1 = r_25.verify_type) THEN rsvr_25.status ELSE CASE WHEN (r_25.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr_25.status = 0) THEN NULL::integer ELSE rsvr_25.status END END END = 0))) |
-> Hash Left Join (cost=22.19..35.65 rows=209 width=251) |
Hash Cond: (r_25.id = rvr_25.erp_wage_prize_id) |
-> Seq Scan on tbl_erp_wage_prizes r_25 (cost=0.00..12.62 rows=209 width=243) |
Filter: (status <> 0) |
-> Hash (cost=22.12..22.12 rows=5 width=12) |
-> Seq Scan on tbl_erp_wage_prize_verify_rels rvr_25 (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_wage_prize_stop_verify_rels rsvr_25 (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |