From 3bd2a00768d9529c095d199df171fd28660592b0 Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 12 Mar 2019 16:03:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=BD=AEmyshixun=E6=97=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=94=A8=E6=88=B7=E5=85=B3=E8=81=94=E7=9A=84=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/games_service.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/services/games_service.rb b/app/services/games_service.rb index 57d0e829..956e5809 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -930,7 +930,8 @@ class GamesService end #end myshixun_job = Base64.urlsafe_encode64("myshixun_#{myshixun.id}") - StudentWork.where(:myshixun_id => myshixun.id).update_all(:myshixun_id => nil, :work_status => 0) + StudentWork.where(:myshixun_id => myshixun.id).update_all(:myshixun_id => 0, :work_status => 0, :work_score => nil, :final_score => nil, + :cost_time => 0, :update_time => nil) # myshixun.destroy myshixun.delete # 主从复制出现脏读的情况