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);