重置myshixun时更新用户关联的作业

dev_shixuns
cxt 6 years ago
parent 4aadc998b9
commit 3bd2a00768

@ -930,7 +930,8 @@ class GamesService
end end
#end #end
myshixun_job = Base64.urlsafe_encode64("myshixun_#{myshixun.id}") 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.destroy
myshixun.delete myshixun.delete
# 主从复制出现脏读的情况 # 主从复制出现脏读的情况

Loading…
Cancel
Save