|
@@ -4844,7 +4844,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
}
|
|
|
}
|
|
|
if (!updates.isEmpty()) {
|
|
|
- return this.updateBatchById(archivesAutos);
|
|
|
+ return this.updateBatchById(updates);
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
@@ -5207,6 +5207,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
List<ArchiveFile>archiveFileList=archiveFileClient.getArchiveFileByArchiveIds(id+"");
|
|
|
//设置案卷页码和四要素
|
|
|
if (archiveFileList != null && !archiveFileList.isEmpty()) {
|
|
|
+ archivesAuto.setActionType(null);
|
|
|
this.reCreateArchiveAuto(archivesAuto, archiveFileList);
|
|
|
}
|
|
|
this.update(Wrappers.<ArchivesAuto>lambdaUpdate().set(ArchivesAuto::getActionType, 0).eq(ArchivesAuto::getId, id));
|
|
@@ -5264,14 +5265,15 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
}
|
|
|
archiveFileClient.updateArchiveFile(waitArchiveFiles);
|
|
|
archivesAuto.setName(name);
|
|
|
+ archivesAuto.setActionType(null);
|
|
|
//删除其他案卷
|
|
|
archivesAutoList.remove(archivesAuto);
|
|
|
this.deleteLogic(archivesAutoList.stream().map(o->o.getId()).collect(Collectors.toList()));
|
|
|
this.reCreateArchiveAuto(archivesAuto, archiveFileList);
|
|
|
- this.update(Wrappers.<ArchivesAuto>lambdaUpdate().set(ArchivesAuto::getActionType, 0).in(ArchivesAuto::getId, ids));
|
|
|
+ this.update(Wrappers.<ArchivesAuto>lambdaUpdate().set(ArchivesAuto::getActionType, 0).in(ArchivesAuto::getId, longList));
|
|
|
} catch (Exception e) {
|
|
|
log.error("案卷并卷失败," + "案卷Ids:" + ids, e);
|
|
|
- this.update(Wrappers.<ArchivesAuto>lambdaUpdate().set(ArchivesAuto::getActionType, -1).in(ArchivesAuto::getId, ids));
|
|
|
+ this.update(Wrappers.<ArchivesAuto>lambdaUpdate().set(ArchivesAuto::getActionType, -1).in(ArchivesAuto::getId, Func.toLongList(ids)));
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -5517,6 +5519,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
List<ArchiveFile>archiveFileList=archiveFileClient.getArchiveFileByArchiveIds(archivesAuto.getId()+"");
|
|
|
//设置案卷页码和四要素
|
|
|
if (archiveFileList != null && !archiveFileList.isEmpty()) {
|
|
|
+ archivesAuto.setActionType(null);
|
|
|
this.reCreateArchiveAuto(archivesAuto, archiveFileList);
|
|
|
}
|
|
|
this.update(Wrappers.<ArchivesAuto>lambdaUpdate().set(ArchivesAuto::getActionType, 0).eq(ArchivesAuto::getId, archivesAuto.getId()));
|