추론관리 목록 조회 수정, 추론 종료 추가
This commit is contained in:
@@ -379,8 +379,26 @@ public class InferenceResultCoreService {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public UUID getProcessing() {
|
||||
return mapSheetLearnRepository.getProcessing();
|
||||
public SaveInferenceAiDto getProcessing() {
|
||||
MapSheetLearnEntity entity = mapSheetLearnRepository.getProcessing();
|
||||
|
||||
if (entity == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
SaveInferenceAiDto dto = new SaveInferenceAiDto();
|
||||
dto.setUuid(entity.getUuid());
|
||||
|
||||
if (entity.getM3ModelBatchId() != null) {
|
||||
dto.setBatchId(entity.getM3ModelBatchId());
|
||||
}
|
||||
if (entity.getM2ModelBatchId() != null) {
|
||||
dto.setBatchId(entity.getM2ModelBatchId());
|
||||
}
|
||||
if (entity.getM1ModelBatchId() != null) {
|
||||
dto.setBatchId(entity.getM1ModelBatchId());
|
||||
}
|
||||
return dto;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -28,7 +28,7 @@ public interface MapSheetLearnRepositoryCustom {
|
||||
|
||||
InferenceStatusDetailDto getInferenceStatus(UUID uuid);
|
||||
|
||||
UUID getProcessing();
|
||||
MapSheetLearnEntity getProcessing();
|
||||
|
||||
Integer getLearnStage(Integer compareYear, Integer targetYear);
|
||||
|
||||
|
||||
@@ -259,9 +259,9 @@ public class MapSheetLearnRepositoryImpl implements MapSheetLearnRepositoryCusto
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public UUID getProcessing() {
|
||||
public MapSheetLearnEntity getProcessing() {
|
||||
return queryFactory
|
||||
.select(mapSheetLearnEntity.uuid)
|
||||
.select(mapSheetLearnEntity)
|
||||
.from(mapSheetLearnEntity)
|
||||
.where(mapSheetLearnEntity.status.eq("IN_PROGRESS"))
|
||||
.fetchOne();
|
||||
|
||||
Reference in New Issue
Block a user