Skip to content

Commit

Permalink
hotfix: dto 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yj-leez committed Feb 1, 2024
1 parent 425d76c commit 7c305b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ public List<ExtractFragrance> extractFragrance(List<Long> familyIdList) {
fragrance.name,
fragrance.brand.korName,
fragranceFamily.family.korName,
fragrance.thumbnail
fragrance.thumbnail,
fragrance.concentration
)
)
.from(fragranceFamily)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.querydsl.core.annotations.QueryProjection;
import lombok.Data;
import server.acode.domain.fragrance.entity.Concentration;

import java.util.List;

Expand All @@ -12,13 +13,15 @@ public class ExtractFragrance {
private String brandName;
private String familyName;
private String thumbnail;
private String concentration;

@QueryProjection
public ExtractFragrance(Long fragranceId, String fragranceName, String brandName, String familyName, String thumbnail){
public ExtractFragrance(Long fragranceId, String fragranceName, String brandName, String familyName, String thumbnail, Concentration concentration){
this.fragranceId =fragranceId;
this.fragranceName =fragranceName;
this.brandName = brandName;
this.familyName = familyName;
this.thumbnail = thumbnail;
this.concentration = concentration.toString();
}
}

0 comments on commit 7c305b6

Please sign in to comment.