From cd24d561e77b94ed84cdfd09dc8d9d61ed3653a8 Mon Sep 17 00:00:00 2001 From: kimujae Date: Tue, 6 Aug 2024 02:21:13 +0900 Subject: [PATCH] =?UTF-8?q?KAN-701=20fix=20:=20=EA=B3=A0=EA=B0=9D=EC=9A=A9?= =?UTF-8?q?=EC=9D=B8=EC=A6=9D=EC=A0=95=EB=B3=B4=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productservice/domain/customer/service/CustomerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/yeonieum/productservice/domain/customer/service/CustomerService.java b/src/main/java/com/yeonieum/productservice/domain/customer/service/CustomerService.java index d0557d3..6d1a4b1 100644 --- a/src/main/java/com/yeonieum/productservice/domain/customer/service/CustomerService.java +++ b/src/main/java/com/yeonieum/productservice/domain/customer/service/CustomerService.java @@ -67,7 +67,7 @@ public int retrieveDeliveryFee(Long customerId) { */ @Transactional public CustomerResponse.OfRetrieveForAuth retrieveCustomerForAuth(String businessNumber) { - Customer targetCustomer = customerRepository.findById(Long.valueOf(businessNumber)) + Customer targetCustomer = customerRepository.findByStoreBusinessNumber(businessNumber) .orElseThrow(() -> new CustomerException(CUSTOMER_NOT_FOUND, HttpStatus.NOT_FOUND)); return CustomerResponse.OfRetrieveForAuth.convertedBy(targetCustomer);