|
|
@@ -5729,8 +5729,8 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
archiveId=saveVolumeDto1.getId();
|
|
|
}
|
|
|
updateIds.add(archiveId);
|
|
|
- String update = "UPDATE u_archive_file SET archive_id = ?, old_archive_id = ?, is_volume = 1 WHERE id IN (?)";
|
|
|
- jdbcTemplate.update(update, archiveId, dto.getArchiveId(), saveVolumeDto1.getFileIds());
|
|
|
+ String update = "UPDATE u_archive_file SET archive_id = ?, old_archive_id = ?, is_volume = 1 WHERE id IN (" + saveVolumeDto1.getFileIds() + ")";
|
|
|
+ jdbcTemplate.update(update, archiveId, dto.getArchiveId());
|
|
|
archivesAuto.setVolumeIds(archivesAuto.getVolumeIds()+archiveId+",");
|
|
|
}
|
|
|
archivesAuto.setVolumeIds(archivesAuto.getVolumeIds().substring(0,archivesAuto.getVolumeIds().length()-1));
|