From cd048a5869f70110f2a74bf92b871ecdd8350e37 Mon Sep 17 00:00:00 2001 From: Hanbee Lee Date: Sun, 11 Feb 2024 00:16:19 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20popcorn=20=EB=BF=8C=EB=A0=A4=EC=A3=BC?= =?UTF-8?q?=EB=8A=94=20=EA=B2=83=20=EC=8B=9C=EA=B0=84=EB=8C=80=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/domains/popcorn/adaptor/PopcornAdaptor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Domain/src/main/java/com/example/domains/popcorn/adaptor/PopcornAdaptor.java b/Domain/src/main/java/com/example/domains/popcorn/adaptor/PopcornAdaptor.java index 6bb736d..0f48292 100644 --- a/Domain/src/main/java/com/example/domains/popcorn/adaptor/PopcornAdaptor.java +++ b/Domain/src/main/java/com/example/domains/popcorn/adaptor/PopcornAdaptor.java @@ -88,12 +88,12 @@ public List findLastWeekPopcorns() { QPopcorn popcorn = QPopcorn.popcorn; LocalDateTime today = LocalDateTime.now(); - LocalDateTime startWeek = today.with(DayOfWeek.SUNDAY).minusWeeks(1); - LocalDateTime endThisWeek = today.with(DayOfWeek.SATURDAY); + //LocalDateTime startWeek = today.with(DayOfWeek.SUNDAY).minusWeeks(1); + LocalDateTime endNextWeek = today.with(DayOfWeek.SATURDAY).plusWeeks(1); return jpaQueryFactory .selectFrom(popcorn) - .where(popcorn.createdAt.between(startWeek, endThisWeek.withHour(23).withMinute(59).withSecond(59))) + .where(popcorn.createdAt.between(today, endNextWeek.withHour(23).withMinute(59).withSecond(59))) .orderBy( popcorn.recommendationCount.desc(), popcorn.createdAt.desc()