Skip to content

Commit

Permalink
Merge pull request #249 from marinesnow34/test
Browse files Browse the repository at this point in the history
Fix: 삭제된 옵션 보여주지 않기 수정
  • Loading branch information
marinesnow34 authored May 22, 2024
2 parents ee73d8c + af66740 commit e2dfdaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public class FoodieOption extends BaseTimeEntity {
@Column(nullable = false)
private Long price;

//식품 옵션 삭제 여부
@Column(nullable = false)
private Boolean isDelete;

//식품 옵션 연관관계 매핑
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "foodie_option_category_idx")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private OptionCategoryDto foodieOptionCategoryToOptionCategoryDto(FoodieOptionCa
.options(
category.getFoodieOptions()
.stream()
.filter(options -> !options.getIsDelete())
.map(this::foodyOptionToOptionDto)
.toList())
.build();
Expand Down

0 comments on commit e2dfdaf

Please sign in to comment.