Skip to content

Commit

Permalink
refactor : country 필드 추가 및 null 값 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed Oct 8, 2024
1 parent 3809d9a commit b96737e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ public TastingNoteResponse.TastingNoteDTO toTastingNote(TastingNote tastingNote,
.wineType(wine.getType())
.wineName(wine.getName())
.region(wine.getRegion())
.country(wine.getCountry())
.vintage(tastingNote.getVintage())
.star(tastingNote.getStarRating() != null ? tastingNote.getStarRating() : null)
.color(tastingNote.getColor())
Expand Down Expand Up @@ -354,7 +355,7 @@ private TastingNoteResponse.MyWineTaste MyWineTaste(TastingNote tastingNote) {
.builder()
.sweetness(tastingNote.getSweetness())
.acidity(tastingNote.getAcidity())
.alcohol(tastingNote.getAlcohol())
.alcohol(tastingNote.getAlcohol() != null ? Double.valueOf(tastingNote.getAlcohol()) : 0)
.body(tastingNote.getBody())
.tannin(tastingNote.getTannins())
.sparkling(tastingNote.getSparkling() != null ? Double.valueOf(tastingNote.getSparkling()) : 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ public static class TastingNoteDTO {
@Schema(description = "와인 생상지")
private String region;

@Schema(description = "와인 생산지")
private Country country;

@Schema(description = "별점")
private Integer star;

Expand Down

0 comments on commit b96737e

Please sign in to comment.