| 
					
				 | 
			
			
				@@ -43,6 +43,12 @@ public class AddOrderJob implements Job,ApplicationContextAware { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private static ISenYuDataSourceTwo senYuDataSourceTwo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private static ISenYuDataSourceThree senYuDataSourceThree; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private String code; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void setCode(String code){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.code=code; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         System.out.println("销售订单拉取U8数据定时任务开始========================》"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //得到系统时间 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -122,7 +128,13 @@ public class AddOrderJob implements Job,ApplicationContextAware { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         " LEFT JOIN Customer cc ON s.cCusCode = cc.cCusCode" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         " LEFT JOIN Person  pe ON s.cPersonCode = pe.cPersonCode" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         " left join Vendor v on s.cDefine12=v.cVenName" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        " where s.iStatus = 1  AND (s.cdefine15 is null or  s.cdefine15 !='1')  order by s.dDate desc ";//and s.dverifysystime > '"+lastTimeSf+"' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        " where s.iStatus = 1  AND (s.cdefine15 is null or  s.cdefine15 !='1') "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(this.code==null || this.code.equals("") || this.code.equals(" ")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    sql=sql+" order by s.dDate desc "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    sql=sql+" s.cSOCode = "+this.code+" order by s.dDate desc "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 List<Map<String, Object>> list = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(pkorgValue[0].equals("one")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     list = senYuDataSourceOne.queryForList(sql); 
			 |