추론 실행 api 수정
This commit is contained in:
@@ -347,7 +347,7 @@ public class InferenceResultCoreService {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getProcessing() {
|
||||
public UUID getProcessing() {
|
||||
return mapSheetLearnRepository.getProcessing();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,5 +24,5 @@ public interface MapSheetLearnRepositoryCustom {
|
||||
|
||||
InferenceStatusDetailDto getInferenceStatus(UUID uuid);
|
||||
|
||||
String getProcessing();
|
||||
UUID getProcessing();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user