추론 결과 조회 수정
This commit is contained in:
@@ -168,9 +168,9 @@ public class InferenceResultApiController {
|
||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
})
|
||||
@DeleteMapping("/end")
|
||||
public ApiResponseDto<Void> getInferenceGeomList() {
|
||||
inferenceResultService.deleteInferenceEnd();
|
||||
return ApiResponseDto.ok(null);
|
||||
public ApiResponseDto<UUID> getInferenceGeomList() {
|
||||
UUID uuid = inferenceResultService.deleteInferenceEnd();
|
||||
return ApiResponseDto.ok(uuid);
|
||||
}
|
||||
|
||||
@Operation(summary = "분석 모델 선택 조회", description = "변화탐지 실행 정보 입력 모델선택 팝업 ")
|
||||
|
||||
@@ -2,7 +2,9 @@ package com.kamco.cd.kamcoback.inference.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.kamco.cd.kamcoback.common.enums.DetectionClassification;
|
||||
import com.kamco.cd.kamcoback.common.enums.ImageryFitStatus;
|
||||
import com.kamco.cd.kamcoback.common.utils.interfaces.JsonFormatDttm;
|
||||
import com.kamco.cd.kamcoback.inference.dto.InferenceResultDto.DetectOption;
|
||||
import com.kamco.cd.kamcoback.inference.dto.InferenceResultDto.MapSheetScope;
|
||||
@@ -308,6 +310,16 @@ public class InferenceDetailDto {
|
||||
String pnu;
|
||||
String passYn;
|
||||
|
||||
@JsonProperty("passYn")
|
||||
public String getPassYn() {
|
||||
return this.passYn == null ? null : this.passYn;
|
||||
}
|
||||
|
||||
@JsonProperty("passYnName")
|
||||
public String getPassYnName() {
|
||||
return ImageryFitStatus.getDescByCode(this.passYn);
|
||||
}
|
||||
|
||||
// @JsonIgnore String gemoStr;
|
||||
// @JsonIgnore String geomCenterStr;
|
||||
// JsonNode gemo;
|
||||
|
||||
@@ -542,7 +542,7 @@ public class InferenceResultService {
|
||||
|
||||
/** 추론 종료 */
|
||||
@Transactional
|
||||
public void deleteInferenceEnd() {
|
||||
public UUID deleteInferenceEnd() {
|
||||
SaveInferenceAiDto dto = inferenceResultCoreService.getProcessing();
|
||||
if (dto == null) {
|
||||
throw new CustomApiException("NOT_FOUND", HttpStatus.NOT_FOUND);
|
||||
@@ -571,6 +571,7 @@ public class InferenceResultService {
|
||||
// upsertGeomData
|
||||
Long learnId = inferenceResultCoreService.getInferenceLearnIdByUuid(dto.getUuid());
|
||||
inferenceResultCoreService.upsertGeomData(learnId);
|
||||
return dto.getUuid();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user