From d656a879b31b06e6ab65ea5c7d1a70f50dce1643 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 25 Jun 2019 15:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/student_works_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/student_works_controller.rb b/app/controllers/student_works_controller.rb index e2d26e89f..7d22f4b71 100644 --- a/app/controllers/student_works_controller.rb +++ b/app/controllers/student_works_controller.rb @@ -433,6 +433,8 @@ class StudentWorksController < ApplicationController # 用户最大评测次数 logger.info("-----------#{@games.map(&:evaluate_count)}") + logger.info("-------sum_evaluate_count----#{@games.sum(:evaluate_count)}") + logger.info("-----------#{@games.sum(:evaluate_count).to_sql}") @user_evaluate_count = @games.sum(:evaluate_count) if @games # 图形效率图的数据 @echart_data = student_efficiency(@homework, @work)