| 
					
				 | 
			
			
				@@ -22,11 +22,22 @@ public class SynVoucherSapOpPlugin extends AbstractOperationServicePlugIn implem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return entityx.getLong("id"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }).collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        SynSapFIServiceImpl synSapService = new SynSapFIServiceImpl(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(billids != null || billids.size() > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SynSapFIServiceImpl synSapService = new SynSapFIServiceImpl(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Map<String, String> result=synSapService.synVoucherForSap(billids); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Map<String, String> result=synSapService.synVoucherForSap(billids); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        System.out.println(result.get("msg")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.getOperationResult().setSuccess(false); // 操作失败 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.operationResult.setMessage(result.get("msg")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(result.get("code").equals("200")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.operationResult.setShowMessage(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.operationResult.setSuccess(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.operationResult.setMessage(result.get("msg")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.operationResult.addErrorInfo(new ValidationErrorInfo("", null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        0, 0, "同步失败", "billtitle", result.get("msg"), ErrorLevel.Error)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.operationResult.setShowMessage(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.operationResult.setSuccess(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.operationResult.setMessage("没选中数据!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |