Merge pull request 'feat/infer_dev_260107' (#305) from feat/infer_dev_260107 into develop

Reviewed-on: https://kamco.gitea.gs.dabeeo.com/dabeeo/kamco-dabeeo-backoffice/pulls/305
This commit is contained in:
2026-01-22 11:27:41 +09:00
5 changed files with 34 additions and 11 deletions

View File

@@ -62,6 +62,9 @@ public class LabelWorkDto {
private Long inspectorRemainCnt; private Long inspectorRemainCnt;
private ZonedDateTime projectCloseDttm; private ZonedDateTime projectCloseDttm;
private String resultUid;
private String subUid;
@JsonProperty("detectYear") @JsonProperty("detectYear")
public String getDetectYear() { public String getDetectYear() {
if (compareYyyy == null || targetYyyy == null) { if (compareYyyy == null || targetYyyy == null) {

View File

@@ -381,8 +381,11 @@ public class LabelAllocateRepositoryImpl implements LabelAllocateRepositoryCusto
mapSheetAnalDataInferenceGeomEntity.compareYyyy.eq(analEntity.getCompareYyyy()), mapSheetAnalDataInferenceGeomEntity.compareYyyy.eq(analEntity.getCompareYyyy()),
mapSheetAnalDataInferenceGeomEntity.targetYyyy.eq(analEntity.getTargetYyyy()), mapSheetAnalDataInferenceGeomEntity.targetYyyy.eq(analEntity.getTargetYyyy()),
mapSheetAnalDataInferenceGeomEntity.stage.eq(analEntity.getStage()), mapSheetAnalDataInferenceGeomEntity.stage.eq(analEntity.getStage()),
mapSheetAnalDataInferenceGeomEntity.pnu.gt(0L), mapSheetAnalDataInferenceGeomEntity.pnu.isNotNull()
mapSheetAnalDataInferenceGeomEntity.passYn.isFalse()) // mapSheetAnalDataInferenceGeomEntity.pnu.gt(0L)
// mapSheetAnalDataInferenceGeomEntity.passYn.isFalse() //TODO:
// 추후 라벨링 대상 조건 수정하기
)
.fetchOne(); .fetchOne();
} }
@@ -552,8 +555,11 @@ public class LabelAllocateRepositoryImpl implements LabelAllocateRepositoryCusto
mapSheetAnalDataInferenceGeomEntity.dataUid)) mapSheetAnalDataInferenceGeomEntity.dataUid))
.where( .where(
mapSheetAnalInferenceEntity.uuid.eq(targetUuid), mapSheetAnalInferenceEntity.uuid.eq(targetUuid),
mapSheetAnalDataInferenceGeomEntity.pnu.gt(0L), mapSheetAnalDataInferenceGeomEntity.pnu.isNotNull()
mapSheetAnalDataInferenceGeomEntity.passYn.isFalse()) // mapSheetAnalDataInferenceGeomEntity.pnu.gt(0L),
// mapSheetAnalDataInferenceGeomEntity.passYn.isFalse() //TODO: 추후 라벨링
// 대상 조건 수정하기
)
.fetchOne(); .fetchOne();
} }
@@ -734,8 +740,11 @@ public class LabelAllocateRepositoryImpl implements LabelAllocateRepositoryCusto
mapSheetAnalInferenceEntity.targetYyyy.eq( mapSheetAnalInferenceEntity.targetYyyy.eq(
mapSheetAnalDataInferenceGeomEntity.targetYyyy), mapSheetAnalDataInferenceGeomEntity.targetYyyy),
mapSheetAnalInferenceEntity.stage.eq(mapSheetAnalDataInferenceGeomEntity.stage), mapSheetAnalInferenceEntity.stage.eq(mapSheetAnalDataInferenceGeomEntity.stage),
mapSheetAnalDataInferenceGeomEntity.pnu.gt(0), mapSheetAnalDataInferenceGeomEntity.pnu.isNotNull()
mapSheetAnalDataInferenceGeomEntity.passYn.isFalse()) // mapSheetAnalDataInferenceGeomEntity.pnu.gt(0),
// mapSheetAnalDataInferenceGeomEntity.passYn.isFalse() //TODO: 추후 라벨링 대상 조건
// 수정하기
)
.where(mapSheetAnalInferenceEntity.id.eq(analEntity.getId())) .where(mapSheetAnalInferenceEntity.id.eq(analEntity.getId()))
.groupBy( .groupBy(
mapSheetAnalInferenceEntity.analTitle, mapSheetAnalInferenceEntity.analTitle,

View File

@@ -1,5 +1,7 @@
package com.kamco.cd.kamcoback.postgres.repository.label; package com.kamco.cd.kamcoback.postgres.repository.label;
import static com.kamco.cd.kamcoback.postgres.entity.QMapSheetLearnEntity.mapSheetLearnEntity;
import com.kamco.cd.kamcoback.label.dto.LabelAllocateDto.InspectState; import com.kamco.cd.kamcoback.label.dto.LabelAllocateDto.InspectState;
import com.kamco.cd.kamcoback.label.dto.LabelAllocateDto.LabelState; import com.kamco.cd.kamcoback.label.dto.LabelAllocateDto.LabelState;
import com.kamco.cd.kamcoback.label.dto.LabelWorkDto; import com.kamco.cd.kamcoback.label.dto.LabelWorkDto;
@@ -141,7 +143,10 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
.and( .and(
mapSheetAnalDataInferenceGeomEntity.pnu mapSheetAnalDataInferenceGeomEntity.pnu
.isNotNull()) // TODO: 이노팸 연동 후 0 이상이라고 해야할 듯 .isNotNull()) // TODO: 이노팸 연동 후 0 이상이라고 해야할 듯
.and(mapSheetAnalDataInferenceGeomEntity.passYn.eq(Boolean.FALSE))) //
// .and(mapSheetAnalDataInferenceGeomEntity.passYn.eq(Boolean.FALSE)) //TODO: 추후
// 라벨링 대상 조건 수정하기
)
.then(1L) .then(1L)
.otherwise(0L) .otherwise(0L)
.sum(); .sum();
@@ -225,12 +230,17 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
new CaseBuilder() new CaseBuilder()
.when(mapSheetAnalInferenceEntity.inspectionClosedYn.eq("Y")) .when(mapSheetAnalInferenceEntity.inspectionClosedYn.eq("Y"))
.then(mapSheetAnalInferenceEntity.updatedDttm) .then(mapSheetAnalInferenceEntity.updatedDttm)
.otherwise((ZonedDateTime) null))) .otherwise((ZonedDateTime) null),
mapSheetLearnEntity.uid,
Expressions.stringTemplate(
"substring({0} from 1 for 8)", mapSheetLearnEntity.uid)))
.from(mapSheetAnalInferenceEntity) .from(mapSheetAnalInferenceEntity)
.innerJoin(mapSheetAnalDataInferenceEntity) .innerJoin(mapSheetAnalDataInferenceEntity)
.on(whereSubDataBuilder) .on(whereSubDataBuilder)
.innerJoin(mapSheetAnalDataInferenceGeomEntity) .innerJoin(mapSheetAnalDataInferenceGeomEntity)
.on(whereSubBuilder) .on(whereSubBuilder)
.leftJoin(mapSheetLearnEntity)
.on(mapSheetAnalInferenceEntity.learnId.eq(mapSheetLearnEntity.id))
.where(whereBuilder) .where(whereBuilder)
.groupBy( .groupBy(
mapSheetAnalInferenceEntity.uuid, mapSheetAnalInferenceEntity.uuid,
@@ -239,7 +249,8 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
mapSheetAnalInferenceEntity.stage, mapSheetAnalInferenceEntity.stage,
mapSheetAnalInferenceEntity.createdDttm, mapSheetAnalInferenceEntity.createdDttm,
mapSheetAnalInferenceEntity.analState, mapSheetAnalInferenceEntity.analState,
mapSheetAnalInferenceEntity.id) mapSheetAnalInferenceEntity.id,
mapSheetLearnEntity.uid)
.orderBy( .orderBy(
mapSheetAnalInferenceEntity.targetYyyy.desc(), mapSheetAnalInferenceEntity.targetYyyy.desc(),
mapSheetAnalInferenceEntity.compareYyyy.desc(), mapSheetAnalInferenceEntity.compareYyyy.desc(),

View File

@@ -591,7 +591,7 @@ public class TrainingDataLabelRepositoryImpl extends QuerydslRepositorySupport
.afterCogUrl(afterCogUrl) .afterCogUrl(afterCogUrl)
.mapBox(mapBbox) .mapBox(mapBbox)
.learnGeometries(learnDataList) // learnGeometry -> learnGeometries .learnGeometries(learnDataList) // learnGeometry -> learnGeometries
.labelState(assignment.toDto().getWorkState()) .workState(assignment.toDto().getWorkState())
.build(); .build();
} catch (Exception e) { } catch (Exception e) {

View File

@@ -328,7 +328,7 @@ public class TrainingDataLabelDto {
private List<LearnDataGeometry> learnGeometries; private List<LearnDataGeometry> learnGeometries;
@Schema(description = "라벨 상태") @Schema(description = "라벨 상태")
private String labelState; private String workState;
} }
@Schema(name = "ChangeDetectionInfo", description = "변화탐지정보") @Schema(name = "ChangeDetectionInfo", description = "변화탐지정보")