[KC-108] ai api batch 작업중

This commit is contained in:
2026-01-12 21:15:30 +09:00
parent fd56d0e685
commit 17593dee92
2 changed files with 11 additions and 0 deletions

View File

@@ -21,5 +21,6 @@ public interface MapSheetLearnRepositoryCustom {
Optional<MapSheetLearnEntity> getInferenceResultByStatus(String status);
Optional<InferenceProgressDto> getInferenceAiResultById(Long id);
public InferenceStatusDetailDto getInferenceStatus(UUID uuid);
}

View File

@@ -139,6 +139,16 @@ public class MapSheetLearnRepositoryImpl implements MapSheetLearnRepositoryCusto
return foundContent;
}
@Override
public Optional<MapSheetLearnEntity> getInferenceResultByStatus(String status) {
return Optional.ofNullable(
queryFactory
.selectFrom(mapSheetLearnEntity)
.where(mapSheetLearnEntity.status.eq(status))
.limit(1)
.fetchOne());
}
@Override
public InferenceStatusDetailDto getInferenceStatus(UUID uuid) {