|
|
|
@ -81,8 +81,10 @@ namespace :public_classes do
|
|
|
|
|
|
|
|
|
|
homework.update_columns(publish_time: publish_time, end_time: end_time, created_at: created_at, updated_at: updated_at)
|
|
|
|
|
homework.homework_detail_manual.update_columns(comment_status: 6, created_at: created_at, updated_at: updated_at)
|
|
|
|
|
homework.update_homework_work_score
|
|
|
|
|
homework.update_attribute('calculation_time', end_time)
|
|
|
|
|
|
|
|
|
|
homework.student_works.where("work_status !=0 and update_time > '#{end_time}'").update_all(update_time: end_time)
|
|
|
|
|
# homework.student_works.where("work_status !=0 and update_time > '#{end_time}'").update_all(update_time: end_time)
|
|
|
|
|
end
|
|
|
|
|
when 3
|
|
|
|
|
# 试卷
|
|
|
|
|