update 资料中心
This commit is contained in:
+3
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user