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