From 4c59c21a4665f9929ffeb5e23473dbd140786ea2 Mon Sep 17 00:00:00 2001 From: HyunWoo9930 Date: Tue, 3 Dec 2024 16:22:24 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20authentication=20=EC=A3=BC=EC=84=9D?= =?UTF-8?q?=20=EC=B2=98=EB=A6=AC=20=ED=95=B4=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jangburich/domain/store/controller/StoreController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/jangburich/domain/store/controller/StoreController.java b/src/main/java/com/jangburich/domain/store/controller/StoreController.java index c7c061f..edeac24 100644 --- a/src/main/java/com/jangburich/domain/store/controller/StoreController.java +++ b/src/main/java/com/jangburich/domain/store/controller/StoreController.java @@ -159,10 +159,10 @@ public ResponseCustom getOrders(Authentication authenticat @Operation(summary = "가게 엑셀 다운로드", description = "가게 장부 세부 내역을 엑셀로 제공합니다.") @GetMapping("/excel") public ResponseEntity getExcel( - // Authentication authentication, + Authentication authentication, @RequestParam(defaultValue = "1") Integer period ) { - byte[] excel = storeService.createExcel("test-owner", period); + byte[] excel = storeService.createExcel(AuthenticationParser.parseUserId(authentication), period); String today = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd")); String fileName = "장부_세부내역_" + period + "개월_" + today + ".xlsx";