Raod 2 years ago
parent 8df75b69a7
commit 278127a072

@ -206,10 +206,7 @@ public class GaeaFileServiceImpl implements GaeaFileService {
public void processBatchAfterOperation(List<GaeaFile> entities, BaseOperationEnum operationEnum) throws BusinessException {
if (operationEnum.equals(BaseOperationEnum.DELETE_BATCH)) {
// 删除本地文件
entities.forEach(gaeaFile -> {
String filePath = gaeaFile.getFilePath();
gaeaOSSTemplate.deleteFile(filePath);
});
entities.forEach(gaeaFile -> gaeaOSSTemplate.deleteFile(gaeaFile.getFileId().concat(".").concat(gaeaFile.getFileType())));
}
}

Loading…
Cancel
Save