미사용 쿼리 삭제, 추론 주석 추가, api/inference/download/ 권한 제거 수정 #104
@@ -106,7 +106,7 @@ public class SecurityConfig {
|
||||
"/api/layer/tile-url",
|
||||
"/api/layer/tile-url-year",
|
||||
"/api/common-code/clazz",
|
||||
"/api/inference/download/*")
|
||||
"/api/inference/download/**")
|
||||
.permitAll()
|
||||
// 로그인한 사용자만 가능 IAM
|
||||
.requestMatchers(
|
||||
|
||||
@@ -119,6 +119,12 @@ public class InferenceResultService {
|
||||
return dto.getUuid();
|
||||
}
|
||||
|
||||
/**
|
||||
* 추론 실행 - 추론제외, 이전년도 도엽 사용 분기
|
||||
*
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@Transactional
|
||||
public UUID run(InferenceResultDto.RegReq req) {
|
||||
if (req.getDetectOption().equals(DetectOption.EXCL.getId())) {
|
||||
|
||||
@@ -73,8 +73,6 @@ public interface MapSheetLearnRepositoryCustom {
|
||||
*/
|
||||
MapSheetLearnEntity getProcessing();
|
||||
|
||||
Integer getLearnStage(Integer compareYear, Integer targetYear);
|
||||
|
||||
/**
|
||||
* 추론 결과 정보 조회
|
||||
*
|
||||
|
||||
@@ -291,24 +291,6 @@ public class MapSheetLearnRepositoryImpl implements MapSheetLearnRepositoryCusto
|
||||
.fetchOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getLearnStage(Integer compareYear, Integer targetYear) {
|
||||
Integer stage =
|
||||
queryFactory
|
||||
.select(mapSheetLearnEntity.stage)
|
||||
.from(mapSheetLearnEntity)
|
||||
.where(
|
||||
mapSheetLearnEntity
|
||||
.compareYyyy
|
||||
.eq(compareYear)
|
||||
.and(mapSheetLearnEntity.targetYyyy.eq(targetYear)))
|
||||
.orderBy(mapSheetLearnEntity.id.desc())
|
||||
.limit(1)
|
||||
.fetchOne();
|
||||
|
||||
return stage == null ? 1 : stage + 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AnalResultInfo getInferenceResultInfo(UUID uuid) {
|
||||
QModelMngEntity m1 = new QModelMngEntity("m1");
|
||||
|
||||
@@ -64,6 +64,12 @@ public interface MapSheetMngRepositoryCustom {
|
||||
|
||||
List<MapSheetMngDto.MngFilesDto> findByHstUidMapSheetFileList(Long hstUid);
|
||||
|
||||
/**
|
||||
* 변화탐지 실행 가능 기준 연도 조회
|
||||
*
|
||||
* @param req 조회 연도, 도엽번호 목록,
|
||||
* @return
|
||||
*/
|
||||
List<MngListDto> findByHstMapSheetTargetList(InferenceResultDto.RegReq req);
|
||||
|
||||
List<MngListDto> findByHstMapSheetTargetList(int mngYyyy, List<String> mapIds);
|
||||
|
||||
Reference in New Issue
Block a user