추론결과 > 분류별 count API 명칭 upper, spotless
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -446,12 +446,14 @@ 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()) {
|
||||||
.select(memberEntity.name)
|
workerName =
|
||||||
.from(memberEntity)
|
queryFactory
|
||||||
.where(memberEntity.userId.eq(assignment.toDto().getWorkerUid()))
|
.select(memberEntity.name)
|
||||||
.fetchFirst();
|
.from(memberEntity)
|
||||||
|
.where(memberEntity.userId.eq(assignment.toDto().getWorkerUid()))
|
||||||
|
.fetchFirst();
|
||||||
if (workerName == null) {
|
if (workerName == null) {
|
||||||
workerName = "";
|
workerName = "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user