Skip to content

Commit

Permalink
feat:优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
yomea committed Jun 28, 2024
1 parent a37e589 commit b9910a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void copyFile(DocFileCopyReqVO reqVO) {
throw new BusinessException(ErrorCodeEnum.ERROR.getCode(), "只能复制到文件夹下!");
}
List<Long> originIdList = reqVO.getIds();
List<DocFileFolder> fileFolders = docFileFolderService.listByIds(originIdList).stream()
List<DocFileFolder> fileFolders = super.selectByIdList(originIdList).stream()
.filter(e -> !e.getParentId().equals(reqVO.getNewFolderId())).collect(Collectors.toList());
if (CollectionUtils.isEmpty(fileFolders)) {
return;
Expand Down

0 comments on commit b9910a5

Please sign in to comment.