라벨작업관리 목록 API 날짜 수정, 에러로그 날짜 변환 수정
This commit is contained in:
@@ -74,31 +74,11 @@ public class LabelAllocateService {
|
||||
index = end;
|
||||
}
|
||||
|
||||
// 검수자에게 userCount명 만큼 할당
|
||||
List<LabelAllocateDto.Basic> list = labelAllocateCoreService.findAssignedLabelerList(analUid);
|
||||
|
||||
// 검수자 할당 테이블에 insert. TODO: 익일 배치로 라벨링 완료된 내역을 검수자에게 할당해야 함
|
||||
for (String inspector : targetInspectors) {
|
||||
labelAllocateCoreService.insertInspector(analUid, inspector);
|
||||
}
|
||||
|
||||
// int from = 0;
|
||||
// for (TargetInspector inspector : targetInspectors) {
|
||||
// int to = Math.min(from + inspector.getUserCount(), list.size());
|
||||
//
|
||||
// if (from >= to) {
|
||||
// break;
|
||||
// }
|
||||
//
|
||||
// List<UUID> assignmentUids =
|
||||
// list.subList(from,
|
||||
// to).stream().map(LabelAllocateDto.Basic::getAssignmentUid).toList();
|
||||
//
|
||||
// labelAllocateCoreService.assignInspectorBulk(assignmentUids,
|
||||
// inspector.getInspectorUid());
|
||||
//
|
||||
// from = to;
|
||||
// }
|
||||
|
||||
return new ApiResponseDto.ResponseObj(ApiResponseCode.OK, "배정이 완료되었습니다.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user