Skip to content

Commit

Permalink
Merge pull request #192 from 9oormthon-univ/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
HyunWoo9930 authored Dec 3, 2024
2 parents ec01a98 + 7a37734 commit 0006c27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ public ResponseCustom<OrdersDetailResponse> 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";
Expand Down

0 comments on commit 0006c27

Please sign in to comment.