학습 상세조회 데이터셋 수정

This commit is contained in:
2026-04-07 17:19:31 +09:00
parent 8043e1a41a
commit bc67753b99
3 changed files with 96 additions and 10 deletions

View File

@@ -163,11 +163,12 @@ public class ModelTrainDetailDto {
this.compareYyyy = compareYyyy;
this.targetYyyy = targetYyyy;
this.roundNo = roundNo;
this.buildingCnt = buildingCnt;
this.containerCnt = containerCnt;
this.wasteCnt = wasteCnt;
this.landCoverCnt = landCoverCnt;
this.solarPanelCnt = solarPanelCnt;
this.buildingCnt = toNullIfZero(buildingCnt);
this.containerCnt = toNullIfZero(containerCnt);
this.wasteCnt = toNullIfZero(wasteCnt);
this.landCoverCnt = toNullIfZero(landCoverCnt);
this.solarPanelCnt = toNullIfZero(solarPanelCnt);
this.dataTypeName = getDataTypeName(this.dataType);
}
@@ -177,6 +178,10 @@ public class ModelTrainDetailDto {
}
}
private static Long toNullIfZero(Long value) {
return (value == null || value == 0L) ? null : value;
}
@Getter
@Setter
@NoArgsConstructor