From 67e5cba1a749e57e04a3d515a1c72e96ffb4b6c5 Mon Sep 17 00:00:00 2001 From: Suhyeon <70002218+onpyeong@users.noreply.github.com> Date: Wed, 6 Mar 2024 21:24:17 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]:=20=ED=8A=B9=EC=A0=95=EB=82=A0=EC=A7=9C?= =?UTF-8?q?=20=EC=95=BD=20=EC=9D=BC=EC=A0=95=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EC=B2=98=EB=A6=AC=20(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pillSchedule이 자신의 약이 맞는지 체크하도록 수정 특정날짜 약 일정 조회 에러 처리 Related to: #111 --- .../pill/infrastructure/PillScheduleQueryRepository.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/sobok/SobokSobok/pill/infrastructure/PillScheduleQueryRepository.java b/src/main/java/io/sobok/SobokSobok/pill/infrastructure/PillScheduleQueryRepository.java index a6f86ce..a8a3b6e 100644 --- a/src/main/java/io/sobok/SobokSobok/pill/infrastructure/PillScheduleQueryRepository.java +++ b/src/main/java/io/sobok/SobokSobok/pill/infrastructure/PillScheduleQueryRepository.java @@ -102,6 +102,7 @@ public List getDateSchedule(Long userId, LocalDate date) { List pillScheduleIds = queryFactory .select(pillSchedule.id) .from(pillSchedule) + .join(pill).on(pill.id.eq(pillSchedule.pillId), pill.userId.eq(userId)) .where(pillSchedule.scheduleDate.eq(date), pillSchedule.scheduleTime.eq(time)) .fetch();