Skip to content

Commit

Permalink
feat: 멤버별 상세 두피 진단 결과에 상위 퍼센트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kjungw1025 committed Dec 9, 2023
1 parent 2b478f8 commit ec3f575
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class ResponseDetailDiagnosisResultDTO {
private final double avgDandruff;
private final double avgHairLoss;
private final double avgErythemaPustules;
private final String topPercentage;

@Builder
private ResponseDetailDiagnosisResultDTO(DiagnosisResult diagnosisResult,
Expand All @@ -38,6 +39,7 @@ private ResponseDetailDiagnosisResultDTO(DiagnosisResult diagnosisResult,
this.dandruff = diagnosisResult.getDandruff();
this.hairLoss = diagnosisResult.getHairLoss();
this.erythemaPustules = diagnosisResult.getErythemaPustules();
this.topPercentage = diagnosisResult.getTopPercentage();
this.gender = responseAverageByAgeDTO.getGender();
this.old = responseAverageByAgeDTO.getOld();
this.avgFindDeadSkinCells = responseAverageByAgeDTO.getAvgFindDeadSkinCells();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public class DiagnosisResult {
private String imageUrl;

@NotNull
@Column(name = "fine_dead_skin_cells", columnDefinition = "NUMBER(2)")
@Column(name = "fine_dead_skin_cells", columnDefinition = "NUMBER(2, 1)")
private double findDeadSkinCells;

@NotNull
@Column(name = "excess_sebum", columnDefinition = "NUMBER(2)")
@Column(name = "excess_sebum", columnDefinition = "NUMBER(2, 1)")
private double excessSebum;

@NotNull
Expand All @@ -58,6 +58,10 @@ public class DiagnosisResult {
@Column(name = "erythema_pustules", columnDefinition = "NUMBER(2)")
private int erythemaPustules;

@NotNull
@Column(name = "top_percentage")
private String topPercentage;

// @Builder
// private DiagnosisResult(@NotNull LocalDateTime diagnosisDate,
// @NotNull Member member,
Expand Down

0 comments on commit ec3f575

Please sign in to comment.