추론 실행 api 수정

This commit is contained in:
2026-01-13 14:55:46 +09:00
parent 596da6b88e
commit a983223562
7 changed files with 16 additions and 19 deletions

View File

@@ -347,7 +347,7 @@ public class InferenceResultCoreService {
*
* @return
*/
public String getProcessing() {
public UUID getProcessing() {
return mapSheetLearnRepository.getProcessing();
}
}

View File

@@ -24,5 +24,5 @@ public interface MapSheetLearnRepositoryCustom {
InferenceStatusDetailDto getInferenceStatus(UUID uuid);
String getProcessing();
UUID getProcessing();
}

View File

@@ -232,16 +232,11 @@ public class MapSheetLearnRepositoryImpl implements MapSheetLearnRepositoryCusto
*
* @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";
public UUID getProcessing() {
return queryFactory
.select(mapSheetLearnEntity.uuid)
.from(mapSheetLearnEntity)
.where(mapSheetLearnEntity.status.eq("IN_PROGRESS"))
.fetchOne();
}
}