From 597cd0c3a9c51e4239fab535a9d41dc66497ad8e Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 18 Oct 2019 14:19:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=AE=A1=E6=A0=B8=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/admins/shixun_authorizations_controller.rb | 2 +- .../admins/shixun_authorizations/shared/_list.html.erb | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/controllers/admins/shixun_authorizations_controller.rb b/app/controllers/admins/shixun_authorizations_controller.rb index 31bd5faf7..14d43b00a 100644 --- a/app/controllers/admins/shixun_authorizations_controller.rb +++ b/app/controllers/admins/shixun_authorizations_controller.rb @@ -26,7 +26,7 @@ class Admins::ShixunAuthorizationsController < Admins::BaseController @applies = paginate applies.includes(user: :user_extension) shixun_ids = @applies.map(&:container_id) - @shixun_map = Shixun.where(id: shixun_ids).each_with_object({}) { |s, h| h[s.id] = s } + @shixun_map = Shixun.where(id: shixun_ids).includes(:shixun_reviews).each_with_object({}) { |s, h| h[s.id] = s } end def agree diff --git a/app/views/admins/shixun_authorizations/shared/_list.html.erb b/app/views/admins/shixun_authorizations/shared/_list.html.erb index 042e4096e..fdb33fdde 100644 --- a/app/views/admins/shixun_authorizations/shared/_list.html.erb +++ b/app/views/admins/shixun_authorizations/shared/_list.html.erb @@ -6,6 +6,7 @@