附件的导出

competitions
cxt 5 years ago
parent 6cb05c62e1
commit 54d97c900b

@ -161,7 +161,7 @@ class HomeworkCommonsController < ApplicationController
# 作品状态 0 未提交, 1 按时提交, 2 延迟提交
if params[:work_status].present?
params_work_status = request.get? ? params[:work_status].split(",") : params[:work_status]
work_status = params_work_status.split(",").map{|status| status.to_i}
work_status = params_work_status.map{|status| status.to_i}
all_student_works = @student_works.left_joins(:myshixun)
@student_works = all_student_works.where(work_status: work_status)

Loading…
Cancel
Save