dev_aliyun2
cxt 5 years ago committed by harry
parent a5fb65cb29
commit 7e2f6f0064

@ -17,5 +17,5 @@ json.history_attendances @history_attendances.each_with_index.to_a do |attendanc
end
json.all_history_count @all_history_count
json.avg_normal_rate all_normal_rate.sum / @all_history_count
json.avg_absence_rate all_absence_rate.sum / @all_history_count
json.avg_normal_rate @all_history_count == 0 ? 0 : all_normal_rate.sum / @all_history_count
json.avg_absence_rate @all_history_count == 0 ? 0 : all_absence_rate.sum / @all_history_count

Loading…
Cancel
Save