[KC-99] 추론 진행여부 api 추가, spotless 적용

This commit is contained in:
2026-01-13 13:57:59 +09:00
parent 4b3ddcac9a
commit ca4a56721f
6 changed files with 77 additions and 10 deletions

View File

@@ -341,4 +341,13 @@ public class InferenceResultCoreService {
public InferenceStatusDetailDto getInferenceStatus(UUID uuid) {
return mapSheetLearnRepository.getInferenceStatus(uuid);
}
/**
* 추론 진행중인지 확인
*
* @return
*/
public String getProcessing() {
return mapSheetLearnRepository.getProcessing();
}
}

View File

@@ -22,5 +22,7 @@ public interface MapSheetLearnRepositoryCustom {
InferenceProgressDto getInferenceAiResultById(Long id, UUID modelUuid);
public InferenceStatusDetailDto getInferenceStatus(UUID uuid);
InferenceStatusDetailDto getInferenceStatus(UUID uuid);
String getProcessing();
}

View File

@@ -225,4 +225,22 @@ public class MapSheetLearnRepositoryImpl implements MapSheetLearnRepositoryCusto
.fetchOne();
return dto;
}
/**
* 추론 진행중인지 조회
*
* @return
*/
public String getProcessing() {
Long processing =
queryFactory
.select(mapSheetLearnEntity.count())
.from(mapSheetLearnEntity)
.where(mapSheetLearnEntity.status.eq("IN_PROGRESS"))
.fetchOne();
if (Long.valueOf(0L).equals(processing)) {
return "N";
}
return "Y";
}
}