fix 计算错误

dev_local_lzdx
xiaoxiaoqiong 3 years ago
parent 1e82919df7
commit afec8ccc57

@ -850,7 +850,6 @@ class EcCoursesController < ApplicationController
logger.info("###############ec_graduation_subitem: #{ec_graduation_subitem.id}")
# 课程体系
ec_course_support = ec_graduation_subitem.ec_course_supports.where(:ec_course_id => @ec_course.id).first
ec_course_support = EcCourseSupport.where(:ec_course_id => @ec_course.id).first if ec_course_support.blank?
logger.info("###############################ec_course_support:#{ec_course_support.try(:id)}")
weight = ec_course_support.try(:weigths) || 0
# position

Loading…
Cancel
Save