文件还原问题修复

This commit is contained in:
马超 2021-02-20 12:58:11 +08:00
parent 7802008a34
commit c004a06da5

View File

@ -104,7 +104,7 @@ public class RecoveryFileController {
String fileName = filePath.substring(filePath.lastIndexOf("/") + 1);
filePath = PathUtil.getParentPath(filePath);
LambdaQueryWrapper<UserFile> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.eq(UserFile::getFilePath, filePath)
lambdaQueryWrapper.eq(UserFile::getFilePath, filePath + "/")
.eq(UserFile::getDeleteFlag, 0)
.eq(UserFile::getUserId, sessionUserBean.getUserId());
List<UserFile> userFileList = userFileService.list(lambdaQueryWrapper);