Merge remote-tracking branch 'origin/feat/infer_dev_260107' into feat/infer_dev_260107
This commit is contained in:
@@ -280,10 +280,10 @@ public class LabelAllocateApiController {
|
|||||||
{"closedType": "INSPECTION", "closedYn": "N"}
|
{"closedType": "INSPECTION", "closedYn": "N"}
|
||||||
"""),
|
"""),
|
||||||
@io.swagger.v3.oas.annotations.media.ExampleObject(
|
@io.swagger.v3.oas.annotations.media.ExampleObject(
|
||||||
name = "특정 프로젝트 라벨링 종료",
|
name = "특정 프로젝트 라벨링 전체 종료",
|
||||||
value =
|
value =
|
||||||
"""
|
"""
|
||||||
{"uuid": "f97dc186-e6d3-4645-9737-3173dde8dc64", "closedType": "LABELING", "closedYn": "Y"}
|
{"uuid": "f97dc186-e6d3-4645-9737-3173dde8dc64", "closedType": "INSPECTION", "closedYn": "Y"}
|
||||||
""")
|
""")
|
||||||
}))
|
}))
|
||||||
@RequestBody
|
@RequestBody
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ public class LabelWorkDto {
|
|||||||
private String labelingClosedYn;
|
private String labelingClosedYn;
|
||||||
private String inspectionClosedYn;
|
private String inspectionClosedYn;
|
||||||
|
|
||||||
|
private Long inspectorCompleteTotCnt;
|
||||||
|
private Long inspectorRemainCnt;
|
||||||
|
private ZonedDateTime projectCloseDttm;
|
||||||
|
|
||||||
@JsonProperty("detectYear")
|
@JsonProperty("detectYear")
|
||||||
public String getDetectYear() {
|
public String getDetectYear() {
|
||||||
if (compareYyyy == null || targetYyyy == null) {
|
if (compareYyyy == null || targetYyyy == null) {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.kamco.cd.kamcoback.postgres.repository.label;
|
package com.kamco.cd.kamcoback.postgres.repository.label;
|
||||||
|
|
||||||
|
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;
|
||||||
import com.kamco.cd.kamcoback.label.dto.LabelWorkDto.LabelWorkMng;
|
import com.kamco.cd.kamcoback.label.dto.LabelWorkDto.LabelWorkMng;
|
||||||
@@ -204,7 +205,25 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
|
|||||||
// totalAssignmentCnt: 총 배정 건수 (서브쿼리)
|
// totalAssignmentCnt: 총 배정 건수 (서브쿼리)
|
||||||
totalAssignmentCntSubQuery,
|
totalAssignmentCntSubQuery,
|
||||||
mapSheetAnalInferenceEntity.labelingClosedYn,
|
mapSheetAnalInferenceEntity.labelingClosedYn,
|
||||||
mapSheetAnalInferenceEntity.inspectionClosedYn))
|
mapSheetAnalInferenceEntity.inspectionClosedYn,
|
||||||
|
new CaseBuilder()
|
||||||
|
.when(
|
||||||
|
mapSheetAnalDataInferenceGeomEntity.testState.eq(
|
||||||
|
InspectState.COMPLETE.getId()))
|
||||||
|
.then(1L)
|
||||||
|
.otherwise(0L)
|
||||||
|
.sum(),
|
||||||
|
new CaseBuilder()
|
||||||
|
.when(
|
||||||
|
mapSheetAnalDataInferenceGeomEntity.testState.eq(
|
||||||
|
InspectState.UNCONFIRM.getId()))
|
||||||
|
.then(1L)
|
||||||
|
.otherwise(0L)
|
||||||
|
.sum(),
|
||||||
|
new CaseBuilder()
|
||||||
|
.when(mapSheetAnalInferenceEntity.inspectionClosedYn.eq("Y"))
|
||||||
|
.then(mapSheetAnalInferenceEntity.updatedDttm)
|
||||||
|
.otherwise((ZonedDateTime) null)))
|
||||||
.from(mapSheetAnalInferenceEntity)
|
.from(mapSheetAnalInferenceEntity)
|
||||||
.innerJoin(mapSheetAnalDataInferenceEntity)
|
.innerJoin(mapSheetAnalDataInferenceEntity)
|
||||||
.on(whereSubDataBuilder)
|
.on(whereSubDataBuilder)
|
||||||
|
|||||||
Reference in New Issue
Block a user