master
			
			
		
		
							parent
							
								
									f604fdc265
								
							
						
					
					
						commit
						aa8ab5eb2e
					
				@ -0,0 +1,34 @@ | 
				
			|||||||
 | 
					package com.zbkj.admin.task.order; | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import com.zbkj.common.utils.CrmebDateUtil; | 
				
			||||||
 | 
					import com.zbkj.service.service.OrderTaskService; | 
				
			||||||
 | 
					import org.slf4j.Logger; | 
				
			||||||
 | 
					import org.slf4j.LoggerFactory; | 
				
			||||||
 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			||||||
 | 
					import org.springframework.stereotype.Component; | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** | 
				
			||||||
 | 
					 * 新订单自动同步ruoyi | 
				
			||||||
 | 
					 * @author wyq | 
				
			||||||
 | 
					 */ | 
				
			||||||
 | 
					@Component("OrderWechatPayQueryTask") | 
				
			||||||
 | 
					public class OrderWechatPayQueryTask { | 
				
			||||||
 | 
					    @Autowired | 
				
			||||||
 | 
					    private OrderTaskService orderTaskService; | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static final Logger logger = LoggerFactory.getLogger(OrderWechatPayQueryTask.class); | 
				
			||||||
 | 
					    public void autoSync() | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    { | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        logger.info("---OrderWechatPayQueryTask task------produce Data with fixed rate task: Execution Time - {}", CrmebDateUtil.nowDateTime()); | 
				
			||||||
 | 
					        try { | 
				
			||||||
 | 
					            orderTaskService.wechatPayQuery(); | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        } catch (Exception e) { | 
				
			||||||
 | 
					            e.printStackTrace(); | 
				
			||||||
 | 
					            logger.error("OrderWechatPayQueryTask.task" + " | msg : " + e.getMessage()); | 
				
			||||||
 | 
					        } | 
				
			||||||
 | 
					    } | 
				
			||||||
 | 
					} | 
				
			||||||
					Loading…
					
					
				
		Reference in new issue