Skip to content

Commit

Permalink
fix: 안쓰는 코드, 주석 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogu1208 committed Jul 20, 2024
1 parent d90f3c0 commit 9699b24
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,18 @@ public class ProductLineDetailResponse {
@Schema(description = "상품 판매량", example = "10")
private Long saleCount; // ~개 판매중

@Builder.Default
@Schema(description = "상품 옵션")
private List<ProductResponse> productList = new ArrayList<>();
private List<ProductResponse> productList;

@Schema(description = "판매자 정보")
private SellerSimpleResponse seller;

@Schema(description = "생성일시")
@JsonSerialize(using = LocalDateTimeSerializer.class)
private LocalDateTime createdAt;

@Schema(description = "수정일시")
private LocalDateTime modifiedAt;

@QueryProjection
public ProductLineDetailResponse(ProductLineEntity productLine) {
this.productLineId = productLine.getProductLineId();
this.name = productLine.getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ public class ProductLinePaginationResponse {
@Schema(description = "상품 상태", example = "FOR_SALE")
private ProductLineStatus status;

@Builder.Default
@Schema(description = "상품 옵션")
private List<ProductResponse> productList = new ArrayList<>();
private List<ProductResponse> productList;

@Schema(description = "상품 판매량", example = "10")
private Long saleCount; // ~개 판매중
Expand All @@ -57,7 +56,6 @@ public class ProductLinePaginationResponse {
@Schema(description = "수정일시")
private LocalDateTime modifiedAt;

@QueryProjection
public ProductLinePaginationResponse(ProductLineEntity productLine, Seller seller, Long totalStock) {
this.productLineId = productLine.getProductLineId();
this.name = productLine.getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
@NoArgsConstructor
@AllArgsConstructor
@Builder
@BatchSize(size = 100)
@Entity(name = "product_line")
public class ProductLineEntity extends BaseTimeEntity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;

@Slf4j
Expand Down

0 comments on commit 9699b24

Please sign in to comment.