Compare commits

...

2 Commits

Author SHA1 Message Date
Klaus 3ef1a732e5 관리자 - 이벤트 배너 서비스
- 시작 전인 이벤트도 보이도록 수정
2025-03-14 01:55:08 +09:00
Klaus 7cd95da83c 관리자 - 광고 통계
- 패키지 이동 (marketing/statistics -> statistics/ad)
2025-03-14 01:49:10 +09:00
5 changed files with 6 additions and 6 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
)
}

View File

@ -1,4 +1,4 @@
package kr.co.vividnext.sodalive.admin.marketing.statistics
package kr.co.vividnext.sodalive.admin.statistics.ad
import kr.co.vividnext.sodalive.common.ApiResponse
import org.springframework.data.domain.Pageable

View File

@ -1,4 +1,4 @@
package kr.co.vividnext.sodalive.admin.marketing.statistics
package kr.co.vividnext.sodalive.admin.statistics.ad
import com.querydsl.core.types.dsl.CaseBuilder
import com.querydsl.core.types.dsl.DateTimePath

View File

@ -1,4 +1,4 @@
package kr.co.vividnext.sodalive.admin.marketing.statistics
package kr.co.vividnext.sodalive.admin.statistics.ad
import kr.co.vividnext.sodalive.extensions.convertLocalDateTime
import org.springframework.stereotype.Service

View File

@ -1,4 +1,4 @@
package kr.co.vividnext.sodalive.admin.marketing.statistics
package kr.co.vividnext.sodalive.admin.statistics.ad
import com.querydsl.core.annotations.QueryProjection