추론결과 > 분류별 count API 명칭 upper, spotless

This commit is contained in:
2026-01-19 12:09:05 +09:00
parent ade310b8e5
commit c111a1e7e6
3 changed files with 13 additions and 7 deletions

View File

@@ -20,6 +20,10 @@ public enum DetectionClassification {
TUMULUS("tumulus", "토분(무덤)", 120),
WASTE("waste", "폐기물", 130),
WATER("water", "", 140),
CONSTRUCTION("construction", "건설", 150),
NDC("NDC", "미분류", 160),
RICE("rice", "", 170),
WOOD("wood", "산림", 180),
ETC("ETC", "기타", 200); // For 'etc' (miscellaneous/other)
private final String id;

View File

@@ -339,7 +339,7 @@ public class MapSheetLearnRepositoryImpl implements MapSheetLearnRepositoryCusto
.select(
Projections.constructor(
Dashboard.class,
mapSheetAnalSttcEntity.id.classAfterCd,
mapSheetAnalSttcEntity.id.classAfterCd.toUpperCase(),
mapSheetAnalSttcEntity.classAfterCnt.sum()))
.from(mapSheetAnalInferenceEntity)
.innerJoin(mapSheetAnalSttcEntity)

View File

@@ -446,12 +446,14 @@ public class TrainingDataReviewRepositoryImpl extends QuerydslRepositorySupport
// 4-1. 라벨러 성명 조회 (worker_uid로 tb_member의 name 조회)
String workerName = "";
try {
if (assignment.toDto().getWorkerUid() != null && !assignment.toDto().getWorkerUid().isEmpty()) {
workerName = queryFactory
.select(memberEntity.name)
.from(memberEntity)
.where(memberEntity.userId.eq(assignment.toDto().getWorkerUid()))
.fetchFirst();
if (assignment.toDto().getWorkerUid() != null
&& !assignment.toDto().getWorkerUid().isEmpty()) {
workerName =
queryFactory
.select(memberEntity.name)
.from(memberEntity)
.where(memberEntity.userId.eq(assignment.toDto().getWorkerUid()))
.fetchFirst();
if (workerName == null) {
workerName = "";
}