Merge pull request '라벨링툴 목록 기준년도 asc,비교년도 asc 기준으로 sorting, 변화탐지 cog API 수정' (#296) from feat/infer_dev_260107 into develop

Reviewed-on: https://kamco.gitea.gs.dabeeo.com/dabeeo/kamco-dabeeo-backoffice/pulls/296
This commit is contained in:
2026-01-20 18:36:16 +09:00
5 changed files with 52 additions and 4 deletions

View File

@@ -153,6 +153,10 @@ public class ChangeDetectionRepositoryImpl extends QuerydslRepositorySupport
.groupBy(mapInkx5kEntity.geom) .groupBy(mapInkx5kEntity.geom)
.fetchOne(); .fetchOne();
if (data == null) {
return null;
}
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
String geoJson = Objects.requireNonNull(data).getBbox(); String geoJson = Objects.requireNonNull(data).getBbox();
JsonNode jsonNode; JsonNode jsonNode;

View File

@@ -95,8 +95,14 @@ public class TrainingDataLabelRepositoryImpl extends QuerydslRepositorySupport
labelingAssignmentEntity.workState, labelingAssignmentEntity.workState,
labelingAssignmentEntity.assignGroupId, labelingAssignmentEntity.assignGroupId,
mapInkx5kEntity.mapidNm, mapInkx5kEntity.mapidNm,
mapSheetAnalDataInferenceGeomEntity.pnu)) mapSheetAnalDataInferenceGeomEntity.pnu,
mapSheetAnalInferenceEntity.uuid,
mapSheetAnalInferenceEntity.compareYyyy,
mapSheetAnalInferenceEntity.targetYyyy,
mapSheetAnalInferenceEntity.stage))
.from(labelingAssignmentEntity) .from(labelingAssignmentEntity)
.innerJoin(mapSheetAnalInferenceEntity)
.on(labelingAssignmentEntity.analUid.eq(mapSheetAnalInferenceEntity.id))
.innerJoin(mapSheetAnalDataInferenceGeomEntity) .innerJoin(mapSheetAnalDataInferenceGeomEntity)
.on( .on(
labelingAssignmentEntity.inferenceGeomUid.eq( labelingAssignmentEntity.inferenceGeomUid.eq(
@@ -107,6 +113,8 @@ public class TrainingDataLabelRepositoryImpl extends QuerydslRepositorySupport
.offset(pageable.getOffset()) .offset(pageable.getOffset())
.limit(pageable.getPageSize()) .limit(pageable.getPageSize())
.orderBy( .orderBy(
mapSheetAnalInferenceEntity.targetYyyy.asc(),
mapSheetAnalInferenceEntity.compareYyyy.asc(),
labelingAssignmentEntity.createdDate.asc(), labelingAssignmentEntity.createdDate.asc(),
labelingAssignmentEntity.inferenceGeomUid.asc()) labelingAssignmentEntity.inferenceGeomUid.asc())
.fetch(); .fetch();
@@ -610,6 +618,8 @@ public class TrainingDataLabelRepositoryImpl extends QuerydslRepositorySupport
labelingAssignmentEntity.createdDate, labelingAssignmentEntity.createdDate,
labelingAssignmentEntity.inferenceGeomUid) labelingAssignmentEntity.inferenceGeomUid)
.from(labelingAssignmentEntity) .from(labelingAssignmentEntity)
.innerJoin(mapSheetAnalInferenceEntity)
.on(labelingAssignmentEntity.analUid.eq(mapSheetAnalInferenceEntity.id))
.where( .where(
labelingAssignmentEntity.workerUid.eq(userId), labelingAssignmentEntity.workerUid.eq(userId),
stateCondition, stateCondition,
@@ -617,6 +627,8 @@ public class TrainingDataLabelRepositoryImpl extends QuerydslRepositorySupport
? labelingAssignmentEntity.workState.eq(LabelState.ASSIGNED.getId()) ? labelingAssignmentEntity.workState.eq(LabelState.ASSIGNED.getId())
: labelingAssignmentEntity.assignmentUid.eq(UUID.fromString(assignmentUid))) : labelingAssignmentEntity.assignmentUid.eq(UUID.fromString(assignmentUid)))
.orderBy( .orderBy(
mapSheetAnalInferenceEntity.targetYyyy.asc(),
mapSheetAnalInferenceEntity.compareYyyy.asc(),
labelingAssignmentEntity.createdDate.asc(), labelingAssignmentEntity.createdDate.asc(),
labelingAssignmentEntity.inferenceGeomUid.asc()) labelingAssignmentEntity.inferenceGeomUid.asc())
.limit(1) .limit(1)

View File

@@ -96,8 +96,14 @@ public class TrainingDataReviewRepositoryImpl extends QuerydslRepositorySupport
labelingAssignmentEntity.inspectState, labelingAssignmentEntity.inspectState,
labelingAssignmentEntity.assignGroupId, labelingAssignmentEntity.assignGroupId,
mapInkx5kEntity.mapidNm, mapInkx5kEntity.mapidNm,
mapSheetAnalDataInferenceGeomEntity.pnu)) mapSheetAnalDataInferenceGeomEntity.pnu,
mapSheetAnalInferenceEntity.uuid,
mapSheetAnalInferenceEntity.compareYyyy,
mapSheetAnalInferenceEntity.targetYyyy,
mapSheetAnalInferenceEntity.stage))
.from(labelingAssignmentEntity) .from(labelingAssignmentEntity)
.innerJoin(mapSheetAnalInferenceEntity)
.on(labelingAssignmentEntity.analUid.eq(mapSheetAnalInferenceEntity.id))
.innerJoin(mapSheetAnalDataInferenceGeomEntity) .innerJoin(mapSheetAnalDataInferenceGeomEntity)
.on( .on(
labelingAssignmentEntity.inferenceGeomUid.eq( labelingAssignmentEntity.inferenceGeomUid.eq(
@@ -110,6 +116,8 @@ public class TrainingDataReviewRepositoryImpl extends QuerydslRepositorySupport
.offset(pageable.getOffset()) .offset(pageable.getOffset())
.limit(pageable.getPageSize()) .limit(pageable.getPageSize())
.orderBy( .orderBy(
mapSheetAnalInferenceEntity.targetYyyy.asc(),
mapSheetAnalInferenceEntity.compareYyyy.asc(),
labelingAssignmentEntity.createdDate.asc(), labelingAssignmentEntity.createdDate.asc(),
labelingAssignmentEntity.inferenceGeomUid.asc()) labelingAssignmentEntity.inferenceGeomUid.asc())
.fetch(); .fetch();

View File

@@ -35,6 +35,10 @@ public class TrainingDataLabelDto {
private String mapSheetNum; private String mapSheetNum;
private String mapIdNm; private String mapIdNm;
private Long pnu; private Long pnu;
private UUID stageUuid;
private Integer compareYyyy;
private Integer targetYyyy;
private Integer stage;
public LabelingListDto( public LabelingListDto(
UUID assignmentUid, UUID assignmentUid,
@@ -43,7 +47,11 @@ public class TrainingDataLabelDto {
String workState, String workState,
String mapSheetNum, String mapSheetNum,
String mapIdNm, String mapIdNm,
Long pnu) { Long pnu,
UUID stageUuid,
Integer compareYyyy,
Integer targetYyyy,
Integer stage) {
this.assignmentUid = assignmentUid; this.assignmentUid = assignmentUid;
this.inferenceGeomUid = inferenceGeomUid; this.inferenceGeomUid = inferenceGeomUid;
this.workerUid = workerUid; this.workerUid = workerUid;
@@ -51,6 +59,10 @@ public class TrainingDataLabelDto {
this.mapSheetNum = mapSheetNum; this.mapSheetNum = mapSheetNum;
this.mapIdNm = mapIdNm; this.mapIdNm = mapIdNm;
this.pnu = pnu; this.pnu = pnu;
this.stageUuid = stageUuid;
this.compareYyyy = compareYyyy;
this.targetYyyy = targetYyyy;
this.stage = stage;
} }
} }

View File

@@ -35,6 +35,10 @@ public class TrainingDataReviewDto {
private String mapSheetNum; private String mapSheetNum;
private String mapIdNm; private String mapIdNm;
private Long pnu; private Long pnu;
private UUID stageUuid;
private Integer compareYyyy;
private Integer targetYyyy;
private Integer stage;
public ReviewListDto( public ReviewListDto(
UUID operatorUid, UUID operatorUid,
@@ -43,7 +47,11 @@ public class TrainingDataReviewDto {
String inspectState, String inspectState,
String mapSheetNum, String mapSheetNum,
String mapIdNm, String mapIdNm,
Long pnu) { Long pnu,
UUID stageUuid,
Integer compareYyyy,
Integer targetYyyy,
Integer stage) {
this.operatorUid = operatorUid; this.operatorUid = operatorUid;
this.inferenceGeomUid = inferenceGeomUid; this.inferenceGeomUid = inferenceGeomUid;
this.inspectorUid = inspectorUid; this.inspectorUid = inspectorUid;
@@ -51,6 +59,10 @@ public class TrainingDataReviewDto {
this.mapSheetNum = mapSheetNum; this.mapSheetNum = mapSheetNum;
this.mapIdNm = mapIdNm; this.mapIdNm = mapIdNm;
this.pnu = pnu; this.pnu = pnu;
this.stageUuid = stageUuid;
this.compareYyyy = compareYyyy;
this.targetYyyy = targetYyyy;
this.stage = stage;
} }
} }