모델학습 설정 dto 수정

This commit is contained in:
2026-02-04 13:56:32 +09:00
parent 2c825b14ee
commit fdfda049f8
3 changed files with 24 additions and 5 deletions

View File

@@ -45,6 +45,7 @@ public class DatasetDto {
private String status;
private String statusCd;
private Boolean deleted;
private String dataType;
public Basic(
Long id,
@@ -52,23 +53,29 @@ public class DatasetDto {
String groupTitle,
String title,
Long roundNo,
Integer compareYyyy,
Integer targetYyyy,
Long totalSize,
String memo,
ZonedDateTime createdDttm,
String status,
Boolean deleted) {
Boolean deleted,
String dataType) {
this.id = id;
this.uuid = uuid;
this.groupTitle = getGroupTitle(groupTitle);
this.groupTitleCd = groupTitle;
this.title = title;
this.roundNo = roundNo;
this.compareYyyy = compareYyyy;
this.targetYyyy = targetYyyy;
this.totalSize = getTotalSize(totalSize);
this.memo = memo;
this.createdDttm = createdDttm;
this.status = getStatus(status);
this.statusCd = status;
this.deleted = deleted;
this.dataType = dataType;
}
public String getTotalSize(Long totalSize) {
@@ -86,6 +93,15 @@ public class DatasetDto {
LearnDataRegister type = Enums.fromId(LearnDataRegister.class, status);
return type == null ? null : type.getText();
}
public String getYear() {
return this.compareYyyy + "-" + this.targetYyyy;
}
public String getDataTypeName() {
LearnDataType type = Enums.fromId(LearnDataType.class, this.dataType);
return type == null ? null : type.getText();
}
}
@Schema(name = "Dataset Detail", description = "데이터셋 상세 정보")