| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | //@Scheduled(cron = "0/5 * * * * ? ") |
| | | @Scheduled(fixedDelay = 5000) |
| | | //@Async("orderThreadPool") |
| | | public void completeAndReport() { |
| | | String erpReport = Parameter.get().getErpReport(); |
| | |
| | | } |
| | | |
| | | //@Scheduled(cron = "* 0/5 * * * ? ") |
| | | @Scheduled(cron = "0/30 * * * * ? ") |
| | | //@Scheduled(cron = "0/30 * * * * ? ") |
| | | @Scheduled(fixedDelay = 30000) |
| | | //@Async("orderThreadPool") |
| | | public synchronized void reportOrder() { |
| | | List<Order> orderList = orderService.selectList(new EntityWrapper<Order>().in("settle", 2, 4)); |
| | |
| | | /* |
| | | 定时查询状态为2.作业中的单据,检查是否完成 |
| | | */ |
| | | @Scheduled(cron = "0 */1 * * * ? ") |
| | | //@Scheduled(cron = "0 */1 * * * ? ") |
| | | @Scheduled(fixedDelay = 60000) |
| | | public void completeOrder() { |
| | | List<Order> orderList = orderService.selectList(new EntityWrapper<Order>().eq("settle", 2)); |
| | | orderList.forEach(order -> { |