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(); } }