|  |  |  | @ -36,7 +36,7 @@ class MyshixunsController < ApplicationController | 
			
		
	
		
			
				
					|  |  |  |  |         StudentWork.where(:myshixun_id => @myshixun.id).update_all(:myshixun_id => 0, :work_status => 0) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         # 实训在申请发布前,是否玩过实训,如果玩过需要更改记录,防止二次重置 | 
			
		
	
		
			
				
					|  |  |  |  |         shixun_mod = ShixunModify.exists?(:shixun_id => @shixun.id, :myshixun_id => @myshixun.id, :status => 1) | 
			
		
	
		
			
				
					|  |  |  |  |         shixun_mod = ShixunModify.where(:shixun_id => @shixun.id, :myshixun_id => @myshixun.id, :status => 1).take | 
			
		
	
		
			
				
					|  |  |  |  |         shixun_mod.update_column(:status, 0) if shixun_mod | 
			
		
	
		
			
				
					|  |  |  |  |       rescue Exception => e | 
			
		
	
		
			
				
					|  |  |  |  |         uid_logger_error("myshixun reset failed #{e}") | 
			
		
	
	
		
			
				
					|  |  |  | 
 |