update 资料中心

This commit is contained in:
liao
2023-10-31 15:30:28 +08:00
parent 89525e6523
commit c7dc21b123
2 changed files with 4 additions and 1 deletions
@@ -107,6 +107,9 @@ public class LawsDataCenterFileServiceImpl extends ServiceImpl<LawsDataCenterFil
BeanUtils.copyProperties(lawsDataCenterFile, file); BeanUtils.copyProperties(lawsDataCenterFile, file);
file.setFileId(fileId); file.setFileId(fileId);
OSSFile ossFile = ossFileService.getById(fileId); OSSFile ossFile = ossFileService.getById(fileId);
if (ossFile == null) {
throw new JeroBootException("文件不存在");
}
file.setFileName(ossFile.getFileName()); file.setFileName(ossFile.getFileName());
fileList.add(file); fileList.add(file);
}); });