학습 상세조회 데이터셋 수정
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user