mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-25 19:05:14 +08:00
所有convert函数添加判空;上传成功回调函数修Bug
This commit is contained in:
@@ -61,7 +61,10 @@ public class FileServiceImpl implements FileService {
|
||||
return fileModels;
|
||||
}
|
||||
|
||||
private FileModel convertFromDataObject(FileDO fileDO) throws InvocationTargetException, IllegalAccessException {
|
||||
private FileModel convertFromDataObject(FileDO fileDO) {
|
||||
if(fileDO == null) {
|
||||
return null;
|
||||
}
|
||||
FileModel fileModel = new FileModel();
|
||||
BeanUtils.copyProperties(fileDO, fileModel);
|
||||
return fileModel;
|
||||
|
Reference in New Issue
Block a user