From 143abd0ad7d0001a074a609c1ddd8000568c597a Mon Sep 17 00:00:00 2001 From: Donghun Lee Date: Thu, 17 Aug 2023 03:12:30 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EC=84=A0=ED=83=9D=ED=95=9C=20YYYY-M?= =?UTF-8?q?M-DD=EC=97=90=20=EB=8C=80=ED=95=9C=20=EC=A7=88=EB=AC=B8,=20?= =?UTF-8?q?=EB=8B=B5=EB=B3=80=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bside/BSIDE/contents/web/QuestionController.java | 2 +- src/main/resources/sqlmap/mapper/question/QuestionMapper.xml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/bside/BSIDE/contents/web/QuestionController.java b/src/main/java/com/bside/BSIDE/contents/web/QuestionController.java index de8bd34..4fce33b 100644 --- a/src/main/java/com/bside/BSIDE/contents/web/QuestionController.java +++ b/src/main/java/com/bside/BSIDE/contents/web/QuestionController.java @@ -148,7 +148,7 @@ else if (dateArr.length == 2) { } /* YYYY-MM-DD 입력했을 경우 */ else { - return ResponseEntity.ok("YYYY-MM 의 형식으로 입력해주세요."); + questionAndAnswers = questionService.getQuestionsAndAnswersByDayAndEmail(email, date); } if (questionAndAnswers.isEmpty()) { diff --git a/src/main/resources/sqlmap/mapper/question/QuestionMapper.xml b/src/main/resources/sqlmap/mapper/question/QuestionMapper.xml index 9811b78..15ca663 100644 --- a/src/main/resources/sqlmap/mapper/question/QuestionMapper.xml +++ b/src/main/resources/sqlmap/mapper/question/QuestionMapper.xml @@ -127,6 +127,7 @@ GROUP BY(DATE(a.a_created_at)) + - +