|
|
@ -724,8 +724,12 @@ class EcCoursesController < ApplicationController
|
|
|
|
va = total_rate.select{|tra| tra[:position] == po}.first
|
|
|
|
va = total_rate.select{|tra| tra[:position] == po}.first
|
|
|
|
reach_real_target += va[:score] * va[:rate] if va.present?
|
|
|
|
reach_real_target += va[:score] * va[:rate] if va.present?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails.logger.info("######round11111111#{(target_total_rates == 0 ? 0 : (reach_real_target * weight)/(target_total_rates.round(3)*100))}")
|
|
|
|
reach_real_target = target_total_rates == 0 ? 0 : (reach_real_target * weight)/(target_total_rates*100)
|
|
|
|
reach_real_target = target_total_rates == 0 ? 0 : (reach_real_target * weight)/(target_total_rates*100)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails.logger.info("######round2222222#{reach_real_target}")
|
|
|
|
|
|
|
|
|
|
|
|
if ec_course_support.present?
|
|
|
|
if ec_course_support.present?
|
|
|
|
logger.info("----------ec_course_support: #{ec_course_support.id}")
|
|
|
|
logger.info("----------ec_course_support: #{ec_course_support.id}")
|
|
|
|
egrc = ec_course_support.ec_graduation_requirement_calculation
|
|
|
|
egrc = ec_course_support.ec_graduation_requirement_calculation
|
|
|
|