| | |
| | | @Autowired |
| | | private TicketBlackService ticketBlackService; |
| | | |
| | | //@Scheduled(cron = "0 0/40 * * * ?") |
| | | @Scheduled(cron = "0 0/40 * * * ?") |
| | | public void execute() throws IOException { |
| | | System.out.println("开始定时任务-------》"); |
| | | System.out.println("开始统计定时任务-------》"); |
| | | // List<TicketBlack> list = ticketBlackService.updateType(); |
| | | // if(list.size() > 0){ |
| | | // for(TicketBlack t:list){ |
| | |
| | | statistic.setData19(ticketBlackService.count1()); |
| | | statistic.setData20(ticketBlackService.count2()); |
| | | statisticService.saveOrUpdate(statistic); |
| | | System.out.println("结束定时任务-------》"); |
| | | System.out.println("结束统计定时任务-------》"); |
| | | } |
| | | } |