|
|
@@ -465,7 +465,7 @@ public class ArchiveFileServiceImpl extends BaseServiceImpl<ArchiveFileMapper, A
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public VolumeDto3 selectVolumeBefore(Long archiveId) {
|
|
|
+ public VolumeDto3 selectVolumeBefore(Long archiveId,Integer type) {
|
|
|
ArchivesAuto auto = archiveAutoClient.getArchiveById(archiveId);
|
|
|
VolumeDto3 dto=new VolumeDto3();
|
|
|
if(auto.getIsVolume()==1&&StringUtils.isEmpty(auto.getVolumeIds())){
|
|
|
@@ -474,11 +474,13 @@ public class ArchiveFileServiceImpl extends BaseServiceImpl<ArchiveFileMapper, A
|
|
|
String sql="select id,file_number,file_name,file_time,duty_user,file_page from u_archive_file where archive_id="+auto.getId()+" and is_deleted=0 order by archive_sort,sort,sort_num,create_time";
|
|
|
List<VolumeDto4> dto2s = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(VolumeDto4.class));
|
|
|
dto.getList().addAll(dto2s);
|
|
|
- for (String autoId : archivesAutoIds) {
|
|
|
- String sql1="select id,file_number,file_name,file_time,duty_user,file_page from u_archive_file where archive_id="+autoId+" and is_deleted=0 order by archive_sort,sort,sort_num,create_time";
|
|
|
- List<VolumeDto4> dto2s1 = jdbcTemplate.query(sql1, new BeanPropertyRowMapper<>(VolumeDto4.class));
|
|
|
- dto2s1.stream().forEach(dto2 -> dto2.setIsCheck(1));
|
|
|
- dto.getList().addAll(dto2s);
|
|
|
+ if(type==2){
|
|
|
+ for (String autoId : archivesAutoIds) {
|
|
|
+ String sql1="select id,file_number,file_name,file_time,duty_user,file_page from u_archive_file where archive_id="+autoId+" and is_deleted=0 order by archive_sort,sort,sort_num,create_time";
|
|
|
+ List<VolumeDto4> dto2s1 = jdbcTemplate.query(sql1, new BeanPropertyRowMapper<>(VolumeDto4.class));
|
|
|
+ dto2s1.stream().forEach(dto2 -> dto2.setIsCheck(1));
|
|
|
+ dto.getList().addAll(dto2s);
|
|
|
+ }
|
|
|
}
|
|
|
dto.setId(auto.getId());
|
|
|
dto.setName(auto.getName());
|