From 8eef34239f51f25405331209171b99bc1b756271 Mon Sep 17 00:00:00 2001 From: Su-daa Date: Thu, 25 Jan 2024 23:39:31 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B2=B0=EC=A0=9C=EC=99=84=EB=A3=8C=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=20=EB=82=B4=EC=97=AD=EC=9D=80=20=EC=9D=91?= =?UTF-8?q?=EB=8B=B5=EA=B0=92=EC=97=90=EC=84=9C=20=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/payment/service/PurchaseHistoryService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/site/goldenticket/domain/payment/service/PurchaseHistoryService.java b/src/main/java/site/goldenticket/domain/payment/service/PurchaseHistoryService.java index 06030a4b..bf0a3b0a 100644 --- a/src/main/java/site/goldenticket/domain/payment/service/PurchaseHistoryService.java +++ b/src/main/java/site/goldenticket/domain/payment/service/PurchaseHistoryService.java @@ -99,6 +99,9 @@ public List getPurchaseCompletedHistory(PrincipalDeta List purchaseCompletedResponses = new ArrayList<>(); for (Order order : orders) { + if (order.isCustomerViewCheck()) { + continue; + } Product product = productService.getProduct(order.getProductId()); PurchaseCompletedResponse response = PurchaseCompletedResponse.create(product, order); purchaseCompletedResponses.add(response);