| | |
| | | } |
| | | |
| | | |
| | | @Scheduled(cron = "0 0 15 * * ?") |
| | | @Scheduled(cron = "0 0 16 * * ?") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void deleteAlarmTask() { |
| | | System.out.println("----------------执行清除数据任务:"); |
| | |
| | | String picData = baseCaseVO.getPicData(); |
| | | String[] urls = picData.split(","); |
| | | for (String url : urls) { |
| | | try { |
| | | ossService.deleteImages(url); |
| | | } catch (UnsupportedEncodingException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | baseCaseService.removeById(baseCaseVO.getBaseId()); |
| | | imageService.removeById(baseCaseVO.getImageId()); |