| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -19,10 +19,17 @@ func NewPrintHandler() *PrintHandler { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							stage: stages.NewStage("测试打印"), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						the.stage.AddProcess(the.print) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						the.stage.AddProcess(the.printDatas) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						return the | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					func (the *PrintHandler) printDatas(data []*common_models.ProcessData) []*common_models.ProcessData { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						for _, processData := range data { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							the.print(processData) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						return data | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					func (the *PrintHandler) print(p *common_models.ProcessData) *common_models.ProcessData { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						log.Printf("处理设备[%s]数据", p.DeviceData.Name) | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |