라벨링 대상 조건 pnu 있을 경우로만 수정, 목록에 추론 uid 추가
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user