| | |
| | | } |
| | | |
| | | |
| | | @Scheduled(cron = "0 */10 * * * ?") |
| | | // @Scheduled(cron = "0 */10 * * * ?") |
| | | public void remove() throws IOException { |
| | | System.out.println("同步删除......"); |
| | | List<Long> ids = baseMapper.getWillDeleted(LocalDateTime.now().minusDays(1)); |
| | |
| | | * |
| | | * @throws IOException |
| | | */ |
| | | @Scheduled(cron = "0 0 * * * ?") |
| | | // @Scheduled(cron = "0 0 * * * ?") |
| | | public void removeOssTable() throws IOException { |
| | | System.out.println("每小时定时删除超过30天的数据库文件信息......"); |
| | | List<Long> ids = baseMapper.getWillDeleted(LocalDateTime.now().minusDays(30)); |