parent
5777d9700f
commit
3f1101ff73
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue