[KC-108] 추론실행 파라미터 변경

This commit is contained in:
2026-01-13 09:16:13 +09:00
parent 0f8cdb2ca4
commit a88b001a98
3 changed files with 11 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ import com.kamco.cd.kamcoback.model.dto.ModelMngDto.Basic;
import com.kamco.cd.kamcoback.postgres.core.InferenceResultCoreService;
import com.kamco.cd.kamcoback.postgres.core.MapSheetMngCoreService;
import com.kamco.cd.kamcoback.postgres.core.ModelMngCoreService;
import jakarta.persistence.EntityNotFoundException;
import jakarta.validation.constraints.NotNull;
import java.time.ZonedDateTime;
import java.util.ArrayList;
@@ -100,6 +101,10 @@ public class InferenceResultService {
req.setMapSheetNum(this.createdMngDto(req, targetList));
}
if (req.getMapSheetNum().isEmpty()) {
throw new EntityNotFoundException("분석 대상 정보가 부족합니다.");
}
// 추론 테이블 저장
UUID uuid = inferenceResultCoreService.saveInferenceInfo(req);
this.startInference(req, uuid);