광고 통계

- 광고를 터치하여 앱을 실행한 수 추가
This commit is contained in:
Klaus 2025-03-28 11:21:03 +09:00
parent 5777d9700f
commit 3f1101ff73
2 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,12 @@ class AdminAdStatisticsRepository(private val queryFactory: JPAQueryFactory) {
.otherwise(0)
.sum()
val launchCount = CaseBuilder()
.`when`(adTrackingHistory.type.eq(AdTrackingHistoryType.APP_LAUNCH))
.then(1)
.otherwise(0)
.sum()
val loginCount = CaseBuilder()
.`when`(adTrackingHistory.type.eq(AdTrackingHistoryType.LOGIN))
.then(1)
@ -101,6 +107,7 @@ class AdminAdStatisticsRepository(private val queryFactory: JPAQueryFactory) {
adTrackingHistory.mediaGroup,
adTrackingHistory.pid,
adTrackingHistory.pidName,
launchCount,
loginCount,
signUpCount,
firstPaymentCount,

View File

@ -12,6 +12,7 @@ data class GetAdminAdStatisticsItem @QueryProjection constructor(
val mediaGroup: String,
val pid: String,
val pidName: String,
val launchCount: Int,
val loginCount: Int,
val signUpCount: Int,
val firstPaymentCount: Int,