Skip to content

Commit

Permalink
chore: final ์ถ”๊ฐ€ - #140
Browse files Browse the repository at this point in the history
  • Loading branch information
sjk4618 committed Jan 23, 2025
1 parent 1db065f commit d93746e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class SizeFacade {
private final SizeRetriever sizeRetriever;

public List<SizeDto> findSizeAllByStoreIdAndOrderByPriceAsc(final long storeId) {
List<Size> sizeList = sizeRetriever.findSizeAllByStoreIdAndOrderByPriceAsc(storeId);
final List<Size> sizeList = sizeRetriever.findSizeAllByStoreIdAndOrderByPriceAsc(storeId);
return sizeList.stream().map(
size -> new SizeDto(size.getSizeName(), size.getPrice())
).collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class SizeRetriever {
private final SizeRepository sizeRepository;

public List<Size> findSizeAllByStoreIdAndOrderByPriceAsc(final Long storeId) {
List<Size> response = sizeRepository.findSizeNameAndPriceByStoreIdOrderByPriceAsc(storeId);
final List<Size> response = sizeRepository.findSizeNameAndPriceByStoreIdOrderByPriceAsc(storeId);
if (response.isEmpty()) {
throw new NotFoundBaseException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ public Long calculateLastStoreId(final List<StoreInfoDto> storeInfoDtos) {

//์นด์นด์˜ค ๋งํฌ
public StoreKakaoLinkDto findById(final long storeId) {
Store store = storeRetriever.findById(storeId);
final Store store = storeRetriever.findById(storeId);
return new StoreKakaoLinkDto(store.getOpenKakaoUrl());
}

//์Šคํ† ์–ด ๋ง›
public StoreTasteDto findTaste(final Long storeId) {
Store store = storeRetriever.findById(storeId);
final Store store = storeRetriever.findById(storeId);
return new StoreTasteDto(store.getTaste());
}

//์Šคํ† ์–ด ์ƒ์„ธ์ •๋ณด
public StoreDetailInfoDto findStoreDetailInfo(final long storeId) {
Store store = storeRetriever.findById(storeId);
final Store store = storeRetriever.findById(storeId);
return new StoreDetailInfoDto(store.getAddress(), store.getPhone());
}

Expand Down

0 comments on commit d93746e

Please sign in to comment.