|
|
|
@ -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)
|
|
|
|
|
|
|
|
|
|