|
|
@ -4220,13 +4220,13 @@ end
|
|
|
|
sheet1[count_row,4] = course.homework_commons.where(:homework_type => 1).count
|
|
|
|
sheet1[count_row,4] = course.homework_commons.where(:homework_type => 1).count
|
|
|
|
sheet1[count_row,5] = course.homework_commons.where(:homework_type => 4).count
|
|
|
|
sheet1[count_row,5] = course.homework_commons.where(:homework_type => 4).count
|
|
|
|
sheet1[count_row,6] = course.exercises.count
|
|
|
|
sheet1[count_row,6] = course.exercises.count
|
|
|
|
sheet1[count_row,6] = course.evaluate_count
|
|
|
|
sheet1[count_row,7] = course.evaluate_count
|
|
|
|
sheet1[count_row,7] = course.is_public.to_i == 1 ? '否' : '是'
|
|
|
|
sheet1[count_row,8] = course.is_public.to_i == 1 ? '否' : '是'
|
|
|
|
sheet1[count_row,8] = course.is_end ? "已结束" : "正在进行"
|
|
|
|
sheet1[count_row,9] = course.is_end ? "已结束" : "正在进行"
|
|
|
|
sheet1[count_row,9] = school
|
|
|
|
sheet1[count_row,10] = school
|
|
|
|
sheet1[count_row,10] = teacher_name
|
|
|
|
sheet1[count_row,11] = teacher_name
|
|
|
|
sheet1[count_row,11] = format_time(course.updatetime)
|
|
|
|
sheet1[count_row,12] = format_time(course.updatetime)
|
|
|
|
sheet1[count_row,12] = format_time(course.created_at)
|
|
|
|
sheet1[count_row,13] = format_time(course.created_at)
|
|
|
|
count_row += 1
|
|
|
|
count_row += 1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
book.write xls_report
|
|
|
|
book.write xls_report
|
|
|
|