분석결과 목록 페이징 오류 수정
This commit is contained in:
@@ -433,5 +433,4 @@ public class GeometryConversionService {
|
|||||||
|
|
||||||
return processedIds;
|
return processedIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,6 +184,8 @@ public class InferenceResultRepositoryImpl implements InferenceResultRepositoryC
|
|||||||
.join(mapSheetAnalDataGeomEntity)
|
.join(mapSheetAnalDataGeomEntity)
|
||||||
.on(mapSheetAnalDataGeomEntity.dataUid.eq(mapSheetAnalDataEntity.id))
|
.on(mapSheetAnalDataGeomEntity.dataUid.eq(mapSheetAnalDataEntity.id))
|
||||||
.where(builder)
|
.where(builder)
|
||||||
|
.offset(pageable.getOffset())
|
||||||
|
.limit(pageable.getPageSize())
|
||||||
.fetch();
|
.fetch();
|
||||||
|
|
||||||
long total =
|
long total =
|
||||||
@@ -209,14 +211,12 @@ public class InferenceResultRepositoryImpl implements InferenceResultRepositoryC
|
|||||||
@Override
|
@Override
|
||||||
public List<Long> getSheets(Long id) {
|
public List<Long> getSheets(Long id) {
|
||||||
return queryFactory
|
return queryFactory
|
||||||
.select(mapSheetAnalDataGeomEntity.mapSheetNum)
|
.select(mapSheetAnalDataEntity.mapSheetNum)
|
||||||
.from(mapSheetAnalEntity)
|
.from(mapSheetAnalEntity)
|
||||||
.join(mapSheetAnalDataEntity)
|
.join(mapSheetAnalDataEntity)
|
||||||
.on(mapSheetAnalDataEntity.analUid.eq(mapSheetAnalEntity.id))
|
.on(mapSheetAnalDataEntity.analUid.eq(mapSheetAnalEntity.id))
|
||||||
.join(mapSheetAnalDataGeomEntity)
|
|
||||||
.on(mapSheetAnalDataGeomEntity.dataUid.eq(mapSheetAnalDataEntity.id))
|
|
||||||
.where(mapSheetAnalEntity.id.eq(id))
|
.where(mapSheetAnalEntity.id.eq(id))
|
||||||
.groupBy(mapSheetAnalDataGeomEntity.mapSheetNum)
|
.groupBy(mapSheetAnalDataEntity.mapSheetNum)
|
||||||
.fetch();
|
.fetch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ public interface MapSheetLearnDataGeomRepository
|
|||||||
/** 지오메트리 타입별 조회 */
|
/** 지오메트리 타입별 조회 */
|
||||||
List<MapSheetLearnDataGeomEntity> findByGeoType(String geoType);
|
List<MapSheetLearnDataGeomEntity> findByGeoType(String geoType);
|
||||||
|
|
||||||
/** 데이터 UID로 기존 지오메트리 데이터 삭제 (재생성 전에 사용) */
|
/** 데이터 UID로 기존 지오메트리 데이터 삭제 (재생성 전에 사용) */
|
||||||
void deleteByDataUid(Long dataUid);
|
void deleteByDataUid(Long dataUid);
|
||||||
|
|
||||||
/** PostGIS 함수를 사용하여 geometry 데이터를 직접 삽입 ST_SetSRID(ST_GeomFromGeoJSON(...), 5186) 형식으로 저장 */
|
/** PostGIS 함수를 사용하여 geometry 데이터를 직접 삽입 ST_SetSRID(ST_GeomFromGeoJSON(...), 5186) 형식으로 저장 */
|
||||||
@Modifying
|
@Modifying
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ public class AuthRepositoryImpl implements AuthRepositoryCustom {
|
|||||||
userEntity.createdDttm))
|
userEntity.createdDttm))
|
||||||
.from(userEntity)
|
.from(userEntity)
|
||||||
.where(builder)
|
.where(builder)
|
||||||
|
.offset(pageable.getOffset())
|
||||||
|
.limit(pageable.getPageSize())
|
||||||
.orderBy(userEntity.userId.asc())
|
.orderBy(userEntity.userId.asc())
|
||||||
.fetch();
|
.fetch();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user