@ -86,8 +86,8 @@ public interface ArchivesSummaryRepository extends JpaRepository<ArchivesSummary
"INNER JOIN device_info di on dat.device_info_id = di.id "+
"INNER JOIN device_info di on dat.device_info_id = di.id "+
"INNER JOIN storeroom room on room.id = di.storeroom_id "+
"INNER JOIN storeroom room on room.id = di.storeroom_id "+
"WHERE di.storeroom_code = ?1 and ace.folder_location like ?2 "+
"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))",
value="SELECT di.storeroom_code as storeCode,asy.maintitle AS filename,asy.archive_no as fileno,asy.create_time as makedate,asy.category_id as filetype,"+
"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,CONCAT(room.name,' ',di.device_name,' ',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 "+
"ace.folder_location as location,asy.create_by as editdate,ace.storage_type as storageType,asy.child as enclosure "+
"FROM archives_summary asy "+
"FROM archives_summary asy "+
@ -100,4 +100,51 @@ public interface ArchivesSummaryRepository extends JpaRepository<ArchivesSummary
"and if(?3 = 0,(asy.maintitle like ?4 or asy.archive_no like ?4),(asy.maintitle = ?4 or asy.archive_no = ?4))")
"and if(?3 = 0,(asy.maintitle like ?4 or asy.archive_no like ?4),(asy.maintitle = ?4 or asy.archive_no = ?4))")