Skip to content

Commit

Permalink
style: 코드 포맷 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
70825 committed May 31, 2024
1 parent 3ba575c commit 9653fe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ private MemberBookmarkRecipeDto(final Long id, final String title, final String
this(id, title, null, content, favorite, author, products, createdAt);
}

public static MemberBookmarkRecipeDto toDto(final Recipe recipe,
final List<RecipeImage> findRecipeImages,
final List<Product> recipeInProducts,
final Boolean isFavorite) {
public static MemberBookmarkRecipeDto toDto(final Recipe recipe, final List<RecipeImage> findRecipeImages,
final List<Product> recipeInProducts, final Boolean isFavorite) {
final MemberResponse author = MemberResponse.toResponse(recipe.getMember());
final MemberBookmarkRecipeProductsDto products = MemberBookmarkRecipeProductsDto.toDto(recipeInProducts);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public interface RecipeRepository extends JpaRepository<Recipe, Long> {

Page<Recipe> findRecipesByMember(final Member member, final Pageable pageable);


@Query("SELECT DISTINCT r FROM Recipe r "
+ "LEFT JOIN ProductRecipe pr ON pr.recipe.id = r.id "
+ "WHERE pr.product.name LIKE CONCAT('%', :name, '%')"
Expand Down Expand Up @@ -52,5 +51,5 @@ List<Recipe> findAllByProductNameContaining(@Param("name") final String name, fi
Long countByMember(final Member member);

@Query("SELECT r FROM Recipe r JOIN RecipeBookmark rb ON r.id = rb.recipe.id WHERE rb.member = :member AND rb.bookmark = true")
Page<Recipe> findBookmarkedRecipesByMember(@Param("member") Member member, Pageable pageable);
Page<Recipe> findBookmarkedRecipesByMember(@Param("member") final Member member, final Pageable pageable);
}

0 comments on commit 9653fe3

Please sign in to comment.