[KC-99] 추론관리 등록 api 추가
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.kamco.cd.kamcoback.postgres.core;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.kamco.cd.kamcoback.inference.dto.InferenceDetailDto;
|
||||
import com.kamco.cd.kamcoback.inference.dto.InferenceDetailDto.Dashboard;
|
||||
import com.kamco.cd.kamcoback.inference.dto.InferenceDetailDto.MapSheet;
|
||||
@@ -16,6 +17,7 @@ import jakarta.persistence.EntityNotFoundException;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.locationtech.jts.io.geojson.GeoJsonWriter;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -28,6 +30,9 @@ public class InferenceResultCoreService {
|
||||
private final MapSheetLearnRepository mapSheetLearnRepository;
|
||||
private final MapInkx5kRepository mapInkx5kRepository;
|
||||
|
||||
private final ObjectMapper objectMapper = new ObjectMapper();
|
||||
private final GeoJsonWriter geoJsonWriter = new GeoJsonWriter();
|
||||
|
||||
/**
|
||||
* 추론관리 목록
|
||||
*
|
||||
@@ -39,6 +44,20 @@ public class InferenceResultCoreService {
|
||||
return list.map(MapSheetLearnEntity::toDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 변화탐지 실행 정보 생성
|
||||
*
|
||||
* @param req
|
||||
*/
|
||||
public void saveInferenceInfo(InferenceResultDto.RegReq req) {
|
||||
MapSheetLearnEntity mapSheetLearnEntity = new MapSheetLearnEntity();
|
||||
mapSheetLearnEntity.setTitle(req.getTitle());
|
||||
mapSheetLearnEntity.setM1ModelUid(req.getModel1Uid());
|
||||
mapSheetLearnEntity.setM2ModelUid(req.getModel2Uid());
|
||||
mapSheetLearnEntity.setM3ModelUid(req.getModel3Uid());
|
||||
// mapSheetLearnRepository.save()
|
||||
}
|
||||
|
||||
/****/
|
||||
|
||||
/**
|
||||
|
||||
@@ -57,7 +57,6 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
|
||||
QLabelingAssignmentEntity.labelingAssignmentEntity;
|
||||
private final QMemberEntity memberEntity = QMemberEntity.memberEntity;
|
||||
|
||||
|
||||
/**
|
||||
* 변화탐지 년도 셀렉트박스 조회
|
||||
*
|
||||
@@ -81,8 +80,7 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
|
||||
}
|
||||
|
||||
/**
|
||||
* 라벨링 작업관리 목록 조회
|
||||
* (복잡한 집계 쿼리로 인해 DTO 직접 반환)
|
||||
* 라벨링 작업관리 목록 조회 (복잡한 집계 쿼리로 인해 DTO 직접 반환)
|
||||
*
|
||||
* @param searchReq 검색 조건
|
||||
* @return 라벨링 작업관리 목록 페이지
|
||||
@@ -345,7 +343,9 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
|
||||
mapSheetAnalInferenceEntity
|
||||
.uuid
|
||||
.eq(uuid)
|
||||
.and(labelingAssignmentEntity.analUid.eq(mapSheetAnalInferenceEntity.id)))
|
||||
.and(
|
||||
labelingAssignmentEntity.analUid.eq(
|
||||
mapSheetAnalInferenceEntity.id)))
|
||||
.innerJoin(memberEntity)
|
||||
.on(whereSubBuilder)
|
||||
.where(whereBuilder)
|
||||
@@ -390,8 +390,7 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
|
||||
}
|
||||
|
||||
/**
|
||||
* 작업배정 상세조회
|
||||
* (복잡한 집계 쿼리로 인해 DTO 직접 반환)
|
||||
* 작업배정 상세조회 (복잡한 집계 쿼리로 인해 DTO 직접 반환)
|
||||
*
|
||||
* @param uuid 작업배정 UUID
|
||||
* @return 작업배정 상세 정보
|
||||
|
||||
Reference in New Issue
Block a user