전이학습 상세 - before dataset 추가

This commit is contained in:
2026-02-20 16:05:29 +09:00
parent 564a99448c
commit 83859bb9fe
7 changed files with 44 additions and 1 deletions

View File

@@ -107,4 +107,9 @@ public class ModelTrainDetailCoreService {
public List<ModelProgressStepDto> findModelTrainProgressInfo(UUID uuid) {
return modelDetailRepository.findModelTrainProgressInfo(uuid);
}
public Basic findByModelBeforeId(Long beforeModelId) {
ModelMasterEntity entity = modelDetailRepository.findByModelBeforeId(beforeModelId);
return entity.toDto();
}
}

View File

@@ -140,6 +140,7 @@ public class ModelMasterEntity {
this.requestPath,
this.packingState,
this.packingStrtDttm,
this.packingEndDttm);
this.packingEndDttm,
this.beforeModelId);
}
}

View File

@@ -40,4 +40,6 @@ public interface ModelDetailRepositoryCustom {
ModelFileInfo getModelTrainFileInfo(UUID uuid);
List<ModelProgressStepDto> findModelTrainProgressInfo(UUID uuid);
ModelMasterEntity findByModelBeforeId(Long beforeModelId);
}

View File

@@ -355,4 +355,12 @@ public class ModelDetailRepositoryImpl implements ModelDetailRepositoryCustom {
return steps;
}
@Override
public ModelMasterEntity findByModelBeforeId(Long beforeModelId) {
return queryFactory
.selectFrom(modelMasterEntity)
.where(modelMasterEntity.id.eq(beforeModelId))
.fetchOne();
}
}