dev_forum
SylorHuang 5 years ago
parent 44e4496928
commit af2f6ae95e

@ -101,14 +101,12 @@ class ZipsController < ApplicationController
@course = @homework.course @course = @homework.course
##7。2 -hs新增 ##7。2 -hs新增
@member = @course.course_member(current_user.id) @member = @course.course_member(current_user.id)
@all_student_works = @homework.teacher_works(@member) @all_student_works = @homework.teacher_works(@member).where("work_status > 0")
work_status = params[:work_status] work_status = params[:work_status]
group_id = params[:course_group] group_id = params[:course_group]
if work_status.present? && !work_status.include?(0) if work_status.present?
@all_student_works = @all_student_works.where(work_status:work_status) @all_student_works = @all_student_works.where(work_status:work_status)
elsif work_status.present? && work_status.include?(0)
normal_status(-1,"仅支持导出已提交的学生!")
end end
if group_id.present? if group_id.present?

Loading…
Cancel
Save