Skip to content

Commit

Permalink
[FIX] 경매 주문을 위한 조회 로직
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjy4974 committed Jan 21, 2024
1 parent eff61a3 commit 959ae42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@AllArgsConstructor
@Builder
public class AuctionProductInfo {
private Long productId;
private String productName;
private Integer stock;
private Integer price;
Expand All @@ -17,4 +18,5 @@ public class AuctionProductInfo {
private String sizeName;
private boolean isWinner;
private Long orderPrice;
private Long categoryId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public Mono<AuctionProductInfo> readAuctionHistoryAndProductDetail(
product -> {
AuctionProductInfo auctionProductInfo =
AuctionProductInfo.builder()
.productId(auctionHistory.getAuctionProductId())
.productName(product.getName())
.stock(product.getProductStocks().get(0).getQuantity().intValue())
.price(product.getPrice())
Expand All @@ -41,6 +42,7 @@ public Mono<AuctionProductInfo> readAuctionHistoryAndProductDetail(
.sizeName(product.getProductStocks().get(0).getProductSizeName())
.isWinner(auctionHistory.isWinner())
.orderPrice(auctionHistory.getAuctionWinnerBid())
.categoryId(product.getCategoryId())
.build();
return Mono.just(auctionProductInfo);
});
Expand Down

0 comments on commit 959ae42

Please sign in to comment.