| | |
| | | this.serviceFactory = serviceFactory; |
| | | } |
| | | |
| | | private final ExecutorService executorService = Executors.newFixedThreadPool(4); |
| | | private final ExecutorService executorService = Executors.newFixedThreadPool(40); |
| | | |
| | | @Scheduled(cron = "0 0 22 * * ?") |
| | | public void executeTasks() { |
| | | List<String> list = Arrays.asList("shanxiqinxamjyy","shanxiqinpbkwyy"); |
| | | List<String> list = Arrays.asList("shanxiqinxamjyy","shanxiqinpbkwyy","shanxiqinjdczgzyy"); |
| | | log.info("开始执行定时任务:{}", System.currentTimeMillis()); |
| | | try { |
| | | for (String hosp : list) { |
| | |
| | | log.error("定时任务执行异常:", e); |
| | | } |
| | | } |
| | | } |
| | | } |