| 
					
				 | 
			
			
				@@ -14,6 +14,7 @@ import org.jeecg.modules.openApi.service.IDxpDataPlanService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.openApi.service.ISenYuDataSourceOne; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.jeecg.modules.system.util.JsonChangeUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.BeansException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.context.ApplicationContext; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.context.ApplicationContextAware; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.scheduling.annotation.Scheduled; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -35,7 +36,7 @@ import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @Version: V1.0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Service 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-@Transactional 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//@Transactional 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public class SyOrderDataServiceImpl extends ServiceImpl<SyOrderDataMapper, SyOrderData> implements ISyOrderDataService, ApplicationContextAware { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private static IDxpDataPlanService dxpDataPlanService; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,7 +50,7 @@ public class SyOrderDataServiceImpl extends ServiceImpl<SyOrderDataMapper, SyOrd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         QuerySyOrder(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @Scheduled(cron = "0 51 9 * * ?") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Scheduled(cron = "0 59 23 * * ?") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public JSONObject QuerySyOrder() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //得到系统时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Date day=new Date(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -79,10 +80,10 @@ public class SyOrderDataServiceImpl extends ServiceImpl<SyOrderDataMapper, SyOrd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //得到对应的账套 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 String account = pkorgValue[1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                /*SO_SODetails SO_SOMain 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    String sql = "select top 3 ID as id,cSOCode as orderNumber,dDate as orderDate,cBusType as businessTypeValue,cCusCode as customerName," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            "cPersonCode as salesman,cDepCode as salesDepartment,cexch_name as currencyValue,fbookratio as depositRatio," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            "iMoney as deposit,cMemo as memo from SO_SOMain";*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                /* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                SO_SOMain 销售订单数据 单据时间没有详细时间 只有日期 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                SO_SODetails SO_SOMain 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 String sql = "SELECT " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         "s.ID AS id," + 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -113,11 +114,9 @@ public class SyOrderDataServiceImpl extends ServiceImpl<SyOrderDataMapper, SyOrd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         " left join SaleType t on s.cSTCode = t.cSTCode" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         " left join foreigncurrency y on s.cexch_name = y.cexch_name" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         " left join PayCondition p on s.cPayCode = p.cPayCode where s.dDate > '"+lastTimeSf+"'"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 List<Map<String, Object>> list = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(pkorgValue[0].equals("one")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     list = senYuDataSourceOne.queryForList(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    System.out.println("========================="+list.size()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }else if(pkorgValue[0].equals("two")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 |