Compare commits
2 Commits
83028f7817
...
cbbfe014cc
Author | SHA1 | Date |
---|---|---|
|
cbbfe014cc | |
|
3f1101ff73 |
|
@ -46,6 +46,12 @@ class AdminAdStatisticsRepository(private val queryFactory: JPAQueryFactory) {
|
||||||
.otherwise(0)
|
.otherwise(0)
|
||||||
.sum()
|
.sum()
|
||||||
|
|
||||||
|
val launchCount = CaseBuilder()
|
||||||
|
.`when`(adTrackingHistory.type.eq(AdTrackingHistoryType.APP_LAUNCH))
|
||||||
|
.then(1)
|
||||||
|
.otherwise(0)
|
||||||
|
.sum()
|
||||||
|
|
||||||
val loginCount = CaseBuilder()
|
val loginCount = CaseBuilder()
|
||||||
.`when`(adTrackingHistory.type.eq(AdTrackingHistoryType.LOGIN))
|
.`when`(adTrackingHistory.type.eq(AdTrackingHistoryType.LOGIN))
|
||||||
.then(1)
|
.then(1)
|
||||||
|
@ -101,6 +107,7 @@ class AdminAdStatisticsRepository(private val queryFactory: JPAQueryFactory) {
|
||||||
adTrackingHistory.mediaGroup,
|
adTrackingHistory.mediaGroup,
|
||||||
adTrackingHistory.pid,
|
adTrackingHistory.pid,
|
||||||
adTrackingHistory.pidName,
|
adTrackingHistory.pidName,
|
||||||
|
launchCount,
|
||||||
loginCount,
|
loginCount,
|
||||||
signUpCount,
|
signUpCount,
|
||||||
firstPaymentCount,
|
firstPaymentCount,
|
||||||
|
|
|
@ -12,6 +12,7 @@ data class GetAdminAdStatisticsItem @QueryProjection constructor(
|
||||||
val mediaGroup: String,
|
val mediaGroup: String,
|
||||||
val pid: String,
|
val pid: String,
|
||||||
val pidName: String,
|
val pidName: String,
|
||||||
|
val launchCount: Int,
|
||||||
val loginCount: Int,
|
val loginCount: Int,
|
||||||
val signUpCount: Int,
|
val signUpCount: Int,
|
||||||
val firstPaymentCount: Int,
|
val firstPaymentCount: Int,
|
||||||
|
|
Loading…
Reference in New Issue