delete from sys_user_depart where user_id = #{userId} and dep_id in( select id from sys_depart where tenant_id = #{tenantId} )