projectinfo closed BOTH ADD
This commit is contained in:
@@ -234,13 +234,19 @@ public class LabelAllocateService {
|
||||
* 프로젝트 종료 여부 업데이트
|
||||
*
|
||||
* @param uuid 프로젝트 UUID (선택, 미입력 시 최신 프로젝트 대상)
|
||||
* @param closedType 종료 유형 (LABELING/INSPECTION)
|
||||
* @param closedType 종료 유형 (LABELING/INSPECTION/BOTH)
|
||||
* @param closedYn 종료 여부 (Y/N)
|
||||
*/
|
||||
@Transactional
|
||||
public void updateClosedYn(String uuid, String closedType, String closedYn) {
|
||||
String targetUuid = uuid;
|
||||
|
||||
// closedType 유효성 검증
|
||||
if (closedType == null || closedType.isBlank()) {
|
||||
throw new IllegalArgumentException(
|
||||
"종료 유형(closedType)은 필수입니다. (LABELING, INSPECTION, BOTH 중 하나)");
|
||||
}
|
||||
|
||||
// uuid가 없으면 최신 프로젝트 uuid 조회
|
||||
if (targetUuid == null || targetUuid.isBlank()) {
|
||||
var latestProjectInfo = labelAllocateCoreService.findLatestProjectInfo();
|
||||
|
||||
Reference in New Issue
Block a user