Merge remote-tracking branch 'origin/feat/infer_dev_260107' into feat/infer_dev_260107

This commit is contained in:
DanielLee
2026-01-08 18:45:55 +09:00
2 changed files with 14 additions and 14 deletions

View File

@@ -64,9 +64,7 @@ public class LabelWorkDto {
return compareYyyy + "-" + targetYyyy; return compareYyyy + "-" + targetYyyy;
} }
/** /** 라벨링 상태 반환 (tb_map_sheet_anal_inference.anal_state 기준) */
* 라벨링 상태 반환 (tb_map_sheet_anal_inference.anal_state 기준)
*/
public String getLabelState() { public String getLabelState() {
// anal_state 값이 있으면 해당 값 사용 // anal_state 값이 있으면 해당 값 사용
if (this.analState != null && !this.analState.isEmpty()) { if (this.analState != null && !this.analState.isEmpty()) {
@@ -104,8 +102,8 @@ public class LabelWorkDto {
} }
/** /**
* 작업 진행률 반환 (tb_labeling_assignment.stagnation_yn = 'N'인 정상 진행율 기준) * 작업 진행률 반환 (tb_labeling_assignment.stagnation_yn = 'N'인 정상 진행율 기준) 계산식: (정상 진행 건수 / 총 배정 건수) *
* 계산식: (정상 진행 건수 / 총 배정 건수) * 100 * 100
*/ */
public double getLabelRate() { public double getLabelRate() {
if (this.totalAssignmentCnt == null || this.totalAssignmentCnt == 0) { if (this.totalAssignmentCnt == null || this.totalAssignmentCnt == 0) {

View File

@@ -58,7 +58,6 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
private final QMemberEntity memberEntity = QMemberEntity.memberEntity; private final QMemberEntity memberEntity = QMemberEntity.memberEntity;
/** /**
* 변화탐지 년도 셀렉트박스 조회 * 변화탐지 년도 셀렉트박스 조회
* *
@@ -133,14 +132,17 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
} }
// labelTotCnt: pnu가 있고 pass_yn = false (부적합)인 건수만 라벨링 대상 // labelTotCnt: pnu가 있고 pass_yn = false (부적합)인 건수만 라벨링 대상
NumberExpression<Long> labelTotCntExpr = new CaseBuilder() NumberExpression<Long> labelTotCntExpr =
.when( new CaseBuilder()
mapSheetAnalDataInferenceGeomEntity.pnu.isNotNull() .when(
.and(mapSheetAnalDataInferenceGeomEntity.pnu.ne(0L)) mapSheetAnalDataInferenceGeomEntity
.and(mapSheetAnalDataInferenceGeomEntity.passYn.eq(Boolean.FALSE))) .pnu
.then(1L) .isNotNull()
.otherwise(0L) .and(mapSheetAnalDataInferenceGeomEntity.pnu.ne(0L))
.sum(); .and(mapSheetAnalDataInferenceGeomEntity.passYn.eq(Boolean.FALSE)))
.then(1L)
.otherwise(0L)
.sum();
// stagnation_yn = 'N'인 정상 진행 건수 (서브쿼리로 별도 집계) // stagnation_yn = 'N'인 정상 진행 건수 (서브쿼리로 별도 집계)
Expression<Long> normalProgressCntSubQuery = Expression<Long> normalProgressCntSubQuery =