Merge pull request !65 from MAC/develop
This commit is contained in:
MAC 2021-07-11 12:01:49 +00:00 committed by Gitee
commit 4023e1849d
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ public class FiletransferController {
userFile.setUserId(sessionUserBean.getUserId());
String relativePath = uploadFileDto.getRelativePath();
if (StringUtils.isNotEmpty(relativePath)) {
if (relativePath.contains("/")) {
userFile.setFilePath(uploadFileDto.getFilePath() + PathUtil.getParentPath(relativePath) + "/");
fileDealComp.restoreParentFilePath(uploadFileDto.getFilePath() + PathUtil.getParentPath(relativePath) + "/", sessionUserBean.getUserId());
} else {

View File

@ -101,7 +101,7 @@ public class FiletransferService implements IFiletransferService {
fileMapper.insert(fileBean);
UserFile userFile = new UserFile();
String relativePath = uploadFileDto.getRelativePath();
if (StringUtils.isNotEmpty(relativePath)) {
if (relativePath.contains("/")) {
userFile.setFilePath(uploadFileDto.getFilePath() + PathUtil.getParentPath(relativePath) + "/");
fileDealComp.restoreParentFilePath(uploadFileDto.getFilePath() + PathUtil.getParentPath(relativePath) + "/", userId);
} else {