From abe242b1c0df5366074b91ec7797a3291674051a Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 15 Aug 2019 14:27:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E7=9A=84=E8=80=83=E6=A0=B8?= =?UTF-8?q?=E5=92=8C=E6=95=B0=E6=8D=AE=E6=9D=A5=E6=BA=90=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=98=8E=E7=BB=86=E6=88=90=E7=BB=A9=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=AF=BC=E5=85=A5=E6=88=90=E7=BB=A9=EF=BC=8C=E6=8A=A5?= =?UTF-8?q?=E5=B9=B3=E5=9D=87=E6=88=90=E7=BB=A9=E5=8F=AA=E8=83=BD1?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ec_course_evaluations_controller.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/controllers/ec_course_evaluations_controller.rb b/app/controllers/ec_course_evaluations_controller.rb index 2d3c2d05..52da9c86 100644 --- a/app/controllers/ec_course_evaluations_controller.rb +++ b/app/controllers/ec_course_evaluations_controller.rb @@ -171,10 +171,6 @@ class EcCourseEvaluationsController < ApplicationController EcStudentAchievement.where(:ec_course_evaluation_subitem_id => subitems.pluck(:id)).destroy_all score_type = worksheet.cell(1, 1) && worksheet.cell(1, 1).try(:strip) == "学号" ? 1 : 2 - logger.info("####evluation_count: #{@ce.evluation_count}") - logger.info("####length: #{length}") - logger.info("####score_type: #{score_type}") - logger.info("#### worksheet.cell(1, 1): #{ worksheet.cell(1, 1)}") if score_type == 2 && rows > 3 render :json => {status: 0, message: "平均成绩只能有一行数据"} else