diff --git a/dms-presentation/src/main/kotlin/team/aliens/dms/domain/outing/OutingWebAdapter.kt b/dms-presentation/src/main/kotlin/team/aliens/dms/domain/outing/OutingWebAdapter.kt index 22302d1ec..808edd9d2 100644 --- a/dms-presentation/src/main/kotlin/team/aliens/dms/domain/outing/OutingWebAdapter.kt +++ b/dms-presentation/src/main/kotlin/team/aliens/dms/domain/outing/OutingWebAdapter.kt @@ -3,6 +3,7 @@ package team.aliens.dms.domain.outing import jakarta.servlet.http.HttpServletResponse import jakarta.validation.Valid import jakarta.validation.constraints.NotNull +import org.springframework.format.annotation.DateTimeFormat import org.springframework.http.HttpStatus import org.springframework.validation.annotation.Validated import org.springframework.web.bind.annotation.DeleteMapping @@ -77,8 +78,8 @@ class OutingWebAdapter( @GetMapping("/files") fun exportAllOutingApplications( - @RequestParam @NotNull start: LocalDate, - @RequestParam @NotNull end: LocalDate, + @RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) start: LocalDate, + @RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) end: LocalDate, httpResponse: HttpServletResponse ): ByteArray { val response = exportAllOutingApplicationsUseCase.execute(start, end)