| | |
| | | @Autowired |
| | | private WrkMastStaService wrkMastStaService; |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | private void execute(){ |
| | | List<WrkMast> wrkMasts = wrkMastService.selectToBeHistoryData(); |
| | | if (wrkMasts.isEmpty()) { |
| | | if (Cools.isEmpty(wrkMasts) || wrkMasts.size()==0) { |
| | | return; |
| | | } |
| | | for (WrkMast wrkMast : wrkMasts) { |
| | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute3(){ |
| | | List<WrkMast> wrkMasts = wrkMastService.selectToBeHistoryData2(); |
| | | if (wrkMasts.isEmpty()) { |
| | | if (Cools.isEmpty(wrkMasts) || wrkMasts.size()==0) { |
| | | return; |
| | | } |
| | | for (WrkMast wrkMast : wrkMasts) { |