From bbb09829d82c6777262d64bb2c1457e127981f01 Mon Sep 17 00:00:00 2001 From: KwonJuHwan <118177454+KwonJuHwan@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:26:01 +0900 Subject: [PATCH] =?UTF-8?q?[bugfix]=20=EC=BF=A0=ED=8F=B0=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=EB=B3=80=EA=B2=BD=20=EC=BF=BC=EB=A6=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/coupon/repository/CouponRepositoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/coolpeace/domain/coupon/repository/CouponRepositoryImpl.java b/src/main/java/com/coolpeace/domain/coupon/repository/CouponRepositoryImpl.java index 2ee32ad..1346428 100644 --- a/src/main/java/com/coolpeace/domain/coupon/repository/CouponRepositoryImpl.java +++ b/src/main/java/com/coolpeace/domain/coupon/repository/CouponRepositoryImpl.java @@ -186,7 +186,7 @@ public List endExposureCoupons(LocalDate nowDate) { public List startExposureCoupons(LocalDate nowDate) { return jpaQueryFactory.selectFrom(coupon) .where(coupon.couponStatus.eq(CouponStatusType.EXPOSURE_WAIT) - .and((coupon.exposureStartDate.after(nowDate)) + .and((coupon.exposureStartDate.before(nowDate)) .or(coupon.exposureStartDate.eq(nowDate)))).fetch(); } }