| 
					
				 | 
			
			
				@@ -152,8 +152,13 @@ class RestaurantController extends Curd{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $printerList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         try{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            $premise = SysDept::where('dept_name',$premiseName)->where('dept_category','营业场所')->first(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            $resraurant = SysDept::where('dept_super_id',$premise->dept_id)->where('dept_category','餐厅')->first(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $resraurant = SysDept::where('dept_name',$premiseName)->where('dept_category','餐厅')->first(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!$resraurant){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $premise = SysDept::where('dept_name',$premiseName)->where('dept_category','营业场所')->first(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $resraurant = SysDept::where('dept_super_id',$premise->dept_id)->where('dept_category','餐厅')->first(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (!empty($resraurant->dept_extend_json)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $deptExtendJson = json_decode($resraurant->dept_extend_json,true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (isset($deptExtendJson['printer'])){ 
			 |