Review Detail 라벨러이름 추가
This commit is contained in:
@@ -5,6 +5,7 @@ import static com.kamco.cd.kamcoback.postgres.entity.QLabelingAssignmentEntity.l
|
|||||||
import static com.kamco.cd.kamcoback.postgres.entity.QMapInkx5kEntity.mapInkx5kEntity;
|
import static com.kamco.cd.kamcoback.postgres.entity.QMapInkx5kEntity.mapInkx5kEntity;
|
||||||
import static com.kamco.cd.kamcoback.postgres.entity.QMapSheetAnalDataInferenceGeomEntity.mapSheetAnalDataInferenceGeomEntity;
|
import static com.kamco.cd.kamcoback.postgres.entity.QMapSheetAnalDataInferenceGeomEntity.mapSheetAnalDataInferenceGeomEntity;
|
||||||
import static com.kamco.cd.kamcoback.postgres.entity.QMapSheetLearnDataGeomEntity.mapSheetLearnDataGeomEntity;
|
import static com.kamco.cd.kamcoback.postgres.entity.QMapSheetLearnDataGeomEntity.mapSheetLearnDataGeomEntity;
|
||||||
|
import static com.kamco.cd.kamcoback.postgres.entity.QMemberEntity.memberEntity;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
@@ -442,6 +443,24 @@ public class TrainingDataReviewRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
// COG URL 조회 실패 시 빈 문자열 유지
|
// COG URL 조회 실패 시 빈 문자열 유지
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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 (workerName == null) {
|
||||||
|
workerName = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.err.println("Worker name retrieval error: " + e.getMessage());
|
||||||
|
// 라벨러 성명 조회 실패 시 빈 문자열 유지
|
||||||
|
}
|
||||||
|
|
||||||
// 5. DTO 생성
|
// 5. DTO 생성
|
||||||
var changeDetectionInfo =
|
var changeDetectionInfo =
|
||||||
ChangeDetectionInfo.builder()
|
ChangeDetectionInfo.builder()
|
||||||
@@ -492,6 +511,7 @@ public class TrainingDataReviewRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
mapSheetAnalDataInferenceGeomEntityEntity.getMapSheetNum() != null
|
mapSheetAnalDataInferenceGeomEntityEntity.getMapSheetNum() != null
|
||||||
? mapSheetAnalDataInferenceGeomEntityEntity.getMapSheetNum()
|
? mapSheetAnalDataInferenceGeomEntityEntity.getMapSheetNum()
|
||||||
: 0L)
|
: 0L)
|
||||||
|
.workerName(workerName)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
var inspectionResultInfo =
|
var inspectionResultInfo =
|
||||||
|
|||||||
@@ -340,6 +340,9 @@ public class TrainingDataReviewDto {
|
|||||||
|
|
||||||
@Schema(description = "도엽번호 (map_sheet_num)", example = "34602057")
|
@Schema(description = "도엽번호 (map_sheet_num)", example = "34602057")
|
||||||
private Long mapSheetNum;
|
private Long mapSheetNum;
|
||||||
|
|
||||||
|
@Schema(description = "라벨러 성명 (기존 작업자)", example = "홍길동")
|
||||||
|
private String workerName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Schema(name = "ClassificationInfo", description = "분류정보")
|
@Schema(name = "ClassificationInfo", description = "분류정보")
|
||||||
|
|||||||
Reference in New Issue
Block a user