|
|
|
@@ -23,6 +23,7 @@ import com.kamco.cd.training.model.dto.ModelTrainMngDto.ModelProgressStepDto;
|
|
|
|
import com.kamco.cd.training.postgres.entity.ModelMasterEntity;
|
|
|
|
import com.kamco.cd.training.postgres.entity.ModelMasterEntity;
|
|
|
|
import com.kamco.cd.training.postgres.entity.QModelHyperParamEntity;
|
|
|
|
import com.kamco.cd.training.postgres.entity.QModelHyperParamEntity;
|
|
|
|
import com.kamco.cd.training.postgres.entity.QModelMasterEntity;
|
|
|
|
import com.kamco.cd.training.postgres.entity.QModelMasterEntity;
|
|
|
|
|
|
|
|
import com.querydsl.core.types.Expression;
|
|
|
|
import com.querydsl.core.types.Projections;
|
|
|
|
import com.querydsl.core.types.Projections;
|
|
|
|
import com.querydsl.jpa.JPAExpressions;
|
|
|
|
import com.querydsl.jpa.JPAExpressions;
|
|
|
|
import com.querydsl.jpa.impl.JPAQueryFactory;
|
|
|
|
import com.querydsl.jpa.impl.JPAQueryFactory;
|
|
|
|
@@ -59,6 +60,13 @@ public class ModelDetailRepositoryImpl implements ModelDetailRepositoryCustom {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public DetailSummary getModelDetailSummary(UUID uuid) {
|
|
|
|
public DetailSummary getModelDetailSummary(UUID uuid) {
|
|
|
|
|
|
|
|
QModelMasterEntity beforeModel = new QModelMasterEntity("beforeModel"); // alias
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expression<UUID> beforeModelUuid =
|
|
|
|
|
|
|
|
com.querydsl.jpa.JPAExpressions.select(beforeModel.uuid)
|
|
|
|
|
|
|
|
.from(beforeModel)
|
|
|
|
|
|
|
|
.where(beforeModel.id.eq(modelMasterEntity.beforeModelId));
|
|
|
|
|
|
|
|
|
|
|
|
return queryFactory
|
|
|
|
return queryFactory
|
|
|
|
.select(
|
|
|
|
.select(
|
|
|
|
Projections.constructor(
|
|
|
|
Projections.constructor(
|
|
|
|
@@ -70,7 +78,8 @@ public class ModelDetailRepositoryImpl implements ModelDetailRepositoryCustom {
|
|
|
|
modelMasterEntity.step1StrtDttm,
|
|
|
|
modelMasterEntity.step1StrtDttm,
|
|
|
|
modelMasterEntity.step2EndDttm,
|
|
|
|
modelMasterEntity.step2EndDttm,
|
|
|
|
modelMasterEntity.statusCd,
|
|
|
|
modelMasterEntity.statusCd,
|
|
|
|
modelMasterEntity.trainType))
|
|
|
|
modelMasterEntity.trainType,
|
|
|
|
|
|
|
|
beforeModelUuid))
|
|
|
|
.from(modelMasterEntity)
|
|
|
|
.from(modelMasterEntity)
|
|
|
|
.where(modelMasterEntity.uuid.eq(uuid))
|
|
|
|
.where(modelMasterEntity.uuid.eq(uuid))
|
|
|
|
.fetchOne();
|
|
|
|
.fetchOne();
|
|
|
|
|