|
|
|
@ -1173,7 +1173,7 @@ class ExercisesController < ApplicationController
|
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
|
begin
|
|
|
|
|
@current_user_id = current_user.id
|
|
|
|
|
@exercise = @exercise.includes(:exercise_questions)
|
|
|
|
|
@exercise = @exercise
|
|
|
|
|
exercise_ids = [@exercise.id]
|
|
|
|
|
@exercise_status = @exercise.get_exercise_status(current_user.id)
|
|
|
|
|
@course_all_members = @course.students
|
|
|
|
@ -1297,7 +1297,7 @@ class ExercisesController < ApplicationController
|
|
|
|
|
if @user_course_identity > Course::ASSISTANT_PROFESSOR
|
|
|
|
|
tip_exception(403,"无权限操作")
|
|
|
|
|
else
|
|
|
|
|
if @exercise_users_size.size > 0
|
|
|
|
|
if @exercise_users_size == 0
|
|
|
|
|
normal_status(-1,"暂无用户提交")
|
|
|
|
|
else
|
|
|
|
|
get_export_users(@exercise,@course,@export_ex_users)
|
|
|
|
|