labelState 조건 수정
This commit is contained in:
@@ -40,6 +40,7 @@ public class LabelWorkDto {
|
|||||||
@JsonFormatDttm private ZonedDateTime createdDttm;
|
@JsonFormatDttm private ZonedDateTime createdDttm;
|
||||||
private Long detectionTotCnt;
|
private Long detectionTotCnt;
|
||||||
private Long labelTotCnt;
|
private Long labelTotCnt;
|
||||||
|
private Long labelAssignCnt;
|
||||||
private Long labelStopTotCnt;
|
private Long labelStopTotCnt;
|
||||||
private Long labelIngTotCnt;
|
private Long labelIngTotCnt;
|
||||||
private Long labelCompleteTotCnt;
|
private Long labelCompleteTotCnt;
|
||||||
@@ -59,7 +60,7 @@ public class LabelWorkDto {
|
|||||||
|
|
||||||
if (this.labelTotCnt == 0) {
|
if (this.labelTotCnt == 0) {
|
||||||
mngState = "PENDING";
|
mngState = "PENDING";
|
||||||
} else if (this.labelTotCnt > 0 && this.labelIngTotCnt == 0) {
|
} else if (this.labelTotCnt > 0 && this.labelAssignCnt > 0 && this.labelIngTotCnt == 0) {
|
||||||
mngState = "ASSIGNED";
|
mngState = "ASSIGNED";
|
||||||
} else if (this.labelIngTotCnt > 0) {
|
} else if (this.labelIngTotCnt > 0) {
|
||||||
mngState = "LABEL_ING";
|
mngState = "LABEL_ING";
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ public class LabelAllocateRepositoryImpl implements LabelAllocateRepositoryCusto
|
|||||||
.from(mapSheetAnalDataInferenceGeomEntity)
|
.from(mapSheetAnalDataInferenceGeomEntity)
|
||||||
.where(
|
.where(
|
||||||
lastId == null ? null : mapSheetAnalDataInferenceGeomEntity.geoUid.gt(lastId),
|
lastId == null ? null : mapSheetAnalDataInferenceGeomEntity.geoUid.gt(lastId),
|
||||||
|
mapSheetAnalDataInferenceGeomEntity.pnu.isNotNull(),
|
||||||
mapSheetAnalDataInferenceGeomEntity.compareYyyy.eq(compareYyyy),
|
mapSheetAnalDataInferenceGeomEntity.compareYyyy.eq(compareYyyy),
|
||||||
mapSheetAnalDataInferenceGeomEntity.targetYyyy.eq(targetYyyy),
|
mapSheetAnalDataInferenceGeomEntity.targetYyyy.eq(targetYyyy),
|
||||||
mapSheetAnalDataInferenceGeomEntity.stage.eq(stage),
|
mapSheetAnalDataInferenceGeomEntity.stage.eq(stage),
|
||||||
@@ -160,6 +161,7 @@ public class LabelAllocateRepositoryImpl implements LabelAllocateRepositoryCusto
|
|||||||
.select(mapSheetAnalDataInferenceGeomEntity.geoUid.count())
|
.select(mapSheetAnalDataInferenceGeomEntity.geoUid.count())
|
||||||
.from(mapSheetAnalDataInferenceGeomEntity)
|
.from(mapSheetAnalDataInferenceGeomEntity)
|
||||||
.where(
|
.where(
|
||||||
|
mapSheetAnalDataInferenceGeomEntity.pnu.isNotNull(),
|
||||||
mapSheetAnalDataInferenceGeomEntity.compareYyyy.eq(compareYyyy),
|
mapSheetAnalDataInferenceGeomEntity.compareYyyy.eq(compareYyyy),
|
||||||
mapSheetAnalDataInferenceGeomEntity.targetYyyy.eq(targetYyyy),
|
mapSheetAnalDataInferenceGeomEntity.targetYyyy.eq(targetYyyy),
|
||||||
mapSheetAnalDataInferenceGeomEntity.stage.eq(stage),
|
mapSheetAnalDataInferenceGeomEntity.stage.eq(stage),
|
||||||
|
|||||||
@@ -137,6 +137,11 @@ public class LabelWorkRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
new CaseBuilder()
|
||||||
|
.when(mapSheetAnalDataInferenceGeomEntity.labelState.eq("ASSIGNED"))
|
||||||
|
.then(1L)
|
||||||
|
.otherwise(0L)
|
||||||
|
.sum(),
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetAnalDataInferenceGeomEntity.labelState.eq("STOP"))
|
.when(mapSheetAnalDataInferenceGeomEntity.labelState.eq("STOP"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
|
|||||||
Reference in New Issue
Block a user