@ -101,7 +108,7 @@ public interface ArchivesSummaryRepository extends JpaRepository<ArchivesSummary
"WHERE di.storeroom_code = ?1 and ace.folder_location like ?2 "+
"and if(?3 = 0,(asy.maintitle like ?4 or asy.archive_no like ?4),(asy.maintitle = ?4 or asy.archive_no = ?4)) group by asy.archives_id ",
value="SELECT DISTINCT asy.archives_id,di.storeroom_code as storeCode,asy.maintitle AS filename,asy.archive_no as fileno,asy.create_time as makedate,asy.category_id as filetype,"+
"asy.barcode as filecode,asy.retention as keepday,CONCAT(room.name,' ',di.device_name,' ',ace.folder_location_details) as position,"+
"asy.barcode as filecode,asy.retention as keepday,ace.folder_location_details as position,"+
"ace.folder_location as location,asy.create_by as editdate,ace.storage_type as storageType,asy.child as enclosure "+
"FROM archives_summary asy "+
"INNER JOIN archives_case_cartoning acc on asy.archives_id = acc.parent_id "+
@ -151,8 +155,13 @@ public class ArchivesServiceImpl implements ArchivesService {
List<Object[]>countList=entityManager.createNativeQuery("select count(1) from (select "+queryField+appendQuery+isStorageQuery+isBorrowQuery+" from "+queryTable+additional+queryparentsId+") t "+queryTypeadd).getResultList();
List<Object[]>list=entityManager.createNativeQuery("select * from (select "+queryField+appendQuery+isStorageQuery+isBorrowQuery+" from "+queryTable+additional+queryparentsId+quertOrder
+") t "+queryTypeadd+" limit "+page.getPageNumber()*page.getPageSize()+","+page.getPageSize()).getResultList();
+") t "+queryTypeadd+appendLimit).getResultList();
List<Map>returnlist=newArrayList<>();
for(Object[]objs:list){
Mapmap=newHashMap();
@ -645,6 +654,34 @@ public class ArchivesServiceImpl implements ArchivesService {
Stringquery3sql="select id from "+archivesType.getEnName()+" where parent_id in ('"+ids.stream().map(String::valueOf).collect(Collectors.joining("','"))+"')";
Stringquery3sql="select id from "+archivesType_3.getEnName()+" where parent_id in ('"+ids.stream().map(String::valueOf).collect(Collectors.joining("','"))+"')";