|
|
@@ -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;
|
|
|
}
|