추론결과 상세 조회 api 시간 log 추가 #128
@@ -36,6 +36,7 @@ import com.kamco.cd.kamcoback.scheduler.dto.JobStatusDto;
|
||||
import jakarta.persistence.EntityManager;
|
||||
import jakarta.persistence.EntityNotFoundException;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
@@ -453,12 +454,18 @@ public class InferenceResultCoreService {
|
||||
* @return
|
||||
*/
|
||||
public AnalResultInfo getInferenceResultInfo(UUID uuid) {
|
||||
|
||||
// 추론 결과 정보조회
|
||||
log.info("get inference result info start time = {}", LocalDateTime.now());
|
||||
AnalResultInfo resultInfo = mapSheetLearnRepository.getInferenceResultInfo(uuid);
|
||||
log.info("get inference result info end time = {}", LocalDateTime.now());
|
||||
// bbox, point 조회
|
||||
log.info("get inference result info bbox start time = {}", LocalDateTime.now());
|
||||
BboxPointDto bboxPointDto = mapSheetLearnRepository.getBboxPoint(uuid);
|
||||
log.info("get inference result info bbox end time = {}", LocalDateTime.now());
|
||||
resultInfo.setBboxGeom(bboxPointDto.getBboxGeom());
|
||||
resultInfo.setBboxCenterPoint(bboxPointDto.getBboxCenterPoint());
|
||||
|
||||
return resultInfo;
|
||||
}
|
||||
|
||||
@@ -469,7 +476,10 @@ public class InferenceResultCoreService {
|
||||
* @return 분류별 탐지건수 정보
|
||||
*/
|
||||
public List<Dashboard> getInferenceClassCountList(UUID uuid) {
|
||||
return mapSheetLearnRepository.getInferenceClassCountList(uuid);
|
||||
log.info("get inference class count list start time = {}", LocalDateTime.now());
|
||||
List<Dashboard> classCountList = mapSheetLearnRepository.getInferenceClassCountList(uuid);
|
||||
log.info("get inference class count list end time = {}", LocalDateTime.now());
|
||||
return classCountList;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -478,7 +488,11 @@ public class InferenceResultCoreService {
|
||||
* @return geom 목록 정보
|
||||
*/
|
||||
public Page<Geom> getInferenceGeomList(UUID uuid, SearchGeoReq searchGeoReq) {
|
||||
return mapSheetLearnRepository.getInferenceGeomList(uuid, searchGeoReq);
|
||||
log.info("get Inference Geom List start time = {}", LocalDateTime.now());
|
||||
Page<Geom> geom = mapSheetLearnRepository.getInferenceGeomList(uuid, searchGeoReq);
|
||||
log.info("get Inference Geom List end time = {}", LocalDateTime.now());
|
||||
|
||||
return geom;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,6 +12,7 @@ import com.kamco.cd.kamcoback.scheduler.service.GukYuinApiStbltJobService;
|
||||
import com.kamco.cd.kamcoback.scheduler.service.MemberInactiveJobService;
|
||||
import com.kamco.cd.kamcoback.scheduler.service.TrainingDataLabelJobService;
|
||||
import com.kamco.cd.kamcoback.scheduler.service.TrainingDataReviewJobService;
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.media.Content;
|
||||
@@ -143,6 +144,7 @@ public class SchedulerApiController {
|
||||
return ApiResponseDto.createOK("OK");
|
||||
}
|
||||
|
||||
@Hidden
|
||||
@Operation(summary = "추론결과 데이터 저장", description = "추론결과 데이터 저장")
|
||||
@ApiResponses(
|
||||
value = {
|
||||
|
||||
Reference in New Issue
Block a user