| 
					
				 | 
			
			
				@@ -40,6 +40,7 @@ public class SynSapFIServiceImpl implements SynSapService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Map<String, String> result = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         StringBuilder err = new StringBuilder(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         int count = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        int errCount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (Long vouchsreId : vouchsreIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             QFilter qf1 = new QFilter("billstatus", QCP.equals, "C"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -100,6 +101,7 @@ public class SynSapFIServiceImpl implements SynSapService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (!"S".equals(type)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     err.append("/n 同步SAP凭证:" + voucherInfo + ",错误信息:" + msg + "|" + notes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     logger.info("同步SAP凭证:"  + voucherInfo + ",错误信息:" + msg + "|" + notes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    errCount++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     count++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -111,7 +113,7 @@ public class SynSapFIServiceImpl implements SynSapService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             result.put("msg", "同步SAP凭证,执行成功,本次同步数量"+count); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             result.put("code", "300"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            result.put("msg", "但是,同步SAP凭证,本次同步成功数量"+count +",失败信息:"+ err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            result.put("msg", "但是,同步SAP凭证,本次同步成功数量"+count +",失败数量" + errCount +",失败信息:"+ err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return result; 
			 |