유저 행동 데이터, 포인트 추가 #309
|
@ -22,7 +22,7 @@ class PointRewardPolicyQueryRepositoryImpl(
|
|||
return queryFactory
|
||||
.selectFrom(pointRewardPolicy)
|
||||
.where(
|
||||
pointRewardPolicy.isActive
|
||||
pointRewardPolicy.isActive.isTrue
|
||||
.and(pointRewardPolicy.actionType.eq(actionType))
|
||||
.and(pointRewardPolicy.startDate.loe(nowDateTime))
|
||||
.and(
|
||||
|
@ -30,7 +30,7 @@ class PointRewardPolicyQueryRepositoryImpl(
|
|||
.or(pointRewardPolicy.endDate.isNull)
|
||||
)
|
||||
)
|
||||
.orderBy(pointRewardPolicy.id.desc())
|
||||
.orderBy(pointRewardPolicy.endDate.asc())
|
||||
.fetchFirst()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue