Compare commits

..

2 Commits

Author SHA1 Message Date
klaus cbbfe014cc Merge pull request '광고 통계' (#299) from test into main
Reviewed-on: #299
2025-03-28 05:29:40 +00:00
Klaus 3f1101ff73 광고 통계
- 광고를 터치하여 앱을 실행한 수 추가
2025-03-28 11:21:03 +09:00
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,