라벨링작업 관리 목록조회 수정

This commit is contained in:
2026-01-05 15:01:51 +09:00
parent 7acfd32b49
commit 067862ff12
2 changed files with 36 additions and 41 deletions

View File

@@ -116,10 +116,7 @@ public class LabelAllocateService {
* @return 작업자 목록 및 통계
*/
public WorkerListResponse getWorkerStatistics(
Long analUid,
String workerType,
String search,
String sortType) {
Long analUid, String workerType, String search, String sortType) {
// 프로젝트 정보 조회 (analUid가 있을 때만)
var projectInfo = labelAllocateCoreService.findProjectInfo(analUid);
@@ -127,10 +124,7 @@ public class LabelAllocateService {
// 작업 진행 현황 조회
var progressInfo = labelAllocateCoreService.findWorkProgressInfo(analUid);
return WorkerListResponse.builder()
.projectInfo(projectInfo)
.progressInfo(progressInfo)
.build();
return WorkerListResponse.builder().projectInfo(projectInfo).progressInfo(progressInfo).build();
}
public InferenceDetail findInferenceDetail(String uuid) {

View File

@@ -314,18 +314,19 @@ public class LabelWorkRepositoryImpl extends QuerydslRepositorySupport
.fetchOne();
*/
Long total =
Long totalCnt =
(long)
queryFactory
.select(mapSheetAnalInferenceEntity.uuid.countDistinct())
.from(mapSheetAnalInferenceEntity)
.innerJoin(mapSheetAnalDataInferenceEntity)
.on(whereSubDataBuilder)
.innerJoin(mapSheetAnalDataInferenceGeomEntity)
.select(memberEntity.userRole, memberEntity.name, memberEntity.userId)
.from(labelingAssignmentEntity)
.innerJoin(memberEntity)
.on(whereSubBuilder)
.where(whereBuilder)
.fetchOne();
.groupBy(memberEntity.userRole, memberEntity.name, memberEntity.userId)
.fetch()
.size();
return new PageImpl<>(foundContent, pageable, total);
return new PageImpl<>(foundContent, pageable, totalCnt);
}
/**