|
@@ -133,7 +133,7 @@ public class FolderServiceImpl extends ServiceImpl<IFolderMapper, Folder> implem
|
|
if(!folderEntity.getType().equals(param.getType())){
|
|
if(!folderEntity.getType().equals(param.getType())){
|
|
throw new BusinessException(SceneConstant.FAILURE_CODE_5030, SceneConstant.FAILURE_MSG_5030);
|
|
throw new BusinessException(SceneConstant.FAILURE_CODE_5030, SceneConstant.FAILURE_MSG_5030);
|
|
}
|
|
}
|
|
- if(param.getParentId().equals(folderEntity.getId())){
|
|
|
|
|
|
+ if(param.getParentId() != null && param.getParentId().equals(folderEntity.getId())){
|
|
throw new BusinessException(SceneConstant.FAILURE_CODE_5030, SceneConstant.FAILURE_MSG_5030);
|
|
throw new BusinessException(SceneConstant.FAILURE_CODE_5030, SceneConstant.FAILURE_MSG_5030);
|
|
}
|
|
}
|
|
Folder folder = this.getById(param.getParentId());
|
|
Folder folder = this.getById(param.getParentId());
|