From 8ed32e5cef606ee5042582af838588eb1c62ae1b Mon Sep 17 00:00:00 2001 From: kimujae Date: Mon, 5 Aug 2024 11:29:54 +0900 Subject: [PATCH 1/2] =?UTF-8?q?KAN-701=20fix=20:=20=ED=83=80=EC=9E=84?= =?UTF-8?q?=EC=84=B8=EC=9D=BC=20=EC=83=81=EC=84=B8=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productservice/web/controller/TimesaleController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/yeonieum/productservice/web/controller/TimesaleController.java b/src/main/java/com/yeonieum/productservice/web/controller/TimesaleController.java index 24cb88e..ed10d1f 100644 --- a/src/main/java/com/yeonieum/productservice/web/controller/TimesaleController.java +++ b/src/main/java/com/yeonieum/productservice/web/controller/TimesaleController.java @@ -122,7 +122,7 @@ public ResponseEntity getTimesaleProductListForMember(@RequestParam @io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "200", description = "타임세일 상품 목록 조회 성공"), @io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "500", description = "서버 오류 발생") }) - @Role(role = {"*"}, url = "/api/time-sale/product/list", method = "GET") + @Role(role = {"*"}, url = "/api/time-sale/{timesaleId}/product", method = "GET") @GetMapping("/{timesaleId}/product") public ResponseEntity getTimesaleProductForMember(@PathVariable Long timesaleId) { return new ResponseEntity<>(ApiResponse.builder() From 6da50049261ef4c1201100f2ce830c1fac10c36b Mon Sep 17 00:00:00 2001 From: kimujae Date: Tue, 6 Aug 2024 01:26:16 +0900 Subject: [PATCH 2/2] =?UTF-8?q?KAN-701=20fix=20:=20=EC=9D=B8=EC=A6=9D?= =?UTF-8?q?=EC=9A=A9=20=EA=B3=A0=EA=B0=9D=EC=A1=B0=ED=9A=8C=20API=20?= =?UTF-8?q?=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 6d1a4b1..d0557d3 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.findByStoreBusinessNumber(businessNumber) + Customer targetCustomer = customerRepository.findById(Long.valueOf(businessNumber)) .orElseThrow(() -> new CustomerException(CUSTOMER_NOT_FOUND, HttpStatus.NOT_FOUND)); return CustomerResponse.OfRetrieveForAuth.convertedBy(targetCustomer);