관리자 - 이벤트 배너 서비스

- 시작 전인 이벤트도 보이도록 수정
This commit is contained in:
Klaus 2025-03-14 01:55:08 +09:00
parent 7cd95da83c
commit 3ef1a732e5
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class AdminEventBannerQueryRepositoryImpl(
override fun getEventList(): List<GetAdminEventResponse> {
val now = LocalDateTime.now()
val where = event.isActive.isTrue
.and(event.startDate.loe(now))
.and(event.endDate.goe(now))
return queryFactory
.select(
@ -65,7 +65,7 @@ class AdminEventBannerQueryRepositoryImpl(
private fun getProcessedUrlExpression(path: StringPath): StringExpression {
return Expressions.stringTemplate(
"CASE WHEN {0} LIKE '$cloudFrontHost%' THEN {0} ELSE CONCAT('$cloudFrontHost', {0}) END",
"CASE WHEN {0} LIKE '$cloudFrontHost%' THEN {0} ELSE CONCAT('$cloudFrontHost/', {0}) END",
path
)
}