打印日志

dev_aliyun
daiao 5 years ago
parent cf82b7ad97
commit 9873bffa78

@ -169,7 +169,7 @@ class EcCourseEvaluationsController < ApplicationController
else else
score_count = @ce.evluation_count * length score_count = @ce.evluation_count * length
EcStudentAchievement.where(:ec_course_evaluation_subitem_id => subitems.pluck(:id)).destroy_all EcStudentAchievement.where(:ec_course_evaluation_subitem_id => subitems.pluck(:id)).destroy_all
score_type = worksheet.cell(1, 1) == "学号" ? 1 : 2 score_type = worksheet.cell(1, 1) && worksheet.cell(1, 1).try(:strip) == "学号" ? 1 : 2
logger.info("####evluation_count: #{@ce.evluation_count}") logger.info("####evluation_count: #{@ce.evluation_count}")
logger.info("####length: #{length}") logger.info("####length: #{length}")

Loading…
Cancel
Save