데이터셋 태양광 조회 추가 #194

Merged
teddy merged 1 commits from feat/training_260324 into develop 2026-04-07 16:35:47 +09:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit d48e96ba82 - Show all commits

View File

@@ -142,6 +142,9 @@ public class ModelTrainDetailDto {
@JsonInclude(JsonInclude.Include.NON_NULL)
private Long landCoverCnt;
@JsonInclude(JsonInclude.Include.NON_NULL)
private Long solarPanelCnt;
public MappingDataset(
Long modelId,
Long datasetId,
@@ -152,7 +155,8 @@ public class ModelTrainDetailDto {
Long buildingCnt,
Long containerCnt,
Long wasteCnt,
Long landCoverCnt) {
Long landCoverCnt,
Long solarPanelCnt) {
this.modelId = modelId;
this.datasetId = datasetId;
this.dataType = dataType;
@@ -163,6 +167,7 @@ public class ModelTrainDetailDto {
this.containerCnt = containerCnt;
this.wasteCnt = wasteCnt;
this.landCoverCnt = landCoverCnt;
this.solarPanelCnt = solarPanelCnt;
this.dataTypeName = getDataTypeName(this.dataType);
}

View File

@@ -157,7 +157,8 @@ public class ModelDetailRepositoryImpl implements ModelDetailRepositoryCustom {
modelDatasetEntity.buildingCnt,
modelDatasetEntity.containerCnt,
modelDatasetEntity.wasteCnt,
modelDatasetEntity.landCoverCnt))
modelDatasetEntity.landCoverCnt,
modelDatasetEntity.solarCnt))
.from(modelMasterEntity)
.innerJoin(modelDatasetEntity)
.on(modelMasterEntity.id.eq(modelDatasetEntity.model.id))