fix(上传&回收站): 目录还原时只检测目录重复

目录还原时只检测目录重复,不包含文件
This commit is contained in:
MAC 2021-08-27 23:44:28 +08:00
parent 0b69d4bbd2
commit 964902c4d4

View File

@ -124,6 +124,7 @@ public class FileDealComp {
lambdaQueryWrapper.eq(UserFile::getFilePath, parentFilePath + FileConstant.pathSeparator)
.eq(UserFile::getFileName, fileName)
.eq(UserFile::getDeleteFlag, 0)
.eq(UserFile::getIsDir, 1)
.eq(UserFile::getUserId, sessionUserId);
List<UserFile> userFileList = userFileMapper.selectList(lambdaQueryWrapper);
if (userFileList.size() == 0) {