Ver código fonte

档案分卷

cr 1 dia atrás
pai
commit
8b85db0922

+ 2 - 1
blade-service/blade-archive/src/main/java/org/springblade/archive/service/impl/ArchivesAutoServiceImpl.java

@@ -5784,6 +5784,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
 	@Override
 	public boolean backVolume(Long fileId){
 		ArchiveFile archiveFile = archiveFileClient.getArchiveFileById(fileId);
+		Long id=archiveFile.getArchiveId();
 		List<ArchiveFile> files = archiveFileClient.getArchiveFileByArchivesId(archiveFile.getArchiveId()+"","");
 		if(files.size()<=1){
 			throw new ServiceException("回退失败");
@@ -5792,7 +5793,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
 			archiveFile.setArchiveId(archiveFile.getOldArchiveId());
 			archiveFile.setIsVolume(0);
 			archiveFileClient.updateById2(archiveFile);
-			this.updateArchivePage(Arrays.asList(archiveFile.getArchiveId(),archiveFile.getOldArchiveId()));
+			this.updateArchivePage(Arrays.asList(id,archiveFile.getArchiveId()));
 		}
 		return true;
 	}