projectinfo explain fix
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
package com.kamco.cd.kamcoback.label;
|
package com.kamco.cd.kamcoback.label;
|
||||||
|
|
||||||
import com.kamco.cd.kamcoback.common.enums.RoleType;
|
|
||||||
import com.kamco.cd.kamcoback.config.api.ApiResponseDto;
|
import com.kamco.cd.kamcoback.config.api.ApiResponseDto;
|
||||||
import com.kamco.cd.kamcoback.label.dto.LabelAllocateDto;
|
import com.kamco.cd.kamcoback.label.dto.LabelAllocateDto;
|
||||||
import com.kamco.cd.kamcoback.label.dto.LabelAllocateDto.InferenceDetail;
|
import com.kamco.cd.kamcoback.label.dto.LabelAllocateDto.InferenceDetail;
|
||||||
@@ -72,15 +71,14 @@ public class LabelAllocateApiController {
|
|||||||
@RequestParam(required = false)
|
@RequestParam(required = false)
|
||||||
String uuid,
|
String uuid,
|
||||||
@Parameter(
|
@Parameter(
|
||||||
description = "작업자 유형 (선택) - 미입력 시 LABELER로 조회",
|
description = "작업자 유형 (선택) - 미입력 시 전체 조회",
|
||||||
example = "LABELER",
|
example = "LABELER",
|
||||||
schema =
|
schema = @Schema(allowableValues = {"LABELER", "REVIEWER"}))
|
||||||
@Schema(
|
|
||||||
allowableValues = {"LABELER", "REVIEWER"},
|
|
||||||
defaultValue = "LABELER"))
|
|
||||||
@RequestParam(required = false)
|
@RequestParam(required = false)
|
||||||
String type,
|
String type,
|
||||||
@Parameter(description = "검색어 (작업자 이름 또는 사번으로 검색, 부분 일치)", example = "김라벨")
|
@Parameter(
|
||||||
|
description = "검색어 (작업자 이름 또는 사번으로 검색, 부분 일치) - 미입력 시 전체 조회",
|
||||||
|
example = "김라벨")
|
||||||
@RequestParam(required = false)
|
@RequestParam(required = false)
|
||||||
String search,
|
String search,
|
||||||
@Parameter(
|
@Parameter(
|
||||||
@@ -100,11 +98,8 @@ public class LabelAllocateApiController {
|
|||||||
@RequestParam(required = false)
|
@RequestParam(required = false)
|
||||||
String sort) {
|
String sort) {
|
||||||
|
|
||||||
// type이 null이면 기본값으로 LABELER 설정
|
|
||||||
String workerType = (type == null || type.isEmpty()) ? RoleType.LABELER.name() : type;
|
|
||||||
|
|
||||||
return ApiResponseDto.ok(
|
return ApiResponseDto.ok(
|
||||||
labelAllocateService.getWorkerStatisticsByUuid(uuid, workerType, search, sort));
|
labelAllocateService.getWorkerStatisticsByUuid(uuid, type, search, sort));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "라벨링작업 관리 > 작업 배정", description = "라벨링작업 관리 > 작업 배정")
|
@Operation(summary = "라벨링작업 관리 > 작업 배정", description = "라벨링작업 관리 > 작업 배정")
|
||||||
|
|||||||
Reference in New Issue
Block a user