Merge remote-tracking branch 'origin/feat/demo-20251205' into feat/demo-20251205
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package com.kamco.cd.kamcoback.postgres.repository;
|
||||
|
||||
import com.kamco.cd.kamcoback.postgres.entity.MapSheetLearnDataGeomEntity;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface MapSheetLearnDataGeomRepository extends JpaRepository<MapSheetLearnDataGeomEntity, Long> {
|
||||
|
||||
/**
|
||||
* 데이터 UID로 지오메트리 정보 조회
|
||||
*/
|
||||
List<MapSheetLearnDataGeomEntity> findByDataUid(Long dataUid);
|
||||
|
||||
/**
|
||||
* 도엽 번호로 지오메트리 정보 조회
|
||||
*/
|
||||
List<MapSheetLearnDataGeomEntity> findByMapSheetNum(Long mapSheetNum);
|
||||
|
||||
/**
|
||||
* 연도 범위로 지오메트리 정보 조회
|
||||
*/
|
||||
List<MapSheetLearnDataGeomEntity> findByBeforeYyyyAndAfterYyyy(Integer beforeYyyy, Integer afterYyyy);
|
||||
|
||||
/**
|
||||
* 지오메트리 타입별 조회
|
||||
*/
|
||||
List<MapSheetLearnDataGeomEntity> findByGeoType(String geoType);
|
||||
|
||||
/**
|
||||
* 데이터 UID로 기존 지오메트리 데이터 삭제 (재생성 전에 사용)
|
||||
*/
|
||||
void deleteByDataUid(Long dataUid);
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.kamco.cd.kamcoback.postgres.repository;
|
||||
|
||||
import com.kamco.cd.kamcoback.postgres.entity.MapSheetLearnDataEntity;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
@Repository
|
||||
public interface MapSheetLearnDataRepository extends JpaRepository<MapSheetLearnDataEntity, Long> {
|
||||
|
||||
/**
|
||||
* 데이터 이름으로 조회
|
||||
*/
|
||||
Optional<MapSheetLearnDataEntity> findByDataName(String dataName);
|
||||
|
||||
/**
|
||||
* 데이터 경로로 조회
|
||||
*/
|
||||
Optional<MapSheetLearnDataEntity> findByDataPath(String dataPath);
|
||||
|
||||
/**
|
||||
* 처리 상태별 조회
|
||||
*/
|
||||
List<MapSheetLearnDataEntity> findByDataState(String dataState);
|
||||
|
||||
/**
|
||||
* 데이터 타입별 조회
|
||||
*/
|
||||
List<MapSheetLearnDataEntity> findByDataType(String dataType);
|
||||
|
||||
/**
|
||||
* 분석 상태별 조회
|
||||
*/
|
||||
List<MapSheetLearnDataEntity> findByAnalState(String analState);
|
||||
|
||||
/**
|
||||
* 분석 상태별 개수 조회
|
||||
*/
|
||||
long countByAnalState(String analState);
|
||||
|
||||
/**
|
||||
* 처리되지 않은 데이터 조회 (data_state가 'PENDING' 또는 null인 것들)
|
||||
*/
|
||||
List<MapSheetLearnDataEntity> findByDataStateIsNullOrDataState(String dataState);
|
||||
}
|
||||
Reference in New Issue
Block a user