diff --git a/src/main/java/co/orange/ddanzi/service/ItemService.java b/src/main/java/co/orange/ddanzi/service/ItemService.java index 1b0c887..d267599 100644 --- a/src/main/java/co/orange/ddanzi/service/ItemService.java +++ b/src/main/java/co/orange/ddanzi/service/ItemService.java @@ -177,7 +177,7 @@ public ApiResponse deleteItem(String itemId){ Product product = item.getProduct(); product.updateStock(product.getStock() - 1); - log.info("재고를 감소시킴 -> {}개", product.getClosestDueDate()); + log.info("재고를 감소시킴 -> {}개", product.getStock()); productService.updateClosestDueDate(product); @@ -249,7 +249,7 @@ public List getMyItemList(User user){ .productId(product.getId()) .itemId(item.getId()) .productName(product.getName()) - .imgUrl(item.getImgUrl()) + .imgUrl(product.getImgUrl()) .originPrice(product.getOriginPrice()) .salePrice(product.getOriginPrice() - discount.getDiscountPrice()) .isInterested(interestProductRepository.existsByIdUserAndIdProduct(user,product))