|  |  | 
 |  |  | import com.zy.common.entity.Parameter; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.beans.factory.annotation.Value; | 
 |  |  | import org.springframework.scheduling.annotation.Async; | 
 |  |  | import org.springframework.scheduling.annotation.Scheduled; | 
 |  |  | import org.springframework.stereotype.Component; | 
 |  |  | 
 |  |  |     private OrderService orderService; | 
 |  |  |     @Autowired | 
 |  |  |     private ApiLogService apiLogService; | 
 |  |  |  | 
 |  |  |     @Value("${erp.switch.ErpReportOld}") | 
 |  |  |     private boolean ErpReportOld; | 
 |  |  |  | 
 |  |  |     @Scheduled(cron = "0 0 1 * * ? ") | 
 |  |  |     public void clearApiLog() { | 
 |  |  | 
 |  |  | //        } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Scheduled(cron = "0/5 * * * * ? ") | 
 |  |  | //    @Scheduled(cron = "0/5 * * * * ? ") | 
 |  |  |     @Async("orderThreadPool") | 
 |  |  |     public void completeAndReportOrderInAndOutUtil() { | 
 |  |  | //        String erpReport = Parameter.get().getErpReport(); | 
 |  |  | 
 |  |  | //        } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Scheduled(cron = "0/5 * * * * ? ") | 
 |  |  | //    @Scheduled(cron = "0/30 * * * * ? ") | 
 |  |  |     @Async("orderThreadPool") | 
 |  |  |     public void completeAndReportOrderReport() { | 
 |  |  |         if (!ErpReportOld){ | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |         String erpReport = Parameter.get().getErpReport(); | 
 |  |  |         if (!Cools.isEmpty(erpReport) && erpReport.equals("true")) { | 
 |  |  |             List<Order> orders = orderService.selectComplete(); |