추론결과 > 분류별 count API 명칭 upper, spotless
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user