| | |
| | | package com.zy.asrs.task; |
| | | |
| | | import cn.hutool.core.date.StopWatch; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.Cools; |
| | |
| | | @Scheduled(fixedDelay = 600000) |
| | | //@Async("orderThreadPool") |
| | | public void completeAndReport() { |
| | | StopWatch stopWatch = new StopWatch(); |
| | | stopWatch.start(); |
| | | String erpReport = Parameter.get().getErpReport(); |
| | | if (!Cools.isEmpty(erpReport) && erpReport.equals("true")) { |
| | | List<Order> orders = orderService.selectComplete(); |
| | |
| | | } |
| | | } |
| | | } |
| | | stopWatch.stop(); |
| | | log.info("定时任务完成,耗时:{}ms", stopWatch.getTotalTimeMillis()); |
| | | } |
| | | |
| | | //@Scheduled(cron = "* 0/5 * * * ? ") |
| | |
| | | } finally { |
| | | page++; |
| | | } |
| | | log.info("分页查询完毕,{}", page); |
| | | } |
| | | |
| | | } |