전이학습 상세 - before dataset 추가
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,6 +140,7 @@ public class ModelMasterEntity {
|
||||
this.requestPath,
|
||||
this.packingState,
|
||||
this.packingStrtDttm,
|
||||
this.packingEndDttm);
|
||||
this.packingEndDttm,
|
||||
this.beforeModelId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,4 +40,6 @@ public interface ModelDetailRepositoryCustom {
|
||||
ModelFileInfo getModelTrainFileInfo(UUID uuid);
|
||||
|
||||
List<ModelProgressStepDto> findModelTrainProgressInfo(UUID uuid);
|
||||
|
||||
ModelMasterEntity findByModelBeforeId(Long beforeModelId);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user