Merge pull request '국유인 배치 수정, 라벨링툴 적합여부 수정' (#59) from feat/infer_dev_260206 into develop

Reviewed-on: #59
This commit was merged in pull request #59.
This commit is contained in:
2026-02-06 16:33:56 +09:00
6 changed files with 36 additions and 20 deletions

View File

@@ -69,6 +69,7 @@ public class GukYuinStbltJobCoreService {
} }
} }
@Transactional
public void updateGukYuinObjectStbltYn(String resultUid, StbltResult stbResult) { public void updateGukYuinObjectStbltYn(String resultUid, StbltResult stbResult) {
gukYuinStbltRepository.updateGukYuinObjectStbltYn(resultUid, stbResult); gukYuinStbltRepository.updateGukYuinObjectStbltYn(resultUid, stbResult);
} }

View File

@@ -524,12 +524,17 @@ public class TrainingDataLabelRepositoryImpl extends QuerydslRepositorySupport
.build(); .build();
var inspectionResultInfo = var inspectionResultInfo =
InspectionResultInfo.builder() queryFactory
.verificationResult(convertInspectState(assignment.toDto().getInspectState())) .select(
.inappropriateReason("") Projections.constructor(
// .memo(assignment.toDto().getInspectMemo() != null ? InspectionResultInfo.class,
// assignment.toDto().getInspectMemo() : "") mapSheetAnalDataInferenceGeomEntity.fitState,
.build(); mapSheetAnalDataInferenceGeomEntity.fitStateCmmnt))
.from(mapSheetAnalDataInferenceGeomEntity)
.where(
mapSheetAnalDataInferenceGeomEntity.geoUid.eq(
mapSheetAnalDataInferenceGeomEntityEntity.getGeoUid()))
.fetchOne();
// 6. Geometry를 GeoJSON으로 변환 // 6. Geometry를 GeoJSON으로 변환
InferenceDataGeometry inferData = InferenceDataGeometry inferData =

View File

@@ -24,7 +24,6 @@ import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.DetailRes;
import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.GeoFeatureRequest.Properties; import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.GeoFeatureRequest.Properties;
import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.InferenceDataGeometry; import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.InferenceDataGeometry;
import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.InferenceDataGeometry.InferenceProperties; import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.InferenceDataGeometry.InferenceProperties;
import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.InspectionResultInfo;
import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.LearnDataGeometry; import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.LearnDataGeometry;
import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.LearnDataGeometry.LearnProperties; import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.LearnDataGeometry.LearnProperties;
import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.ReviewGeometryInfo; import com.kamco.cd.kamcoback.trainingdata.dto.TrainingDataReviewDto.ReviewGeometryInfo;
@@ -553,11 +552,17 @@ public class TrainingDataReviewRepositoryImpl extends QuerydslRepositorySupport
.build(); .build();
var inspectionResultInfo = var inspectionResultInfo =
InspectionResultInfo.builder() queryFactory
.verificationResult(convertInspectState(assignment.toDto().getInspectState())) .select(
.inappropriateReason("") Projections.constructor(
.memo("") TrainingDataReviewDto.InspectionResultInfo.class,
.build(); mapSheetAnalDataInferenceGeomEntity.fitState,
mapSheetAnalDataInferenceGeomEntity.fitStateCmmnt))
.from(mapSheetAnalDataInferenceGeomEntity)
.where(
mapSheetAnalDataInferenceGeomEntity.geoUid.eq(
mapSheetAnalDataInferenceGeomEntityEntity.getGeoUid()))
.fetchOne();
// 6. Geometry를 GeoJSON으로 변환 // 6. Geometry를 GeoJSON으로 변환
InferenceDataGeometry inferData = InferenceDataGeometry inferData =

View File

@@ -105,10 +105,7 @@ public class GukYuinApiStbltJobService {
fitYn, selected.getIncyCd(), selected.getIncyRsnCont()); fitYn, selected.getIncyCd(), selected.getIncyRsnCont());
})); }));
resultMap.forEach( resultMap.forEach(gukYuinStbltJobCoreService::updateGukYuinObjectStbltYn);
(resultUid, StbltResult) -> {
gukYuinStbltJobCoreService.updateGukYuinObjectStbltYn(resultUid, StbltResult);
});
} catch (Exception e) { } catch (Exception e) {
log.error("[GUKYUIN] failed uid={}", dto.getChnDtctMstId(), e); log.error("[GUKYUIN] failed uid={}", dto.getChnDtctMstId(), e);

View File

@@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.ObjectNode;
import com.kamco.cd.kamcoback.common.enums.ImageryFitStatus;
import com.kamco.cd.kamcoback.common.utils.geometry.GeometryDeserializer; import com.kamco.cd.kamcoback.common.utils.geometry.GeometryDeserializer;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List; import java.util.List;
@@ -382,9 +383,7 @@ public class TrainingDataLabelDto {
@Schema(name = "InspectionResultInfo", description = "실태조사결과정보") @Schema(name = "InspectionResultInfo", description = "실태조사결과정보")
@Getter @Getter
@Setter @Setter
@Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor
public static class InspectionResultInfo { public static class InspectionResultInfo {
@Schema(description = "검증결과 (미확인/제외/완료)", example = "미확인") @Schema(description = "검증결과 (미확인/제외/완료)", example = "미확인")
@@ -395,6 +394,11 @@ public class TrainingDataLabelDto {
@Schema(description = "메모") @Schema(description = "메모")
private String memo; private String memo;
public InspectionResultInfo(String verificationResult, String inappropriateReason) {
this.verificationResult = ImageryFitStatus.fromCode(verificationResult).getText();
this.inappropriateReason = inappropriateReason;
}
} }
@Schema(name = "SummaryRes", description = "작업 통계 응답") @Schema(name = "SummaryRes", description = "작업 통계 응답")

View File

@@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.ObjectNode;
import com.kamco.cd.kamcoback.common.enums.ImageryFitStatus;
import com.kamco.cd.kamcoback.common.utils.geometry.GeometryDeserializer; import com.kamco.cd.kamcoback.common.utils.geometry.GeometryDeserializer;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List; import java.util.List;
@@ -378,9 +379,7 @@ public class TrainingDataReviewDto {
@Schema(name = "InspectionResultInfo", description = "실태조사결과정보") @Schema(name = "InspectionResultInfo", description = "실태조사결과정보")
@Getter @Getter
@Setter @Setter
@Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor
public static class InspectionResultInfo { public static class InspectionResultInfo {
@Schema(description = "검증결과 (미확인/제외/완료)", example = "미확인") @Schema(description = "검증결과 (미확인/제외/완료)", example = "미확인")
@@ -391,6 +390,11 @@ public class TrainingDataReviewDto {
@Schema(description = "메모") @Schema(description = "메모")
private String memo; private String memo;
public InspectionResultInfo(String verificationResult, String inappropriateReason) {
this.verificationResult = ImageryFitStatus.fromCode(verificationResult).getText();
this.inappropriateReason = inappropriateReason;
}
} }
@Schema(name = "SummaryRes", description = "작업 통계 응답") @Schema(name = "SummaryRes", description = "작업 통계 응답")