| | |
| | | return save(sFile); |
| | | } |
| | | |
| | | public boolean deleteFile(Long id) { |
| | | LedSFile byId = getById(id); |
| | | if (byId == null) { |
| | | public boolean deleteFile(List<Long> fileIds) { |
| | | if (fileIds.isEmpty()) { |
| | | throw new BusinessException("文件id不能为空"); |
| | | } |
| | | List<LedSFile> ledSFiles = listByIds(fileIds); |
| | | if (ledSFiles.isEmpty()) { |
| | | throw new BusinessException("未找到该节目"); |
| | | } |
| | | |
| | | /** |
| | | * 熙汛文件删除 日志记录开始 |
| | | */ |
| | | String content = "文件内容id:" + id + "文件内容:" + JSON.toJSONString(byId); |
| | | String content = "文件内容id:" + fileIds + "文件内容:" + JSON.toJSONString(ledSFiles); |
| | | StoreOperationRecordsUtils.storeOperationData(null, null, "熙汛文件删除", content); |
| | | /** |
| | | * 熙汛文件删除 日志记录结束 |
| | | */ |
| | | return removeById(id); |
| | | return removeByIds(fileIds); |
| | | } |
| | | |
| | | |