|
|
@@ -5373,6 +5373,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
//String url="D:\\AutoPdf\\";
|
|
|
//List<Long> idsList=Func.toLongList(ids);
|
|
|
List<ArchivesAuto> archivesAutoList = this.list(new LambdaQueryWrapper<ArchivesAuto>().in(ArchivesAuto::getId, idsList));
|
|
|
+ this.update(Wrappers.<ArchivesAuto>lambdaUpdate().set(ArchivesAuto::getColourStatus, 2).in(ArchivesAuto::getId, idsList));
|
|
|
for (ArchivesAuto auto : archivesAutoList) {
|
|
|
String sql=" select * from u_archive_file where is_deleted = 0 and archive_id="+auto.getId();
|
|
|
List<ArchiveFile> archiveFiles = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ArchiveFile.class));
|
|
|
@@ -5429,6 +5430,8 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
|
|
|
}finally {
|
|
|
FileUtils.removeFile(filePath);
|
|
|
+ String updateSql="update u_archives_auto set colour_status=1 where id="+auto.getId();
|
|
|
+ jdbcTemplate.execute(updateSql);
|
|
|
}
|
|
|
}
|
|
|
this.updateBatchById(archivesAutoList);
|