[KC-99] 추론 진행여부 api 추가, spotless 적용
This commit is contained in:
@@ -341,4 +341,13 @@ public class InferenceResultCoreService {
|
||||
public InferenceStatusDetailDto getInferenceStatus(UUID uuid) {
|
||||
return mapSheetLearnRepository.getInferenceStatus(uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 추론 진행중인지 확인
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getProcessing() {
|
||||
return mapSheetLearnRepository.getProcessing();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,5 +22,7 @@ public interface MapSheetLearnRepositoryCustom {
|
||||
|
||||
InferenceProgressDto getInferenceAiResultById(Long id, UUID modelUuid);
|
||||
|
||||
public InferenceStatusDetailDto getInferenceStatus(UUID uuid);
|
||||
InferenceStatusDetailDto getInferenceStatus(UUID uuid);
|
||||
|
||||
String getProcessing();
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user