추론결과 > 분류별 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), TUMULUS("tumulus", "토분(무덤)", 120),
WASTE("waste", "폐기물", 130), WASTE("waste", "폐기물", 130),
WATER("water", "", 140), WATER("water", "", 140),
CONSTRUCTION("construction", "건설", 150),
NDC("NDC", "미분류", 160),
RICE("rice", "", 170),
WOOD("wood", "산림", 180),
ETC("ETC", "기타", 200); // For 'etc' (miscellaneous/other) ETC("ETC", "기타", 200); // For 'etc' (miscellaneous/other)
private final String id; private final String id;

View File

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

View File

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