영상관리 중복파일제거 수정
This commit is contained in:
@@ -54,6 +54,9 @@ public class MapSheetMngCoreService {
|
||||
return mapSheetMngRepository.findMapSheetError(hstUid);
|
||||
}
|
||||
|
||||
public List<MapSheetMngDto.MngFilesDto> findIdToMapSheetFileList(Long hstUid) {
|
||||
return mapSheetMngRepository.findIdToMapSheetFileList(hstUid);
|
||||
}
|
||||
|
||||
|
||||
public MapSheetMngDto.DmlReturn uploadProcess(@Valid List<Long> hstUidList) {
|
||||
@@ -203,4 +206,10 @@ public class MapSheetMngCoreService {
|
||||
|
||||
return new MapSheetMngDto.DmlReturn("success", saved.getMngYyyy().toString());
|
||||
}
|
||||
|
||||
|
||||
public List<MapSheetMngDto.MngFilesDto> findHstUidToMapSheetFileList(Long hstUid){
|
||||
return mapSheetMngRepository.findHstUidToMapSheetFileList(hstUid);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -19,6 +19,10 @@ public interface MapSheetMngRepositoryCustom {
|
||||
|
||||
int insertMapSheetOrgDataToMapSheetMngHst(int mngYyyy);
|
||||
|
||||
List<MapSheetMngDto.MngFilesDto> findHstUidToMapSheetFileList(Long hstUid);
|
||||
|
||||
MapSheetMngDto.MngFilesDto findYyyyToMapSheetFilePath(int mngYyyy);
|
||||
|
||||
void deleteByMngYyyyMngAll(int mngYyyy);
|
||||
|
||||
void deleteByMngYyyyMng(int mngYyyy);
|
||||
@@ -32,5 +36,7 @@ public interface MapSheetMngRepositoryCustom {
|
||||
|
||||
MapSheetMngDto.ErrorDataDto findMapSheetError(Long hstUid);
|
||||
|
||||
List<MapSheetMngDto.MngFilesDto> findIdToMapSheetFileList(Long hstUid);
|
||||
|
||||
void updateHstFileSizes(Long hstUid, long tifSizeBytes, long tfwSizeBytes, long totalSizeBytes);
|
||||
}
|
||||
|
||||
@@ -380,6 +380,7 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
||||
Projections.constructor(
|
||||
MapSheetMngDto.ErrorDataDto.class,
|
||||
mapSheetMngHstEntity.hstUid,
|
||||
mapSheetMngHstEntity.mapSheetNum,
|
||||
Expressions.stringTemplate(
|
||||
"concat({0},substring({1}, 0, 6))",
|
||||
mapInkx5kEntity.mapidNm, mapSheetMngHstEntity.mapSheetNum).as("map50kName"),
|
||||
@@ -407,6 +408,92 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
||||
return foundContent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MapSheetMngDto.MngFilesDto> findIdToMapSheetFileList(Long hstUid){
|
||||
|
||||
BooleanBuilder whereBuilder = new BooleanBuilder();
|
||||
whereBuilder.and( mapSheetMngFileEntity.hstUid.eq(hstUid) );
|
||||
|
||||
List<MapSheetMngDto.MngFilesDto> foundContent =
|
||||
queryFactory
|
||||
.select(
|
||||
Projections.constructor(
|
||||
MapSheetMngDto.MngFilesDto.class,
|
||||
mapSheetMngFileEntity.fileUid,
|
||||
mapSheetMngFileEntity.mngYyyy,
|
||||
mapSheetMngFileEntity.mapSheetNum,
|
||||
mapSheetMngFileEntity.refMapSheetNum,
|
||||
mapSheetMngFileEntity.filePath,
|
||||
mapSheetMngFileEntity.fileName,
|
||||
mapSheetMngFileEntity.fileExt,
|
||||
mapSheetMngFileEntity.hstUid,
|
||||
mapSheetMngFileEntity.fileSize
|
||||
)
|
||||
)
|
||||
.from(mapSheetMngFileEntity)
|
||||
.where(whereBuilder)
|
||||
.fetch();
|
||||
|
||||
return foundContent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MapSheetMngDto.MngFilesDto> findHstUidToMapSheetFileList(Long hstUid) {
|
||||
BooleanBuilder whereBuilder = new BooleanBuilder();
|
||||
whereBuilder.and( mapSheetMngFileEntity.hstUid.eq(hstUid) );
|
||||
|
||||
List<MapSheetMngDto.MngFilesDto> foundContent =
|
||||
queryFactory
|
||||
.select(
|
||||
Projections.constructor(
|
||||
MapSheetMngDto.MngFilesDto.class,
|
||||
mapSheetMngFileEntity.fileUid,
|
||||
mapSheetMngFileEntity.mngYyyy,
|
||||
mapSheetMngFileEntity.mapSheetNum,
|
||||
mapSheetMngFileEntity.refMapSheetNum,
|
||||
mapSheetMngFileEntity.filePath,
|
||||
mapSheetMngFileEntity.fileName,
|
||||
mapSheetMngFileEntity.fileExt,
|
||||
mapSheetMngFileEntity.hstUid,
|
||||
mapSheetMngFileEntity.fileSize
|
||||
)
|
||||
)
|
||||
.from(mapSheetMngFileEntity)
|
||||
.where(whereBuilder)
|
||||
.orderBy(mapSheetMngFileEntity.fileExt.desc())
|
||||
.fetch();
|
||||
|
||||
return foundContent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MapSheetMngDto.MngFilesDto findYyyyToMapSheetFilePath(int mngYyyy){
|
||||
|
||||
BooleanBuilder whereBuilder = new BooleanBuilder();
|
||||
whereBuilder.and( mapSheetMngFileEntity.mngYyyy.eq(mngYyyy) );
|
||||
|
||||
MapSheetMngDto.MngFilesDto foundContent =
|
||||
queryFactory
|
||||
.select(
|
||||
Projections.constructor(
|
||||
MapSheetMngDto.MngFilesDto.class,
|
||||
mapSheetMngFileEntity.fileUid,
|
||||
mapSheetMngFileEntity.mngYyyy,
|
||||
mapSheetMngFileEntity.mapSheetNum,
|
||||
mapSheetMngFileEntity.refMapSheetNum,
|
||||
mapSheetMngFileEntity.filePath,
|
||||
mapSheetMngFileEntity.fileName,
|
||||
mapSheetMngFileEntity.fileExt,
|
||||
mapSheetMngFileEntity.hstUid,
|
||||
mapSheetMngFileEntity.fileSize
|
||||
)
|
||||
)
|
||||
.from(mapSheetMngFileEntity)
|
||||
.where(whereBuilder)
|
||||
.fetchOne();
|
||||
|
||||
return foundContent;
|
||||
}
|
||||
|
||||
public void MapSheetMngComplete(int mngYyyy) {
|
||||
long execCount =
|
||||
|
||||
Reference in New Issue
Block a user