Skip to content

Commit

Permalink
[bugfix] 쿠폰 상태 변경 쿼리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KwonJuHwan committed Jan 26, 2024
1 parent 5e35512 commit bbb0982
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public List<Coupon> endExposureCoupons(LocalDate nowDate) {
public List<Coupon> 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();
}
}

0 comments on commit bbb0982

Please sign in to comment.